Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


An invalid schema or catalog was specified for the provider "SQLNCLI" for linked server


An invalid schema or catalog was specified for the provider "SQLNCLI" for linked server

Author
Message
jaramillo05
jaramillo05
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 101
Hello.

I have one linked server from server "A" to server "B" between 2 sql server 2005 with the last service packs and actualizations, they have the same versions and same configuration (collation name, permissions in the sql services with windows domain account).

In server A I create the linked server.
In the server B i create the login and have permissions in two 2 databases (desnew and divcomer) in a rol who have permissions in the tables i need.

When i try with a query like

Select * FROM LNK.DIVCOMERCIAL.DBO.Tabledivcomer

I receive this error message

An invalid schema or catalog was specified for the provider "SQLNCLI" for linked server "LNK".

LNK = name of the linked server
divcomercial = database
tabledivcomer = table in the database divcomer

But if i execute the next query

Select * FROM LNK.DESNEW.DBO.Tabledesnew

LNK = name of the linked server
DESNEW = database
tabledesnew = table in the database divcomer

I receive the correct response from the server, the error doesnt ocurs.

The login have same permisions for roles in the 2 databases.
I prove it from other server C created the linked server with the same login, and the error is the same, for divcomer (database 1) present the error, for DESNEW (database 2) everything is allright.


¿What happend?
Please help me!!!
jaramillo05
jaramillo05
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 101
Its so rare,

I create a backup from my database, delete this database.
Create a new database with the same specifications, and recover the backup

vuoala!
pk_nirmal
pk_nirmal
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 52
Can you confirm table name, make sure there is no special character (blank space or tab) exists at the end of “Tabledivcomer”.

If blank space exists at the end of “Tabledivcomer”( like “Tabledivcomer ”) then select query will work for local connection (Select * from Tabledivcomer ), but through error if you execute for remote connection Select * FROM LNK.DIVCOMERCIAL.DBO.Tabledivcomer.

In that case you can try Select * FROM LNK.DIVCOMERCIAL.DBO.[Tabledivcomer ]

Nirmal
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search