473,385 Members | 1,379 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,385 software developers and data experts.

View & SP's for just a few users

I have read about Views vs. SP's and I have question to which I could not
readily find the answer.

The database I'm creating will only have 1 user from the start and up to
three maximum. Is there any reason that I shouldn't just use SP's for
everything or might there be an advantage to using views.

This is not a heavy I/O project either and most of the day to day use will
be record manipulation and reference rather than new record entry.

Thanks

-Jake
Jul 20 '05 #1
2 1306
"Jake Jessup" <wa*********@hotmail.com> wrote in message news:<31Zpc.57382$iy5.15229@okepread05>...
I have read about Views vs. SP's and I have question to which I could not
readily find the answer.

The database I'm creating will only have 1 user from the start and up to
three maximum. Is there any reason that I shouldn't just use SP's for
everything or might there be an advantage to using views.

This is not a heavy I/O project either and most of the day to day use will
be record manipulation and reference rather than new record entry.

Thanks

-Jake


In general, it's good practice to use stored procs for database
access, although some tools (especially for reporting) build queries
for you, so views may be a better abstraction layer in that case.

Views are useful for encapsulating frequent and/or complex joins, to
avoid having to type the same joins everywhere in your code. Also,
don't forget that views can be indexed (assuming you have MSSQL 2000 -
you didn't mention a version), which can be very useful for some types
of query, such as large joins and aggegrations.

Simon
Jul 20 '05 #2

"Simon Hayes" <sq*@hayes.ch> wrote in message
news:60**************************@posting.google.c om...
In general, it's good practice to use stored procs for database
access, although some tools (especially for reporting) build queries
for you, so views may be a better abstraction layer in that case.

Views are useful for encapsulating frequent and/or complex joins, to
avoid having to type the same joins everywhere in your code. Also,
don't forget that views can be indexed (assuming you have MSSQL 2000 -
you didn't mention a version), which can be very useful for some types
of query, such as large joins and aggegrations.

Simon


I'm using MSDE 2000. I'll keep that in mind about the complex joins, I might
have a few. Thanks for the advice. I'll stick mostly to SP's.

-Jake
Jul 20 '05 #3

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

Similar topics

3
by: Bryan | last post by:
I am executing a case statement list below, USE Northwind SELECT MONTH(OrderDate) AS OrderMonth, SUM(CASE YEAR(OrderDate) WHEN 1996 THEN 1 ELSE 0 END) AS c1996,
8
by: riprod | last post by:
Someone in the IIS newsgroup suggest I post this here, so sorry in advance for the cross posting. I have a Win 2003 SP1 with IIS 6 and host about 40 websites, most of them useing ASP/VB with...
5
by: Roshan | last post by:
This is regarding the article titled "C++ & Double-Checked Locking" by Scott Meyers and Andrei in DDJ July 2004 issue. I think the reasoning in this article is fundamentally flawed due the...
8
by: G Patel | last post by:
Can people please comment on the layout/style of my problem? The major issue I had was the layout. I ended up having to put a relatively large switch statement, inside an if statement, which is...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
5
by: Grzegorz Danowski | last post by:
Hi I have two databases: Customers and Operations. In Customers database I have made a view based on a few tables from both Customers and Operations (left join - customers without any...
13
by: Filips Benoit | last post by:
Dear All, How can I show the resultrecords of a SP. I can be done by doubleclick the SPname? But how to do it by code. I want the following interface In my form the user 1 selects a SP...
6
by: Peter Nurse | last post by:
For reasons that are not relevant (though I explain them below *), I want, for all my users whatever privelige level, an SP which creates and inserts into a temporary table and then another SP...
9
by: John Sheppard | last post by:
Hello there, I was wondering if anyone knew how to run a query that supplies the sql statement behind a view? or is there a way to do that with ado.net? Thank you kindly for anyones ideas...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.