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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing a stored procedure

Status
Not open for further replies.

shabbs

Technical User
Oct 10, 2001
35
0
0
BE
I am trying to execute a stored procedure 'get_lotno' in database 'bb4inlinesamples' from an existing stored procedure 'procbbvsamples' in database 'brightbeer'. Both databases reside on the same server.

I have added the following statement

EXECUTE BB4INLINESAMPLES.dbo get_lotno

within 'procbbvsamples' but it returns the error:-

error 509: UserName 'BB4InlineSamples' not found



can anybody tell me what line of code I need to do this?
 
Hi There

Has the user who is running the stored procedure got access to the "BB4INLINESAMPLES" database and the "dbo get_lotno" stored procedure ?

Bernadette
 
You are missing a period between dbo and get_lotno

EXECUTE BB4INLINESAMPLES.dbo.get_lotno

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top