SQL Server 2000 creating a linked server to SQL Server 2008 - sql-server-2008

In SQL Server 2000, I'm trying to create a linked server to SQL Server 2008. Everything I've tried raises errors of one flavor or another.
In SQL Server 2000 Enterprise Manager, I:
Right-click Linked Servers under the server's Security node, then choose New Linked Server... and name the link "SQL2008R2"
I choose the "Other data source" radio button because I don't think SQL Server 2000 can natively connect to 2008.
I choose "SQL Server Native Client 10.0" in the Provider name field, type "SQL2008R2" in the Product name field, enter "VIRTUALXP-62910\SQLEXPRESS" (Servername and named instance name) in the Data source field, leave Provider string blank, and type the database name "RWUtils" in the Catalog field.
On the security tab, I type "Link" as the local login and as the Remote user, and enter the password. I choose the "Not be made" radio button for logins not listed above. I previously set up a "Link" user on both servers, with the same password, with access to the right databases.
I click OK to create the link. The SQL2008R2 link is created.
When I expand the link I just created and click on Tables, I get the error,
Error 7416: Access to the remote
server is denied because no
login-mapping exists.
Can anyone tell me what I'm doing wrong or what the correct sequence of steps or T-SQL is to create this link successfully?
Thanks much.

I just did this for the first time (after seeing your question) and it worked - going from SQL 2000 Standard 32-bit (default instance) to a named instance on SQL 2008 R2 64-bit.
Using similar steps to what you have above:
fine
choose "SQL Server" as the Server Type, enter servername\instance
not applicable
I chose "Be made using this security context", and entered in my new SQL Standard Account that exists on the target server only (2008 R2).
I tested with a query and it worked. Be sure new SQL Standard user has access to the database and table. Query should look like: select * from [linkedservername\instance].[database].[dbo].[table]
Other notes: I took the defaults on the Server Options tab, which are "Data Access", "RPC", and "RPC Out" all checked.
The other direction: I previously had it working the other direction from SQL 2008 R2 linked server to SQL 2000. That required this: http://blog.raffaeu.com/archive/2008/06/19/sql-2005-and-linked-server-cannot-obtain-the-schema-rowset.aspx.

I have use this steps and configuration options:
SqlServerEnterpriseManager\Security\Linked Servers\New Linked Server
General:
Linked server: mylinkedservername
Provider name: Microsoft OLE DB Prvider for SQL Server
Product name:
Data Source: (my server name)
Provider string:
Location:
Catalog:
Security:
Be made using this security context:
Remote login: (my sql remote user. I use sa for the test)
With password: (my remote password)
Server Options:
DataAccess: checked
RPC: checked
RPC Out: checked
Use Remote Collation: checked
Qry used in the test:
select * from [linkedservername].[database].dbo.[table]

Related

Why am I getting a Connection Error When Trying to Create a New SQL Server Database?

In Visual Studio's Server Explorer, I right-clicked Data Connections and selected Create New SQL Server Database.
In the same-named dialog that is then invoked, I entered a ServerName, a New Database Name, accepted the default of Windows authorization, but get this:
I'm pretty sure I installed MS SQL Server when I installed VS (2019). What is causing this error and what do I need to do to fix it?
Am I not allowed to create a Server Name and must use a specific one? If so, what?
UPDATE
I'm also getting problems now with MySql. I recently created MySql Databases (they are displaying on the left -- "movies" and "statesdb" and I've got connections to them, as indicated by the green connector icon), but now trying to create a new Database also fails (after I hit the "Test Connection" button):
UPDATE 2
I still get the same exact err msg after installing SQL Server Express.
And that's even though I do have a bunch of SQLExpress services running now (the only non-new one is the last one):
Do I need to use SQL Server Authentication instead of Windows?
To see if you have sql server installed and it’s running, you can open services.msc and look for SQL Server. The name in between the brackets is the instance name, I.e.: SQLEXPRESS.
To connect to a localhost instance you simply do .\instancename or for SQLEXPRESS: .\SQLEXPRESS

SQL Migration Assistant for MySQL

I want to convert my MySQL database to SQL Server, so that I can migrate my website into Azure.
I have two problems:
I downloaded SQL Server Migration Assistant for MySQL. I expect to see a "Connect to SQL Server" button, but there is only a "Connect to SQL Azure" button instead.
"OK" I said. "Why not convert it directly into Azure?" So I created an Azure account, and a SQL database in it. But when I tried to connect the MySQLToSQL to SQL Azure, it asks for user name, so I put my account email, "xyz#hotmail.com". It complained that "Cannot open server hotmail.com requested by the login". If I use "xyz", it complains "incorrect user name or password."
So what is my user name and password? I am totally new to Azure.
When you create a new project you specify the target database version in the Migrate To dropdown box. The default is SQL Azure. I suspect you didn't check the dropdown and created a project with the default value.
If you select another version, eg SQL Server 2016 or SQL Server 2014 you'll be able to use the Connect to SQL Server button.

Connecting Crystal Reports to VPS

