Is it possible to use OpenRowSet to move data to/from Servers that use different authentication methods?
If I use Query Analyzer to connect to a Server using WINDOWS AUTHENTICATION and run the following query that attempts to connect to a database that uses MIXED MODE AUTHENTICATION I get the error ...
Server: Msg 18452, Level 14, State 1, Line 1
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
[OLE/DB provider returned message: Invalid connection string attribute]
The query is....
INSERT INTO AccountType SELECT a.* FROM OPENROWSET('SQLOLEDB', 'Data Source=dsvr;Initial Catalog=hughjunktest;uid=sa;pwd=;Use Encryption For Data=False;Persist Security Info=False;Packet Size=4096;', 'SELECT * FROM hughjunktest.dbo.AccountType') as a
This query works fine when connecting to a MIXED MODE AUTHENTICATION Server but not a WINDOWS AUTHENTICATION Server.
Is there another parameter I need to include in the connection string in the OPENROWSET method?
Maybe a service pack?!?
Prayers?
Please tell me it can be done......
If I use Query Analyzer to connect to a Server using WINDOWS AUTHENTICATION and run the following query that attempts to connect to a database that uses MIXED MODE AUTHENTICATION I get the error ...
Server: Msg 18452, Level 14, State 1, Line 1
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.
[OLE/DB provider returned message: Invalid connection string attribute]
The query is....
INSERT INTO AccountType SELECT a.* FROM OPENROWSET('SQLOLEDB', 'Data Source=dsvr;Initial Catalog=hughjunktest;uid=sa;pwd=;Use Encryption For Data=False;Persist Security Info=False;Packet Size=4096;', 'SELECT * FROM hughjunktest.dbo.AccountType') as a
This query works fine when connecting to a MIXED MODE AUTHENTICATION Server but not a WINDOWS AUTHENTICATION Server.
Is there another parameter I need to include in the connection string in the OPENROWSET method?
Maybe a service pack?!?
Prayers?
Please tell me it can be done......