G
Guest
Dear all I try to retrive a set of data from an sql server 2005 database
with VS 2003
Following code is used :
m_sqlCon.Open()
m_sqlCmdObj = New Data.SqlClient.SqlCommand
m_sqlCmdObj.CommandType = Data.CommandType.Text
m_sqlCmdObj.Connection = m_sqlCon
m_sqlCmdObj.CommandText = m_SqlCmd
m_sqlCmdObj.CommandTimeout = 20
m_SqlAdapter.SelectCommand = m_sqlCmdObj
m_SqlAdapter.Fill(dsReelHist)
The .Open statement suceed
I get a SQL exception error " System error" when filling the dataset...
What is wrong here ?
Does framwork 1.1 is cabable of connection to SQL 2005 ?
regards
serge
with VS 2003
Following code is used :
m_sqlCon.Open()
m_sqlCmdObj = New Data.SqlClient.SqlCommand
m_sqlCmdObj.CommandType = Data.CommandType.Text
m_sqlCmdObj.Connection = m_sqlCon
m_sqlCmdObj.CommandText = m_SqlCmd
m_sqlCmdObj.CommandTimeout = 20
m_SqlAdapter.SelectCommand = m_sqlCmdObj
m_SqlAdapter.Fill(dsReelHist)
The .Open statement suceed
I get a SQL exception error " System error" when filling the dataset...
What is wrong here ?
Does framwork 1.1 is cabable of connection to SQL 2005 ?
regards
serge