Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't find stored procedure 1

Status
Not open for further replies.

gusset

Technical User
Mar 19, 2002
251
GB
i am executing a stored procedure with this code:

Set com = New ADODB.Command
With com
.ActiveConnection = cnn
.CommandType = adCmdStoredProc
.CommandText = "ex_TimeEntries"
End With
Set rst = New ADODB.Recordset
Set rst = com.Execute

and i get the message "could not find stored procedure "ex_TimeEntries". i don't understand this, as i created the sp myself and it runs fine from the sql code editor. perhaps it is a permissions point.

does anyone have any ideas, please?

thanks

gusset
 
Try specifying a database name too as in ...

MyDB.dbo.ex_TimeEntries

Thanks

J. Kusch
 
amazing! that worked. thanks

i've never come across that before. the db name was coded into the connection string, so i didn't think i'd need that.

i tried this "dbo.ex_TimeEntries" but the program didn't like that. when i did "Mydb.dbo.ex_TimeEntries", it went without a hitch.

i guess it must be a permissions point. i never had that problem when i was using databases of my own creation on my own server.

gusset
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top