May 20, 2011 at 1:03 am
Hi!
I am not able to execute the stored procedures with dbo but able to execute them without dbo.For eg.
Example:
EXEC [dbo].[sp_Test] -> not able to execute them
EXEC [sp_Test] -> For some reason, we can execute.
Please help in this regard.
thanks in advance
May 20, 2011 at 1:14 am
Verify the owner of the SP. It might have created by a username other than dbo, probably by the username you used while creating this SP. (i.e) [UserName].[SP_Test] rather than dbo.sp_Test.
---------------------------------------------------
Thanks,
Satheesh.
May 20, 2011 at 2:11 am
What error do you get when you try to execute dbo.sp_test?
I think you belong to different schema and sp_test exists in it.
May 20, 2011 at 6:42 am
Must be that the procedure was created with a different schema as owner.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
May 20, 2011 at 7:47 am
if you sp_help YourProc name, what owner/schema is it? you get results like this?
sp_help sp_Test
Name Owner Type Created_datetime
sp_Test dbo stored procedure 2011-01-19 11:02:11.727
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply