473,499 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SP Technique --

I'm a newbie when it comes to the SQL Server side of things. I've been doing
Access on and off for years.

I've got a form that is the main point of entry for all data.

As a matter of technique, should I use one stored procedure to validate data
(testing for uniqueness mostly) then another one to actually write the data
to the tables?

Does it make a difference one way or another to the performance?

Do I gain any flexibility in my app dong it that way (Access Data Project)?

Your help is appreciated.

--Jake
Jul 20 '05 #1
2 1228
Hi

How your stored procedures are constructed will depend on how you wish to
use them!! If there is a requirement to validate data on it's own (e.g in an
event for a given field) then you should write a single procedure that does
that, of course you would need to re-validate it before committing the data
to the database. This may use the same procedures, but then if you can
combine validation it will be more efficient. Large amounts of code in your
procedures may make it more likely to be recompiled, therefore splitting
them up may reduce that. There is also the issue of maintainance, which is
more difficult if you use a less modular approach to designing your stored
procedures.

HTH

John

"Jake Jessup" <wa*********@hotmail.com> wrote in message
news:Jb*******************@newssvr29.news.prodigy. com...
I'm a newbie when it comes to the SQL Server side of things. I've been doing Access on and off for years.

I've got a form that is the main point of entry for all data.

As a matter of technique, should I use one stored procedure to validate data (testing for uniqueness mostly) then another one to actually write the data to the tables?

Does it make a difference one way or another to the performance?

Do I gain any flexibility in my app dong it that way (Access Data Project)?
Your help is appreciated.

--Jake

Jul 20 '05 #2
You shouldn't need to code tests for uniqueness. The database
structure should take care of that automatically, throwing errors
if you violate it.

Bill

Jake Jessup wrote:
I'm a newbie when it comes to the SQL Server side of things. I've been doing
Access on and off for years.

I've got a form that is the main point of entry for all data.

As a matter of technique, should I use one stored procedure to validate data
(testing for uniqueness mostly) then another one to actually write the data
to the tables?

Does it make a difference one way or another to the performance?

Do I gain any flexibility in my app dong it that way (Access Data Project)?

Your help is appreciated.

--Jake


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2121
by: Jack Klein | last post by:
I'm looking for opinions on a C technique I, and others, have used successfully in the past. While some people swear by, apparently others swear at it. Assume a part of a program too large to...
0
1399
by: deathyam | last post by:
Hi, I am writing an application in Excel 97 in which the users click a button and data is saved/read to and from an Access 97 database on the LAN. I am concerned about performance because there...
18
2312
by: xahlee | last post by:
Last year, i've posted a tutorial and commentary about Python and Perl's sort function. (http://xahlee.org/perl-python/sort_list.html) In that article, i discussed a technique known among...
3
4875
by: pragy | last post by:
Hey, can any one help me for writing a program of naive gauss elimintaion technique? It's a technique to solve system of simultaneous linear equations using matrix. thanks
2
1639
by: Bob Alston | last post by:
Recently I have been helping a nonprofit modify a system built in Access, that they acquired from another nonprofit. I am doing this as a volunteer. I would like your perspective on two...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.