Creating a SQL Server Stored Procedure Generator using WPF
page 1 of 8
Published: 22 Aug 2007
Abstract
This article shows you how to create an application that generates stored procedures for you, based on the table layout, or other details using Windows Presentation Foundation.
by Brian Mains
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 13315/ 364

Introduction

Stored procedures provide the ability to perform some action against a database and have some advantages to querying data from an application. First and foremost, it reduces the amount of redundancy and has a performance gain when multiple calls are executed. In addition, it does not have any hindrances when used with the .NET 2.0 Framework, as stored procedures can be used directly in the ASP.NET 2.0 data source controls.

But coding those stored procedures can be a tedious task, especially when many of the stored procedures work the same way. They read, insert, delete, and update rows in the database using the same or similar structure. When reading data, usually all of the fields are read from, and so no specialization is usually needed. When inserting data, usually all of the fields are inserted and all of the same fields, except for the key value, are updated in an update stored procedure.  Deletions usually occur by specifying the key field only, but that is not necessarily true.  Sometimes the create/update stored procedure is lumped into one. This is true in business-object applications, but may be less true in data-driven applications.

This article will show you how a generator for stored procedures could be created using the new Windows Presentation Framework (WPF) features of .NET 3.0.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 6 and 2 and type the answer here:

User Comments

Title: A good start   
Name: Ralph D. Wilson II
Date: 9/19/2007 10:36:05 AM
Comment:
This presents a good start toward creating Stored Procs; however, I can see several limitations in it. Perhaps the most glaring limitation is the fact that it appears to only facilitate the creation of very basic SP's and, while that is useful, I am assisting C#/ASP.Net developers in the creation of much more complex SP's.
Title: type   
Name: Nitin
Date: 9/19/2007 6:17:17 AM
Comment:
it is good but not enough
Title: Useful   
Name: Niall
Date: 8/30/2007 3:32:49 AM
Comment:
This is interesting and I can see a very good use for this type of programming in my current project. One reservation I have though is the use of the WPF. Specifically the Presentation part of WPF.
Title: Code is Attached   
Name: Brian Mains
Date: 8/26/2007 7:26:33 PM
Comment:
The code is attached; see the downloads section.
Title: download this software   
Name: ankti
Date: 8/26/2007 4:22:23 PM
Comment:
i want to see this software






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 7/25/2008 3:35:04 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search