Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How can stored procedure retrieve from a database?

Asked by Graham Cook Jan 5, 2020 1.5K views 2 answers
Share

Your answer

2 Answers

Rachit Gupta JanBask Expert Latest answer

Answered on Feb 25, 2020

It can be retrieved in two ways:

Via GUI:

1. Connect to server

2. Connect to the database

3. Click on the database and expand--> Click on Programmability --> Click on stored Procedure --> you will get the list of procedures

4. Right click on procedure name à script stored procedure asà create to à click on New Query Editor window, the you will get the procedure in a new window, you can edit it and execute it again to save the changes on server.


Via Command:

1. Connect to server

2. Connect to the database

Query: sp_helptext 'Procedure_name'

Execute the query( using F5/ execute button)


Was this helpful?

Ranjana Admin JanBask Expert

Answered on Feb 14, 2020

Was this helpful?

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.