﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by bitbucket  / VIEWS 3 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 12:39:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Nice question and nice reference in answer.. I lost patiencce on reading the entire explaination provided in BOL..But really a great stuff.</description><pubDate>Thu, 10 Jan 2013 06:15:19 GMT</pubDate><dc:creator>Dineshbabu</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>thanks for your suggestion Hugo</description><pubDate>Wed, 10 Oct 2012 05:13:50 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]kapil190588 (10/10/2012)[/b][hr]hi Hugo,thanks a lot....I am new in area of DBA so can you plz suggest how can i improve my skills in sql area..any site or books?[/quote]The most important thing is to get practice. As much as you can get. If you haven't already, install an instance of SQL Server on your private laptop and/or home desktop. SQL Server Express edition is a free download that enables you to play around with most features; if you need acccess to the full feature set, you can buy Developer Edition for, I think, about 50 dollars per license. (I think you will need one license for each computer you install it on). Developer Edition gives you access to the full feature set of Enterprise Edition, but the license does not cover production use - development and testing only.It's also very important to know where to ask for help. Always try to find a solution first, using Books Online, trial and error, and Google/Bing - but don't hesitate to ask for help if needed. There are forums on this site, but there are also forums on many other sites. The most popular are probably the MSDN forums. Also, if you're on Twitter, you can get quick answers to short questions by using the #sqlhelp tag.For reading, I can recommend lots of sites. MSDN is mostly reference. This site has lots of articles, but unfortunately, the quality varies from extremely good to extremely bad, and everything in between. When you read an article here, always check if there was any debate on the forums (each article has a link to it's own forum discussion, just like the daily questions), and then still double check what you read. The daily question here is also nice, but beware that question authors often focus on edge cases, whereas in your actual work you will need the normal stuff most often.A source of very high quality information is the blogger site [url=http:sqlblog.com]sqlblog.com[/url]. (And I'm not saying that becuase I blog there, but because there are many great bloggers there - and note that there are also many great bloggers who blog elsewhere, so don't limit yourself to just that one site). However, due to the nature of blogs, it may be hard to find material of your own level.It's hard for me to recommend books, as I don't read that many books - and those I do read are not really targeted at the beginner level. One book I can recommend wholeheartedly is [url=http://www.amazon.com/Microsoft-Server-2008-Bible-Wiley/dp/0470257040]Paul Nielsens "SQL Server 2008 Bible"[/url]. (For full disclosure, I will say upfront that I was involved in the production of this book - I was the lead technical editor. I was payed a fixed amount for this, so I have no financial interest in driving its sales). I believe this book does achieve what it sets out to do - cover almost everything in SQL Server, starting at a level suitable for relative newcomers, but not stopping short of the more advanced stuff.Be warned that this is a pretty hefty volume. Don't plan to read it on a plane, you'll have to pay for excess weight. And check it out before buying, it may be more than you need at this time. I think there is also a "SQL Server 2012 Bible", but I have not seen any of its contents, so I can't comment on the quality. I know that Paul Nielsen, the original author of the "SQL Server ... Bible" series, was no longer involved in this edition.For more book reading suggestions, you might want to start a new discussion in an appropriate forum and see what other suggestions you get.</description><pubDate>Wed, 10 Oct 2012 05:04:17 GMT</pubDate><dc:creator>Hugo Kornelis</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>hi Hugo,thanks a lot....I am new in area of DBA so can you plz suggest how can i improve my skills in sql area..any site or books?</description><pubDate>Wed, 10 Oct 2012 03:56:25 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]kapil190588 (10/10/2012)[/b][hr]can anyone tell me how to add a constraint to a already created view?I write as-alter view chk_salesasselect * from SalesDates,add chk_unique constraint unique  (id&amp;gt;2)this is giving me error...[/quote]You cannot create any constraints on views,You can, however, create indexes on views. The first one you create has to be a clustered unique index; after that you can continue to create additional nonclustered indexes, that can be unique or nonunique, can include additional columns, and can be filtered. Using unique indexes on a view is a way to mimic the behaviour of constraints - but my recommendation is to do this only when required (which, since the addition of filtered indexes in SQL Server 2008, should be almost never); it's much better, both for performance and for future maintenance, to put constraints on the base tables.</description><pubDate>Wed, 10 Oct 2012 03:46:41 GMT</pubDate><dc:creator>Hugo Kornelis</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]kapil190588 (10/10/2012)[/b][hr]sorry I pasted wrong query- this is the query below in which I am getting error-alter view chk_salesasselect * from SalesDates,add constraint chk_unique  unique values (id&amp;gt;2)[/quote]You cannot create a constraint on the columns of a view.Constraints belong on the base tables.Views make use of predicates...</description><pubDate>Wed, 10 Oct 2012 01:58:49 GMT</pubDate><dc:creator>Stewart "Arturius" Campbell</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>sorry I pasted wrong query- this is the query below in which I am getting error-alter view chk_salesasselect * from SalesDates,add constraint chk_unique  unique values (id&amp;gt;2)</description><pubDate>Wed, 10 Oct 2012 01:53:04 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>can anyone tell me how to add a constraint to a already created view?I write as-alter view chk_salesasselect * from SalesDates,add chk_unique constraint unique  (id&amp;gt;2)this is giving me error...</description><pubDate>Wed, 10 Oct 2012 01:49:25 GMT</pubDate><dc:creator>kapil_kk</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Good straightforward question. Thanks for submitting.</description><pubDate>Mon, 02 Apr 2012 19:13:03 GMT</pubDate><dc:creator>Britt Cluff</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>We can't forget to count the amount of space these blog posts add to non-indexed views.My non-indexed view is that replacing "for the CREATE VIEW statement" with "to create views" would have made "correct" correct.In any case, Ron, thanks for the question and all your numerous excellent contributions to this web site.Chris[hr][i]All is not yet lost.[/i] [Nom DePlume]</description><pubDate>Thu, 22 Mar 2012 12:16:42 GMT</pubDate><dc:creator>chris.ctr.cody</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]marlon.seton (3/22/2012)[/b][hr]I'm probably exposing my ignorance here but with a view on just one table is there any difference between having an index on the view and having an index on the relevant columns in the table the view looks at?[/quote]An index on the view persists this view to the database.If it makes a difference regarding performance: it depends :-)</description><pubDate>Thu, 22 Mar 2012 07:40:15 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]marlon.seton (3/22/2012)[/b][hr]I'm probably exposing my ignorance here but with a view on just one table is there any difference between having an index on the view and having an index on the relevant columns in the table the view looks at?[/quote]Yes.  An indexed view is materialised, in other words, stored separately from the base data.  If the view is not indexed then SQL Server still has to execute the view's SELECT statement in order to get the data.John</description><pubDate>Thu, 22 Mar 2012 07:39:59 GMT</pubDate><dc:creator>John Mitchell-245523</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>I'm probably exposing my ignorance here but with a view on just one table is there any difference between having an index on the view and having an index on the relevant columns in the table the view looks at?</description><pubDate>Thu, 22 Mar 2012 07:30:00 GMT</pubDate><dc:creator>marlon.seton</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Nice basic question and nice conversation...</description><pubDate>Wed, 21 Mar 2012 23:47:19 GMT</pubDate><dc:creator>Hardy21</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Irony overload.</description><pubDate>Wed, 21 Mar 2012 03:20:24 GMT</pubDate><dc:creator>Michael Lysons</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]L' Eomot Inversé (3/20/2012)[/b]But the question doesn't say "required to hold the create view statement ... It says "required for the the create view statement" [/quote]I've read this several times and am still struggling to see the difference :-)</description><pubDate>Wed, 21 Mar 2012 03:17:01 GMT</pubDate><dc:creator>Toreador</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]bitbucket-25253 (3/20/2012)[/b][hr]But alas and alack we do have those who love to criticize ....[/quote]I do not criticize questions just for the sake of criticizing them.Only when they are open to interpretation :-)[quote]except for the minimal space required for the CREATE VIEW statement[/quote]To me, this looks a lot like[quote]except for the minimal space required to store the CREATE VIEW statement[/quote]</description><pubDate>Tue, 20 Mar 2012 23:52:10 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]L' Eomot Inversé (3/20/2012)[/b][hr][quote][b]Gazareth (3/20/2012)[/b][hr][quote][b]sknox (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]None of those system catalog [b]views[/b] are indexed. Which means they aren't materialized. Which means data in them doesn't take up additional space.[/quote]Agreed. But I think the point is that more space is taken up somewhere, rather than just a copy of the create view statement, which the question implies is the only information about the view that's stored.[/quote]But the question doesn't say "required to hold the create view statement", so it doesn't seem to imply that a copy of the create statement is the only data stored. [b] It says "required for the the create view statement" which to me seems to mean required to hold all the metadata created by executing the create view statement[/b] - if the answer had claimed it meant anything else I would have regarded it as a (somewhat feeble and implausible) trick question.  So it seems to me to be a good cear question with a good clear answer.  Thanks for that, Ron (but I [i]hate[/i] your capital Ds for Does).[/quote]Making the key statement bold .. done by this poster.  Thanks, you have stated the facts as I meant them to be.  But alas and alack we do have those who love to criticize ....</description><pubDate>Tue, 20 Mar 2012 20:48:24 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>I knew about non indexed view, but I would have bet fifty box that an indexed view would not take space...Good thing you don't take bets :laugh:Thanks for the question, I learned again!</description><pubDate>Tue, 20 Mar 2012 19:50:42 GMT</pubDate><dc:creator>tilew-948340</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Gazareth (3/20/2012)[/b][hr][quote][b]sknox (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]None of those system catalog [b]views[/b] are indexed. Which means they aren't materialized. Which means data in them doesn't take up additional space.[/quote]Agreed. But I think the point is that more space is taken up somewhere, rather than just a copy of the create view statement, which the question implies is the only information about the view that's stored.[/quote]But the question doesn't say "required to hold the create view statement", so it doesn't seem to imply that a copy of the create statement is the only data stored.  It says "required for the the create view statement" which to me seems to mean required to hold all the metadata created by executing the create view statement - if the answer had claimed it meant anything else I would have regarded it as a (somewhat feeble and implausible) trick question.  So it seems to me to be a good cear question with a good clear answer.  Thanks for that, Ron (but I [i]hate[/i] your capital Ds for Does).</description><pubDate>Tue, 20 Mar 2012 16:53:39 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Great back-to-basics and straightforward question.Thank you.</description><pubDate>Tue, 20 Mar 2012 13:48:58 GMT</pubDate><dc:creator>codebyo</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Great question and thanks.</description><pubDate>Tue, 20 Mar 2012 13:22:45 GMT</pubDate><dc:creator>zymos</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Thanks for the question, Ron.As far as I understand every T-SQL statement takes up database space, even if minimal. I suppose Ron meant by "minimal space" the space it takes to store the view definition.From the reference article ([url]http://msdn.microsoft.com/en-us/library/dd171921(v=sql.100).aspx[/url]):"In the case of a nonindexed view, the portions of the view necessary to solve the query are materialized at run time. Any computations such as joins or aggregations are done during query execution for each query referencing the view [Note1] . After a unique clustered index is created on the view, the view's result set is materialized immediately and persisted in physical storage in the database, saving the overhead of performing this costly operation at execution time.[Note1] The view does not always need to be fully materialized. The query can contain additional predicates, joins, or aggregations that can be applied to the tables and views referenced in the view, which eliminates the need for full materialization."  This is where I got my conclussion and selected the right answers."El" Jerry.</description><pubDate>Tue, 20 Mar 2012 12:10:18 GMT</pubDate><dc:creator>EL Jerry</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]mtassin (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]Yah... I worried when I selected the "correct" answer that this would be used against me.I was glad that it wasn't but I suspected somebody would say something about it.some days when I answer these I'm convinced that no matter which answer I pick it will be wrong because it could be argued either way.[/quote]+1 I almost second guessed myself because technically everything created will take up some space.</description><pubDate>Tue, 20 Mar 2012 11:31:37 GMT</pubDate><dc:creator>KWymore</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]sknox (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]None of those system catalog [b]views[/b] are indexed. Which means they aren't materialized. Which means data in them doesn't take up additional space.[/quote]Agreed. But I think the point is that more space is taken up somewhere, rather than just a copy of the create view statement, which the question implies is the only information about the view that's stored.</description><pubDate>Tue, 20 Mar 2012 10:54:08 GMT</pubDate><dc:creator>Gazareth</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>tks for the questions - straight forward and to the point - cheers</description><pubDate>Tue, 20 Mar 2012 08:49:52 GMT</pubDate><dc:creator>OzYbOi d(-_-)b</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]None of those system catalog [b]views[/b] are indexed. Which means they aren't materialized. Which means data in them doesn't take up additional space.</description><pubDate>Tue, 20 Mar 2012 08:18:10 GMT</pubDate><dc:creator>sknox</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Great question Bit Bucket. Concise and to the point with a clear answer. :cool:</description><pubDate>Tue, 20 Mar 2012 07:53:49 GMT</pubDate><dc:creator>SanDroid</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Thanks Ron.</description><pubDate>Tue, 20 Mar 2012 07:45:44 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]dawryn (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]That is the space for the CREATE VIEW statement. That is stored in the sys.sql_modules catalog view. What I'm going after is that extra information is also stored in other catalog views. Not just the CREATE statement.[/quote]All mentioned is stored in system catalogs to make views operational and takes minimal space required after create view statement is executed. Catalog views are one form of means to [url=http://msdn.microsoft.com/en-us/library/ms189082.aspx]query data from system catalogs[/url].[/quote]I also agree. Can you CREATE anything without the extra [u]minimal[/u] space consumed by the metadata.</description><pubDate>Tue, 20 Mar 2012 07:03:51 GMT</pubDate><dc:creator>DBA_Dom</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b] in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]Yah... I worried when I selected the "correct" answer that this would be used against me.I was glad that it wasn't but I suspected somebody would say something about it.some days when I answer these I'm convinced that no matter which answer I pick it will be wrong because it could be argued either way.</description><pubDate>Tue, 20 Mar 2012 07:01:46 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Great easy question. I think I sat there with the answers already checked for a few minutes thinking to myself, "What's the catch?" and trying to figure out what it was, but there wasn't one. :-)</description><pubDate>Tue, 20 Mar 2012 06:52:28 GMT</pubDate><dc:creator>Dana Medley</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (3/20/2012)[/b][hr]It takes minimal space, but space is space. And it ain't only the CREATE VIEW statement...[/quote]I agree any metadata takes space, there is no question about it. Everything about database structure is stored in such form and it takes a lot less space than data and indexes.</description><pubDate>Tue, 20 Mar 2012 05:50:55 GMT</pubDate><dc:creator>dawryn</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]dawryn (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]That is the space for the CREATE VIEW statement. That is stored in the sys.sql_modules catalog view. What I'm going after is that extra information is also stored in other catalog views. Not just the CREATE statement.[/quote]All mentioned is stored in system catalogs to make views operational and takes minimal space required after create view statement is executed. Catalog views are one form of means to [url=http://msdn.microsoft.com/en-us/library/ms189082.aspx]query data from system catalogs[/url].[/quote]It takes minimal space, but space is space. And it ain't only the CREATE VIEW statement...</description><pubDate>Tue, 20 Mar 2012 05:43:14 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (3/20/2012)[/b][hr]That is the space for the CREATE VIEW statement. That is stored in the sys.sql_modules catalog view. What I'm going after is that extra information is also stored in other catalog views. Not just the CREATE statement.[/quote]All mentioned is stored in system catalogs to make views operational and takes minimal space required after create view statement is executed. Catalog views are one form of means to [url=http://msdn.microsoft.com/en-us/library/ms189082.aspx]query data from system catalogs[/url].</description><pubDate>Tue, 20 Mar 2012 05:39:59 GMT</pubDate><dc:creator>dawryn</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Thanks for the nice easy question. Had to think about the objects held in the system views, but figured that wasn't what you were testing and where trying to cover with the "space used for the Create Statement" - since you can't create it without populating all the system views!</description><pubDate>Tue, 20 Mar 2012 05:00:39 GMT</pubDate><dc:creator>Michael Riemer</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (3/20/2012)[/b]That is the space for the CREATE VIEW statement. That is stored in the sys.sql_modules catalog view. What I'm going after is that extra information is also stored in other catalog views. Not just the CREATE statement.[/quote]+1I chose the same "wrong" answer for the same reason. The question was explicit in excluding the CREATE, so it's a fair assumption that the other system tables are not excluded (or it should have said 'minimal space required for the system tables').</description><pubDate>Tue, 20 Mar 2012 03:31:44 GMT</pubDate><dc:creator>Toreador</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Good back-to-basics question, thanks Ron</description><pubDate>Tue, 20 Mar 2012 03:24:02 GMT</pubDate><dc:creator>Stewart "Arturius" Campbell</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>Nice question, got it right without having to look anything up.  I must be slowly learning something.</description><pubDate>Tue, 20 Mar 2012 03:17:01 GMT</pubDate><dc:creator>skanker</dc:creator></item><item><title>RE: VIEWS 3</title><link>http://www.sqlservercentral.com/Forums/Topic1269316-1222-1.aspx</link><description>[quote][b]dawryn (3/20/2012)[/b][hr][quote][b]Koen Verbeeck (3/20/2012)[/b][hr]According to [url=http://msdn.microsoft.com/en-us/library/ms187956.aspx]CREATE VIEW (Transact-SQL)[/url]:[quote]When a view is created, [b]information about the view is stored[/b]in the following catalog views: sys.views, sys.columns, and sys.sql_expression_dependencies.[/quote]Information that is stored in system tables also consumes space...[/quote]Of course it does. You explained :w00t:[quote]…[b]minimal space required[/b] for the CREATE VIEW statement…[/quote][/quote]That is the space for the CREATE VIEW statement. That is stored in the sys.sql_modules catalog view. What I'm going after is that extra information is also stored in other catalog views. Not just the CREATE statement.</description><pubDate>Tue, 20 Mar 2012 02:54:43 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item></channel></rss>