aTekTipsUser
Programmer
Has something changed with the connection to the ADsDSOObject in vb.net? The following worked in vb 6, but when I convert it to vb.net I get the error 'No error information available: DB_E_Notable(0x80040E37)'. The connection opens, but the ExecuteReader fails. The sql is the exact same as the sql that worked in vb6.
aCon.ConnectionString = "Provider=ADsDSOObject;User ID="""";password="""""
aCon.Open
aCommand.Connection=aCon
aCommand.CommandText="Select fields FROM 'LDAP://DC=Domain,DC=Server"
'This is where it errors
dataReader=aCom.ExecuteReader()
aCon.ConnectionString = "Provider=ADsDSOObject;User ID="""";password="""""
aCon.Open
aCommand.Connection=aCon
aCommand.CommandText="Select fields FROM 'LDAP://DC=Domain,DC=Server"
'This is where it errors
dataReader=aCom.ExecuteReader()