'Arguments are of wrong type, are out of acceptable range, or are in conflict with one another'
this error occurs ...
i m using vb.net 2005 with sql server 2000 backend
i had a project in vb 6.0 with MS access
i hav converted it to vb.net 2005 and hav made all necessary changes in code
now as the project was in vb 6.0 it has adodb recordset for fetching data from table
now whn i m using sql server connection string i get this error..
my code is as below,...
.------------------------------------------------------------
Public consc As SqlConnection
.------------------------conection string--------------------------
consc.ConnectionString = "Data Source=<servername>;Initial Catalog=HR;Integrated Security=True"
------------------------code------------------------------------
Dim ssql as string="select * from employee_master"
lrsTemp = New ADODB.Recordset
If lrsTemp.State = 1 Then lrsTemp.Close()
lrsTemp.Open(ssql, consc)
------------------------code------------------------------------
i get error on the last line .....i.e.. lrsTemp.Open(ssql, consc)
i m getting mad... plz help..