Hi, trying to get an open rowset right. I can get it to work if I use a login, but I want to use NT auth.
This works:
This does not:
I get "Login failed for user 'SYSTEM'.
[OLE/DB provider returned message: Invalid connection string attribute]" when I try trusted connection.
What am I doing wrong?
This works:
Code:
select a.*
(from openrowset ('SQLOLEDB',server;'login';'password',
'select * from table') as a
This does not:
Code:
select *
from openrowset('SQLOLEDB', 'Trusted_Connection= yes;Data Source=server;', 'select * from table') as a
I get "Login failed for user 'SYSTEM'.
[OLE/DB provider returned message: Invalid connection string attribute]" when I try trusted connection.
What am I doing wrong?