Dear all,
I am using SQL 2000 and would like to dynamically assign ODBC data source to transform data task. Do you have a stored procedure to perform read/write from/to ODBC data source I would like to input data source and table name.
Thank you and Best regards,
Chaivat

Using stored procedure to read from ODBC ?
OLE72
Hello Jens,
I tried to define link server using both sp_linkedserver and enterprise manager approach. It seems that I cannot add the ODBC datasource to Microsoft OLE DB provider for ODBC.
My datasource is SAS and I have SAS ODBC driver which able to read/write in DTS.
I also can read data from SAS to Excel using the same DSN.
Do we have another way to code stored procedure that works like adding ODBC datasource and data transformation task in DTS
Here is the code and error I found.
GO
-- To use named parameters:
EXEC sp_addlinkedserver
'SAS',
'SAS',
'MSDASQL',
'NCBSAS'
GO
FROM OPENQUERY(SAS, 'SELECT * FROM x')
GO
OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x80004005: ].
Best regards,
CJira
BarataMota
aybe
Dear all,
Do you have any update
Best regards,
CJira
DINESH CHAUDHARI
HTH, Jens K. Suessmeyer.
---
http://www.sqlserver2005.de
---
RafaDom
SELECT * FROM linkedServer.Database.Schema,Objectname
HTH, Jens K. Suessmeyer.
---
http://www.sqlserver2005.de
---