SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How To Avoid Msg 106


How To Avoid Msg 106

Author
Message
henrik staun poulsen
henrik staun poulsen
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2577 Visits: 1226
Dear all,

First of all, thank you for the nice words. Writing up the article was a lot more work than I anticipated, but also a lot easier than I feared. My english teacher would have been surprised, but proud. Steve was really helpfull here.

Phil; yes, we tried nested views. But as __Celko__ found out (after a "few" mails), views are no more than "macros", that are resolved into base tables at compile time.
Yes, our solution do read the catalogue to get the list of tables needed. But it is some of our own tables that we read, so it did not make sense to show that.

andreq1, michaelwang; yes, that is one of the solutions that Erland Sommarskog lists, on one of his pages; http://www.sommarskog.se/dynamic_sql.html#Sales_yymm. If you have not read, printed and rehearsed his entire homepage, I think you should. Here it is mandatory reading.

Andrew; to have such a client is not a disaster, it is work. Albeit lots of it. ;-) This client is friendly and is focused on obtaining the best solutions, so I’m sure we will end up with something near perfect at some point. But not without loosing the main focus; providing value for the (end) customer.

Best regards,

Henrik



henrik staun poulsen
henrik staun poulsen
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2577 Visits: 1226
Dear all,

According to j.summers in http://www.sqlservercentral.com/Forums/Topic618362-32-1.aspx#bm841385
Books OnLine for 2008:
Tables per SELECT statement : Limited only by available resources

More details on "Maximum Capacity Specifications for SQL Server" can be found here:
http://msdn.microsoft.com/en-us/library/ms143432.aspx

So now we could skip the UDF solution, and use nested views instead.

Nice to know we have more options now.

Best regards,
Henrik



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search