Solved

sp_helptext does not allow : sp_helptext OtherDB.dbo.spSelT - SQL Server

Posted on 2011-09-16
2
1,078 Views
Last Modified: 2012-05-12
Hi,

I have my stored procedure "spSelT" in "OtherDB" database. And now i cannot able to write:

sp_helptext OtherDB.dbo.spSelT

Is there any way that i can wite like above ? Modify the above command if needed.

And if i want to do for other than "dbo" schema then how to write it ?

sp_helptext dbo.spSelTest  // returns error

Please provide the command for that also.

Thanks
0
Comment
Question by:milani_lucie
  • 2
2 Comments
 
LVL 21

Expert Comment

by:JestersGrind
ID: 36551679
Try putting your database and schema before sp_helptext like this.

EXECUTE OtherDB.dbo.sp_helptext 'spSelT'

Greg

0
 
LVL 21

Accepted Solution

by:
JestersGrind earned 500 total points
ID: 36551692
Also to answer your second question, put the object inside single quotes.

Greg

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question