Christian Kleinerman: SQL Server 2008 for Developers
- Posted: Feb 29, 2008 at 9:50 AM
- 28,056 Views
- 15 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Looks like there is some interesting stuff in this release.
i am certainly interested in the hierarchical and geo-spatial features.
Is intellisense target for the sql tool or for within vs as well?
Cool, laptop, i love mine, however the tiny screen is extremely hard to see on the video most of the time.
I really like this style of video, i hope to see more, there seemed to be a lot more of this style "back in the day" - i would certainly appreciate a return to this.... personality and code in a fly-by-night kind of way, to me that is awesome, learn a little about ms and some new stuff.
Hey guys
You can get the transcript of this SQL Server 2008 video from this blog post. At first glance, it all looks a bit like junk, but please read the instructions on the right hand side to use it. I have created an app which can play screen capture videos with their transcripts (sort of a manual-hack combo at this point).
And I welcome any feedback about my app!
The row_id I think it is called that was added in sql server 2005 really made my paging code cleaner.
It would be REAL nice if you can add something to help with sorting. I haven't tried in awhile the different options, but having multiple sort options in sql server using a stored procedure would be a good feature. I tried in the past to do an ORDER BY @SORTCOLUMN type of method, and also multiple IF statements with duplicate sql statements isn't ideal either. The only other option using sql server is to have multiple stored procedures and in your .net code putting the IF statement.
Also, is microsoft sql server ever going to have something like oracle's rac for load balanced sql servers? I know MSFT prefers the scale out approach, and a rac type approach is technically different and ripe with problems, but just curious.
(One last thing, I found a bug in sql server 2k related to when you have two columns with certain types right next to each other. It was really weird and was relating to data storage. I tried several testing options, and the bottom line is when I changed the column order, the data came back correctly. I tried posting awhile ago on C9 and sending msft an e-mail, but they wanted me to snail mail it in. If you want me to send you the script with the table def and data let me know. I think I might have it.)
I mean the idea of a dedicated type to store node's materialized path seems sound (though nothing prevents one from using varchar for the same purposes).
But the implementation is weak at best.
In fact, as soon as you try to write anything with more than a single user modifying hierarchyID columns you quickly realize that all concurrency control is your personal responsibility.
Without proper locking of ancestry nodes hierarchyID is a recipe for disaster. And built-in hierarchyID methods are in essence just substring equivalents.
Ironically, there is nothing in SQL Server to manage concurrency explicitly, which in this case means ability to place explicit row locks in a non-blocking manner.
Ideally, it should be possible to place shared read or exclusive locks on rows using T-SQL. For starter only exclusive locking would suffice (though it has some serious performance implications). But they did provide even that.
IMO this feature should have not been included at all. People will try to use it in real life and get burned. Microsoft should have added means to ensure proper use of hierarchyID first and produced clear guidelines on how to do that.
Re: table types in T-SQL, compare this to complex type support in Oracle PL/SQL. T-SQL is still 10 years away from where PL/SQL was 10 years ago.
Well, this looks really interesting, I hope I'll finish my C# 3.0 book soon (reading, not writing
) and search for one about MS SQL 2008 
I have been wanting linq "inside" sql for some time. Not sure why they keep ignoring this. Your clr procs would then be a great place for BL and we could stay in .net.
Thanks for the vid.
OT. Why does silverlight only have two size options for videos - small and full-screen? Sometime neither is the right viewing size. It also does not show detail (right-click) info of the video encoding like MP does.
Use the MP3 link.
Thanks,
-Scott
Hi everyone
Thanks for all the feedback... I'll address some of the questions:
· Intellisense: it’s currently targeted for SQL Management Studio… over time this should reach VS.
· Dynamic sorting: I don’t like recommending dynamic SQL but that is one option… Assuming your stored proc has a single SELECT statement, another alternative (slightly less encapsulated) would be to use a table-valued function instead of a stored proc and specify the ORDER BY from your middle tier code. In SQL Server 2008 we also added an ORDER clause to SQL/CLR functions inside the engine to have the optimizer eliminate unnecessary sorts if the function is producing a well known sort order.
· Hierarchy management: it is true that we didn’t implement the highest possible level of abstraction, but an intermediate lower level building block. There were reasons to do so, mostly around flexibility of the solutions you can build and keeping the type closer to other types rather than to higher level constructs that automatically impose constraints and concurrency semantics on tables. However, we’ve included in Books Online the common patterns to make it easy… feedback welcome on missing patterns.
· LINQ: no for support for table-valued parameters… and in SQL 2008 we enabled XLinq inside the engine. We will enable other stacks in future releases… feedback on scenarios and priorities most welcome.
· ANSI ISO SQL standard: since SQL 99 achieving the core package has been a huge collection of features and it removed the levels of compliance like SQL 92 did… We have a large subset of the core standard all the way to SQL 2006 and as we continue to add capabilities, we always look at the standard to make sure that where applicable, we’re following the standard.
· Spatial: we support 2.5D, carrying around elevation values. We’re considering 3D for a future release.
For other feedback (or for the bug report mentioned) either use connect.microsoft.com or send me mail… Christian.Kleinerman@microsoft.com.
Thanks for all the feedback and keep it coming!
- Christian
Remove this comment
Remove this thread
close