Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 OPENDATASOURCE / OPENROWSET using a trusted connection

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-14 : 10:47:32
Jonathan writes "Can an OPENDATASOURCE or OPENROWSET query can be called via NT authentication, rather than with a SQL Login? If so, what would be the correct syntax to use?"

naclerio75
Starting Member

1 Post

Posted - 2007-11-27 : 04:38:59
The solution is
OPENDATASOURCE('SQLOLEDB','Data Source=localhost;Integrated Security=SSPI')

Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-27 : 04:58:58
wow!
he got an answer after 5+ years!
now that's what i call a thirst to answer. well done!

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-11-27 : 07:59:37
quote:
Originally posted by AskSQLTeam

Jonathan writes "Can an OPENDATASOURCE or OPENROWSET query can be called via NT authentication, rather than with a SQL Login? If so, what would be the correct syntax to use?"


Do you want to access them from front end or back end?
Example for the latter which works in both the modes
http://sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2007-11-27 : 08:20:25
quote:
Originally posted by spirit1

wow!
he got an answer after 5+ years!
now that's what i call a thirst to answer. well done!

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com


I was wondering why it appeared on the first page?!?
Go to Top of Page
   

- Advertisement -