Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Stored Procedures or Custom Views
Old 08-31-2006, 03:26 PM Stored Procedures or Custom Views
Experienced Talker

Posts: 34
Trades: 0
I use MSSQL 2005 as my DB.I want to filter table records.I don't know whether I should Use "Custom Views" or "Stored procedure" which is faster.what is the difference between them?
s2002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-01-2006, 12:07 PM Re: Stored Procedures or Custom Views
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A custom view is a "virtual" table created from a predefined query, so is a filter on preset parameters. They are used more for security aspects as the end user is working on a "virtual" dataset rather than on the live database.

A stored procedure is much more powerful and is normally used for automating a group of functions or running queries where different parameters may be needed for the data extraction.

These are basic explanations, there is obviously much more to both.

If your filter is based on static parameters and is always going to be the same then use a view.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Stored Procedures or Custom Views
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34570 seconds with 12 queries