Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 678 | Views in the last 30 days: 2
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones