This is my dilemma:
I have the following: query
Private rs As ADODB.Recordset
Dim sql As String
sql = "Select * from database.dbo.sysobjects where
id = object_id(N'database.dbo.tablename')"
Set rs = sqlexec (dbc, sql)
where sqlexec is a function designed to carry out the query.
This function is tried and true (I didn't write it)
Anyway, with the above query rs is SOMETHING
But if I add
" and objectproperty(id,N'IsUserTable')=1"
Then rs comes back as NOTHING
I have even cut and pasted the query sent to sqlexec
and used it in Query analyzer and it works,
that is I get one row back...
Any thoughts?
I have the following: query
Private rs As ADODB.Recordset
Dim sql As String
sql = "Select * from database.dbo.sysobjects where
id = object_id(N'database.dbo.tablename')"
Set rs = sqlexec (dbc, sql)
where sqlexec is a function designed to carry out the query.
This function is tried and true (I didn't write it)
Anyway, with the above query rs is SOMETHING
But if I add
" and objectproperty(id,N'IsUserTable')=1"
Then rs comes back as NOTHING
I have even cut and pasted the query sent to sqlexec
and used it in Query analyzer and it works,
that is I get one row back...
Any thoughts?