I have coded a program in VB.NET which is for making proposal and printing invoices. I can connect to my VPS MySQL (Mariadb) database via my software and everything works fine (ADD/UPDATE/DELETE strings). But I also need to gather data from my database to print invoices. For making this I am using Crystal Reports XI Release 2. I need to connect Crystal Reports to my online MySQL database which is located in my VPS to get data and make the invoice ready to print.
Connection options for Crystal Reports are :
Access/Excel (DAO)
ADO.NET(XML)
Database Files
Exchange 5.5 Message Tracking Log
Exchange Message Tracking Log
Legacy Exchange
Mailbox Admin
ODBC (RDO)
Olap
OLE DB (ADO)
Microsoft Jet 4.0 OLE DB Provider
Microsoft Office 12.0 Access Database Engine
Microsoft OLE DB Provider for Analysis Service
Microsoft OLE DB Provider for Indexing Service
Microsoft OLE DB Provider for ODBC Drivers
Microsoft OLE DB Provider for Oracle
Microsoft OLE DB Provider for Search
Microsoft OLE DB Provider for SQL Server
Microsoft OLE DB Simple Provider
MSDataShape
OLE DB Provider for Microsoft Directory Service
SQL Server Native Client 11.0
Outlook/Exchange
Public Folder ACL
Public Folder Admin
Public Folder Replica
Universes
XML
I tried to connect to the VPS database in Crystal Reports with the following steps :
In Database expert menu I am selecting OLE DB (ADO) and then selecting Microsoft OLE DB Provider for SQL Server. Then it asks me Server, UserID, Password, Database. I am filling the fields but when I try to select database it shows nothing. When I leave the database field empty and click on next then it give me the following message:
Failed to open the connection.
Details: ADO Error Code:0x
Source: Microsoft OLE DB Provider for SQL Server
Description : [DBNETLIB][ConnectionOpen (Connect().]SQL Server does not exist or access denied.
SQL State:08001
Native Error: [Database Vendor Code:17]
I've solved that issue with following steps (Assuming MySQL Connector/ODBC already installed in your system) :
Add a new connection from ODBC Data Source Administrator
Select MySQL ODBC 5.3 ANSI Driver
Select TCP/IP radio button and enter your VPS server's IP address
with port number 3306
Fill User and Password field with you database username and database
password
Select your database from the drop down list
Click Test button and if everything works fine than click Ok
Select database expert under Database menu
Select ODBC (RDO) under Create New Connection menu
Select your connection and click Next
Enter your database user name and password and click Finish
Add required tables from your database by selecting the table and
clicking arrow button.
If you already created a design then open your design in Crystal Report and follow these steps:
Select Set Datasource Location under Database menu
Select ODBC (RDO) under Create New Connection menu which is located
in "Replace With" section
Select your connection and click Next
Enter your database user name and password and click Finish
Now select one of your previous tables from "Current Datasource" tab
and select the same table in "Replace With" tab then click update. Do it for all tables one by one.
Click close.
Hope this helps.

SQL Server 2008 Express server information

I installed a company specific program which can connect to a SQL Server. I installed SQL Server 2008 Express with mixed authentication. I called the instance SQLExpress.
What I want to do is to create a new database via the program. (see image). In point 5 I tried many logins like sa-login, MyComputerName\User-Password, User-Pass, but nothing works. In point 6 I used for the server name SQLExpress or MyComputerName\SQLExpress and for the (new) database name I used MyDB, but same thing here. Can't connect.
It keeps saying:
cannot create database master.MyDB. SQL Server doesn't exist or access denied.
Can anyone help me please?
Image: http://imageshack.us/photo/my-images/248/sqlserverinfo.png/
Thx
I figured it out.
I've created a user in SQL Server and added him to the "sysadmin"
role and gave him access to the "master" database.
After that I added an inbound rule (allow port 1433) to my Windows Firewall to allow remote connections to the SQL Server.
See http://msdn.microsoft.com/en-us/library/ms175043.aspx

Advantage to SQL 2008 Linked Server Access Denied Error

I am trying to create a linked server in SQL 2008 to an Advantage v7 database server. I've successfully created the linked server in SQL 2008 using the commands below and the connection tests out fine. Also, the Advantage DB I'm connecting to does not have a data dictionary.
SQL to create the Linked Server
EXEC master.dbo.sp_addlinkedserver
#server = N'ADVANTAGE', #srvproduct=N'Advantage',
#provider=N'Advantage.OLEDB',
#datasrc=N'\\asc1\questtest$\spaulrun'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin
#rmtsrvname=N'ADVANTAGE',
#useself=N'False',
#locallogin=NULL,#rmtuser=NULL,#rmtpassword=NULL
When I run the following query:
select * from
openquery(ADVANTAGE,'select * from members')
I get this error:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Advantage.OLEDB" for linked server "ADVANTAGE" reported an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "Advantage.OLEDB" for linked server "ADVANTAGE".
I've verified that this is not an NT File permissions issue. Also, just before the error messages are displayed, I can see all of the column names on the screen for just a second. So I'm getting at least some table information back from Advantage. I just don't know why I'm getting the Access denied message.
Any help is greatly appreciated!
This sounds familiar, but I don't remember the exact error message I got.
Try going to the Advantage OLE DB Provider in the Linked Server setup and right click and choose properties and set "Allow Inprocess".
If I remember correctly, in Management Studio Express i went to
Server Objects -> Linked Servers -> Providers -> Advantage OLE DB Provider (Right Click->Properties or Double Click)
Set "Allow Inprocess"