Hi,
I have SQL Server 2005 (Dev Edition) installed in my machine (Computer A). I'm using my regular desktop (Computer B) to Remote Desktop into Computer A.
I'm able to access my SQL Server databases. I'm using Windows Authentication - the same login for both machines.
I'm not a DBA by any means, and I'm trying to get familiar wtih all of the concepts as well as familiarize myself with this version of SQL Server.
From both Computer A and Computer B, I have tried the following SQLCMD. (Suppose my username and password are user and user1, respectively.)
>SQLCMD -S WYI900 -d AdventureWorks -Q "select * from Purchasing.Vendor" -U user -P user1 - ooutput.txt
The line executes, but when I check my output.txt file,
instead of data, I get the following message:
Msg 18452, Level 14, State 1
'Login failed for user 'user'. The user is not associated with a trusted SQL Server connection.'
FYI - I created this user myself using Computer B.
Does anyone have a clear, quick method with how I can accomplish this simple query?
Needless to say, when I investigate this under Microsoft's Online Books, I get a series of links to articles that delve into subject matter that seems to be irrelevant. (Not a big Microsoft fan.)
Thanks in advance for any help you can provide.
mickeyj2
I have SQL Server 2005 (Dev Edition) installed in my machine (Computer A). I'm using my regular desktop (Computer B) to Remote Desktop into Computer A.
I'm able to access my SQL Server databases. I'm using Windows Authentication - the same login for both machines.
I'm not a DBA by any means, and I'm trying to get familiar wtih all of the concepts as well as familiarize myself with this version of SQL Server.
From both Computer A and Computer B, I have tried the following SQLCMD. (Suppose my username and password are user and user1, respectively.)
>SQLCMD -S WYI900 -d AdventureWorks -Q "select * from Purchasing.Vendor" -U user -P user1 - ooutput.txt
The line executes, but when I check my output.txt file,
instead of data, I get the following message:
Msg 18452, Level 14, State 1
'Login failed for user 'user'. The user is not associated with a trusted SQL Server connection.'
FYI - I created this user myself using Computer B.
Does anyone have a clear, quick method with how I can accomplish this simple query?
Needless to say, when I investigate this under Microsoft's Online Books, I get a series of links to articles that delve into subject matter that seems to be irrelevant. (Not a big Microsoft fan.)
Thanks in advance for any help you can provide.
mickeyj2