| |

VerySource

 Forgot password?
 Register
Search
View: 923|Reply: 4

How to write a stored procedure statement through the Query Analyzer

[Copy link]

3

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-6 14:00:01
| Show all posts |Read mode
I used it often, but I have n’t written a program in the past year
Reply

Use magic Report

0

Threads

20

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-5-22 17:00:02
| Show all posts
Text for display rules, default values, unencrypted stored procedures, user-defined functions, triggers, calculated columns, or views.

grammar
sp_helptext [@objname =] name
    [, [@columnname =] computed_column_name]

parameter
[@objname =] name

The name of the object will display the definition information of the object. The object must be in the current database. The data type of name is nvarchar (776), and there is no default value.

[@columnname =] computed_column_name

The name of the calculated column whose definition information is displayed. The table containing the column must be specified as objname, and the table must be in the current database. computed_column_name is sysname, there is no default value.

Return code value
0 (success) or 1 (failure)
Reply

Use magic Report

0

Threads

88

Posts

55.00

Credits

Newbie

Rank: 1

Credits
55.00

 China

Post time: 2020-5-22 21:15:01
| Show all posts
EXEC sp_helptext ‘stored procedure name’
Reply

Use magic Report

0

Threads

114

Posts

69.00

Credits

Newbie

Rank: 1

Credits
69.00

 China

Post time: 2020-5-23 08:45:02
| Show all posts
select name as stored procedure name from sysobjects where xtype = 'P'
View all stored procedures and functions in the database
   use @database_name
   sp_stored_procedures
Reply

Use magic Report

3

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 United States

 Author| Post time: 2020-5-24 10:00:01
| Show all posts
Thank you enthusiastic friends
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list