Hi,
I'm trying to check if an Access query (stored procedure) exists in a database, and:
If Stored_Proc exists:
run the query
Else
run a different query (pardon my pseudo code)
I can connect to the DB fine with ADO, I can run the query fine with: Set oRS=MyDatabase.Execute(sql), but I can't figure this one out.
I've tried several versions of:
SELECT name FROM sysobjects WHERE name = 'InsertAccount' AND type = 'P'
But I can't seem to make this work right.
I'm trying to check if an Access query (stored procedure) exists in a database, and:
If Stored_Proc exists:
run the query
Else
run a different query (pardon my pseudo code)
I can connect to the DB fine with ADO, I can run the query fine with: Set oRS=MyDatabase.Execute(sql), but I can't figure this one out.
I've tried several versions of:
SELECT name FROM sysobjects WHERE name = 'InsertAccount' AND type = 'P'
But I can't seem to make this work right.