Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stored Procedure Owner

Author  Topic 

tedew
Starting Member

22 Posts

Posted - 2005-10-19 : 09:29:58
hello,

I have a problem with my stored procedure :(
I wrote some procedures and they don't work when other users are loged. they work only if I'm loged , in application is error " can't find stored procedure "
I think it's the problem with owner of the strode procedure - I'am the owner
How can I do these procedures to able for another users ???

bye,
sorry for my english :)

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-19 : 09:35:32
When crating the Stored Procedure create it by using dbo

Create Procedure dbo.yourSP
(

)

so that every user can use that sp by using dbo.yourSP


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2005-10-19 : 09:49:44
quote:
Originally posted by madhivanan

so that every user can use that sp by using dbo.yourSP


I'm sure madhivanan knows this but just to be clear to tedew: dbo.SPs can be execed by every user -- even if they omit the dbo prefix.

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-19 : 09:53:02
Yes Thats Good Point Sam
But When you create Function using dbo, then you cant use it without specifying the owner
So it will be safer to use owner name

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -