Viewing 15 posts - 2,116 through 2,130 (of 2,647 total)
I still want to let you know that a cursor is the wrong way to do this. So, unless this is a homework assignment you may want to ask about...
November 30, 2011 at 1:22 pm
ankurk2 (11/30/2011)
Yeah I can use directly into temp table. But i think that's not the issue. Some where lack in looping . If you know please let me know.
if @sql...
November 30, 2011 at 1:20 pm
You are saying IF @sql = '' and after the first run through, it does not = ''. Then you are setting @sql = something. It should be set...
November 30, 2011 at 1:14 pm
MyDoggieJessie (11/30/2011)
>> Sapen, Yes...it must match the credentials on the remove server (mas 90 providex database)
Really? I have linked servers set up with users that do not exist on the...
November 30, 2011 at 11:54 am
Well... I am out of ideas. Sorry!
Jared
November 30, 2011 at 10:26 am
Sapen (11/30/2011)
So should these credentials be added to the sql server too?
No it is passing these credentials to the remote server.
Jared
November 30, 2011 at 10:24 am
Sapen (11/30/2011)
November 30, 2011 at 10:20 am
Sapen (11/30/2011)
November 30, 2011 at 10:11 am
mamidimahesh (11/29/2011)
Could not connect to server '<<ServerName>>' because 'sa'...
November 30, 2011 at 10:09 am
dr43058 (11/30/2011)
in the query editor, I am getting "could not find stored procedure 'mysprocNAME' !!!
So this is before you try to execute it? If so, does it execute properly?
Jared
November 30, 2011 at 10:06 am
Sapen (11/30/2011)
I have just enabled the RPC out and executed my query and I end up getting the below error:
OLE DB provider "MSDASQL" for linked server...
November 30, 2011 at 10:00 am
Hmm... Try enabling RPC out. Also, is the login from your SSMS on your machine the same that you use to login to SSMS on the server?
Jared
November 30, 2011 at 9:42 am
MyDoggieJessie (11/30/2011)
Jared, that's just sample code 😉 To prove the concept of testing something against a linked server - would never do that in working code!
Ha! I realized who...
November 30, 2011 at 9:35 am
sturner (11/30/2011)
November 30, 2011 at 9:24 am
Also, I believe doing SELECT TOP 1000 will not necessarily give you the first identity value. You have to have an ORDER BY to guarantee your result set.
Jared
November 30, 2011 at 9:07 am
Viewing 15 posts - 2,116 through 2,130 (of 2,647 total)