Tim B
5/17/2002 9:53:00 AM
Hi,
am trying to connect to a database for which i have an odbc driver.
Is it possible using ADO.NET?
When i attempt to open an ODBCconnection using the following string
Provider=MSDASQL.1;Password="";Persist Security Info=True;User ID=TIM;Data
Source=SageLine132
i get the following error
Microsoft.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver
Manager] Data source name not found and no default driver specified
at Microsoft.Data.Odbc.OdbcConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection,
ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at CsTest.Service1.SelectOdbcSrvRows(String connection, String query) in
c:\inetpub\wwwroot\cstest\service1.asmx.cs:line 57
Thanks in advance
Tim B