473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Best Practices Question - Data Access

gb
hi,

i'm working on a large project involving numerous tables.
there are instances, that i only need to do a simple select statement
for each table (e.g. select * from table1 or select fld1, fld3 from table1
or
select fld1,fld2 from table2). my question is, do i need to create stored
procedure (SP) for each? because if i do, i will be having a lot of SPs
for a single table alone.

thanks in advance.

--
Nov 15 '05 #1
5 1306
FWIW, stored procedures are also useful as a means of protecting data
from unauthorized access.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #2
It is better to have SPs from the security point of view.

Cheers
Benny

gb wrote:
hi,

i'm working on a large project involving numerous tables.
there are instances, that i only need to do a simple select statement
for each table (e.g. select * from table1 or select fld1, fld3 from table1
or
select fld1,fld2 from table2). my question is, do i need to create stored
procedure (SP) for each? because if i do, i will be having a lot of SPs
for a single table alone.

thanks in advance.

--


Nov 15 '05 #3
JPM
Jeff,
As a newbie also, I'm in a position at work, where I need to basically teach myself
EVERYTHING about programming in .NET/SQL 2000.

I've been playing with C# for about 4 months now, and I've seen a few examples of ASP.NET
app's that connect to an SQL 2000 DB using a SP, but I could never 'find' the code to practice
making my own.

Do you have any examples or know of where I can actually 'get' my hands on code to do this.
Obviously, the actual connection string properties would be for the Server(s), UID & P/W's at
work, but with an example, I can practice the implementation thereof without beating my head on
a brick wall every day (though I wonder if sometimes I like doing that..<grin>).

TIA

JPM

"Jeff Louie" <je********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
FWIW, stored procedures are also useful as a means of protecting data
from unauthorized access.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #4
Look at MSDN at the Data Access Block:

http://msdn.microsoft.com/library/de...ml/daab-rm.asp
"JPM" <So************@Nunya.org> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Jeff,
As a newbie also, I'm in a position at work, where I need to basically teach myself EVERYTHING about programming in .NET/SQL 2000.

I've been playing with C# for about 4 months now, and I've seen a few examples of ASP.NET app's that connect to an SQL 2000 DB using a SP, but I could never 'find' the code to practice making my own.

Do you have any examples or know of where I can actually 'get' my hands on code to do this. Obviously, the actual connection string properties would be for the Server(s), UID & P/W's at work, but with an example, I can practice the implementation thereof without beating my head on a brick wall every day (though I wonder if sometimes I like doing that..<grin>).
TIA

JPM

"Jeff Louie" <je********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
FWIW, stored procedures are also useful as a means of protecting data
from unauthorized access.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 15 '05 #5
JPM
Andrew,
Thanks! I'll play with that tomorrow at work (kinda nice to be in a position where I have
no deadlines; simply write code at my leisure and do R&D)...:)

JPM

"Andrew" <a.****@d2k.com.au> wrote in message news:u%***************@TK2MSFTNGP12.phx.gbl...
Look at MSDN at the Data Access Block:

http://msdn.microsoft.com/library/de...ml/daab-rm.asp
"JPM" <So************@Nunya.org> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Jeff,
As a newbie also, I'm in a position at work, where I need to basically

teach myself
EVERYTHING about programming in .NET/SQL 2000.

I've been playing with C# for about 4 months now, and I've seen a few

examples of ASP.NET
app's that connect to an SQL 2000 DB using a SP, but I could never 'find'

the code to practice
making my own.

Do you have any examples or know of where I can actually 'get' my

hands on code to do this.
Obviously, the actual connection string properties would be for the

Server(s), UID & P/W's at
work, but with an example, I can practice the implementation thereof

without beating my head on
a brick wall every day (though I wonder if sometimes I like doing

that..<grin>).

TIA

JPM

"Jeff Louie" <je********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
FWIW, stored procedures are also useful as a means of protecting data
from unauthorized access.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Nov 15 '05 #6

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

Similar topics

3
by: Ryan N. | last post by:
Hello, I saw a brief blurb on this somewhere and am unable to recall where... In the context of Security, what are some best practices for handling -storing, locating, retrieving- database OLEDB...
5
by: great_googley_moogley | last post by:
Greetings, I am in the process of installing a SQL database at a customer location. I have determined that there are 3 ways to do this, and I wanted to know which is the best of the 3. 1...
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
1
by: Vincent V | last post by:
Hey i am just starting a new project and from the start i want to make sure my app is as Object Orientated as possible I have a couple of questions in relation to this Question 1: Should i...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
0
by: David Helgason | last post by:
I think those best practices threads are a treat to follow (might even consider archiving some of them in a sort of best-practices faq), so here's one more. In coding an game asset server I want...
6
by: Nate | last post by:
I am in a slight predicament trying to determine the most efficient and effective way to connect/disconnect from a database within a business object (c# dll). I'm also keeping in mind the concept...
3
by: John Dalberg | last post by:
I am looking for an ASP.NET application on CodePlex which exemplifies best practices for the following: - Use of interfaces - Seperation of the UI, business and data tiers - Data Tier that uses...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.