Automatically Generating Stored Procedures in SQL Server 2005

Posted on 2006-05-12
Last Modified: 2006-11-18
Does anyone know of way to automatically generate INSERT, UPDATE, and DELETE stored procedures in SQL 2005?
With all the new features that were added, I figured this would be available.
Question by:jet007
    LVL 75

    Expert Comment

    by:Anthony Perkins
    I can only hope not ...
    LVL 5

    Accepted Solution

    Hi jet007,

    I haven't seen, or heard, of anything built into SQL2005 (or any version) to auto generate stored procedures; however, there are programs you can buy to do this. Here is one that I found (I cannot vouch for its functionality and only provide the link as an example of something you might be looking for):

    LVL 50

    Assisted Solution

    i think i know where acperkins is comming from on this one...

    apart from a very Simple Insert stored procedure...

    how would you expect a generic UPDATE/DELETE procedure to work?

    these will vary greatly dependant on the overall design and business function being addressed...

    if you "know" can recognise comon functionality for your "current" business application area...
    then you can decide whether it will be worth the effort to construct your own "stored porcedure generator"
    for the process  or you may decide that a Basic Code template is the best way to go to achieve consistency between
    your developers...


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now