Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

AUTOGENERATE Stored procedures example

By Chris Morton,

run the script as it is on your server.

inspect the database tables and structure. notice a table called 'gautengdata' that does not have a primary key.

inspect the store procs.

run:

USE [splogexample]
GO

DECLARE @return_value int

EXEC @return_value = [dbo].[_SPLOG_SPConstructor]

SELECT 'Return Value' = @return_value

GO

with default parameters

refresh the stored procedures

inspect the stored procedures.

think about this:

a true programmer knows that the path of least effort (resistance) is usually the road to rapid application development and successful delivery.

all of this means lots of money...

have fun!

Chris

Total article views: 700 | Views in the last 30 days: 1
 
Related Articles
ARTICLE

Ready for Inspection

Today we have a guest editorial from Andy Warren. Are you ready for an inspection at work? Are you r...

FORUM

Stored procedure returning wrong value ... -1

Stored procedure returning wrong value ... -1

FORUM

Calling Oracle stored procedure with return parameter from SQL2005

Calling Oracle stored procedure with return parameter from SQL2005

FORUM

Call Another stored procedure which returns muliple rows

Call Another stored procedure which returns muliple rows

FORUM

Stored procedure which has problem with the function return value

Stored procedure which has problem with the function return value

Tags
 
Contribute