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)
 SQL OpenDataSource

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-10-16 : 07:17:55
Guek Cheng writes "May I know why when I execute below T-SQL :-
SELECT dn_nation
FROM OpenDataSource( 'MSDASQL','Data Source="DEVSVR_DSN";DRIVER={Unify DBIntegrator Client};UID=xxxxxxx;PWD=xxxxxxx')...dnation
where dn_desc = 'MALAYSIA'

I received below error message when execute:-
Server: Msg 7311, Level 16, State 2, Line 1
Could not obtain the schema rowset for OLE DB provider 'MSDASQL'. The provider supports the interface, but returns a failure code when it is used.
[OLE/DB provider returned message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBSchemaRowset::GetRowset returned 0x80040e21: ]."

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-16 : 07:26:38
What happens if you drop the " ?
SELECT	dn_nation 
FROM OpenDataSource('MSDASQL', 'Data Source=DEVSVR_DSN;DRIVER={Unify DBIntegrator Client};UID=xxxxxxx;PWD=xxxxxxx')...dnation
where dn_desc = 'MALAYSIA'
Also, are you sure the provider is OLEDB compliant?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -