This is due to the recordset
Set rs = Server.CreateObject("ADODB.Recordset")
objrs.CursorType = 2 ' Use 2 instead of adCmdTable
objrs.LockType = 3 ' Use 3 instead of adLockOptimistic
rs.Open strSQL, consqldb
and consqldb should be valid connection string
Or use the following
rs.Open strSQL, consqldb,2,3