Register Blogs FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   DeveloperBarn Forums > Databases > Microsoft SQL Server

Sponsored Links

Discuss "SQL Server Views" in the Microsoft SQL Server forum.

Microsoft SQL Server - Microsoft SQL Server is a powerful database engine used for large enterprise applications. Learn how to setup, administer and use SQL Server here.


Closed Thread
 
LinkBack Thread Tools Display Modes
  #1  
Old March 23rd, 2008, 06:32 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
theChris is an unknown quantity at this point
Default SQL Server Views

Hi,

I have a project that I'm updating and it uses views. Can someone tell me what a view is and its purpose?

Thanks,

theChris
Sponsored Links
  #2  
Old March 23rd, 2008, 07:08 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 40
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 1
lewy is on a distinguished road
Default

A view is nothing more than a representation of an SQL query.

They have many uses.
One use to to restrict a user to see only certain columns in a table.
Another use is to join several tables, then show the user relevant rows so that they can
be seen without the need of a complex SQL query.

Comments on this post
jmurrayhead agrees: Good answer! Good answer!
theChris agrees: thanks
  #3  
Old March 23rd, 2008, 07:10 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 951
Thanks: 22
Thanked 93 Times in 90 Posts
Blog Entries: 6
Rep Power: 4
jmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the roughjmurrayhead is a jewel in the rough

Awards Showcase
Microsoft Windows Microsoft SQL Server Microsoft .Net Classic ASP 
Total Awards: 4

Default

To add to lewy's excellent response, a View is a sort of "Virtual Table" that can be made of the columns of several other tables. They are very useful because of that.
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

If you like it here...throw us a few bones to help
support us.

Join our Folding team: DeveloperBarn Folding

  #4  
Old March 23rd, 2008, 07:35 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 1
theChris is an unknown quantity at this point
Default

Thanks for the responses, guys! Very helpful!
Closed Thread

  DeveloperBarn Forums > Databases > Microsoft SQL Server

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -4. The time now is 09:24 AM.



Content Relevant URLs by vBSEO 3.2.0