Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement
Message
 
To
23/09/2002 10:22:26
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00702471
Message ID:
00703412
Views:
16
Now, try this
SELECT Inventory.Descr, Inventory.InvtID, Inventory.User6
FROM   Inventory
          INNER JOIN OPENROWSET('SQLOLEDB',
          '(local)';'x';'123';'select * from medex..inventory') LocalInv ON
          Inventory.InvtID = LocalInv.solomonid
>well, it looks a little better. now I am only getting the message:
>
>[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'emnsql02'
>
>I assume the user name and password are for the database and not the server.
>Do I need single quotes around the user id and password? And, if the user name and password are based on Windows Authentication, does it make a difference if you are logging in locally or onto a domain? Also, what does 'emnsql02' mean?
>
>SELECT Inventory.Descr, Inventory.InvtID, Inventory.User6
>FROM Inventory
> INNER JOIN OPENROWSET('SQLOLEDB',
> 'server=(local);User id=x;password=123;
> database=MEDex', inventory) LocalInv ON
> Inventory.InvtID = LocalInv.solomonid
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform