Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement
Message
 
To
23/09/2002 13:36:49
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00702471
Message ID:
00703480
Views:
13
Here is a query I used often:

SELECT *
FROM OpenRowSet('SQLOLEDB', 'servername';'userid';'password','SELECT * FROM RquantTest.DBO.EarScales')


>that gave me an incorrect syntax error near ; . I assume it is because the connection string needs to be tied together. I tried a few alterations to this statement, but I still get the same error, invalid login.
>
>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
É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