Re:Stored Procedure Question
From: Vishal Parkar (vgparkar@hotmail.com)
Date: 03/20/03
- Previous message: Usman: "Re: delete a system sp"
- In reply to: Leon Parker: "Stored Procedure Question"
- Next in thread: SriSamp: "Re: Stored Procedure Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Vishal Parkar" <vgparkar@hotmail.com> Date: Wed, 19 Mar 2003 20:51:28 -0800
When you execute a SP without any owner name by default
SQL assumes it to be dbo. If SP is owned by any other user
than dbo then you may get message as "Could not find
stored procedure....". You will have to execute SP by
prefixing the username to the SP name. To confirm owner of
the stored procedure fire following query.
select a.name, user_name(a.uid) 'owner'
from dbo.sysobjects a
where OBJECTPROPERTY(a.id, N'IsProcedure') = 1
order by a.name
--Vishal
>-----Original Message-----
>If I call a development stored procedure owned by me
>(ulu96a) from Production Modeler, I have to prefix the
>name of the stored procedure with ulu96a. Otherwise I
>cannot access the stored procedure. When we migrate our
>Production Modeler files to the string test environment
>where the stored procedures are owned by dbo we need to
>remove the user id prefix from every call, of which there
>are many. I don't know if our problem in the development
>environment is a result of privileges on the LRP_PM_DCUST
>account we use to connect to the database or with
>privileges on the stored procedures themselves. Do you
>have any suggestions on how we can fix this? Is it an
>account privilege problem?
>.
>
- Previous message: Usman: "Re: delete a system sp"
- In reply to: Leon Parker: "Stored Procedure Question"
- Next in thread: SriSamp: "Re: Stored Procedure Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|