| By Steven Mandel | Article Rating: |
|
| February 14, 2008 11:15 AM EST | Reads: |
6,203 |
I do have some minor gripes with the book though. First, it continues to show examples of the between function with regard to dates and implies that a statement like
WHERE OrderDate BETWEEN '11/1/2007' AND '11/30/2007'
will give you all the orders placed in November 2007. This isn't true unless your time is set to 00:00:00 since there's no separate date variable, only a datetime variable. The correct syntax should be something like
WHERE OrderDate BETWEEN '11/1/2007' AND '11/30/2007 23:59:997'
or
WHERE OrderDate >= '11/1/2007' AND OrderDate < '12/1/2007 00:00:000'
My other gripe is in the chapter on CLR Stored Procedure development. The authors have no discussion of the use of "context connection" when running T-SQL stored procedures. The context connection lets you execute Transact-SQL statements in the same context that your code was invoked in the first place. Using a "Context Connection" connection string tells the SqlConnection object to connect to the existing context inside SQL Server. Since this code will run inside a stored procedure inside SQL Server we don't need to "relogin." To obtain the context connection, you must use the "context connection" connection string keyword, as in the example below:
Using connection as new SqlConnection("context connection=true")
connection.Open() ' Use the connection
End Using
In conclusion, if you're new to SQL Server 2005 then this book will make a valuable addition to your collection. If you have worked with SQL Server 2000 in the past, you still might want to have one or two copies around at the office for reference.
• Murach's SQL Server 2005 for Developers
• Authors: Bryan Syverson, Joel Murach
• Publisher: Murach, Mike & Associates, Inc.
• Pub. Date: December 2006
• ISBN-13: 9781890774394
• Pages: 702
• Level: Beginner-Intermediate
• Languages: T-SQL , VB.NET
• Software: All Versions of SQL Server 2005
Published February 14, 2008 Reads 6,203
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Steven Mandel
Steven Mandel has worked in the IT industry for over 15 years designing databases using Microsoft Access and SQL Server. He has developed Web and Windows applications using VB.NET and has written numerous articles and reviews about ASP.NET and VB.NET.
- Kindle 2 vs Nook
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Infrastructure-as-a-Service Will Mature in 2010: Microsoft's David Chou
- Windows 7 – Microsoft’s First Step to the Cloud
- Cloud Expo and the End of Tech Recession
- Jill Tummler Singer, Deputy CIO of CIA, Keynotes at GovIT Expo
- Reality Check at the Cloud Computing Expo
- Visual Studio 2010 Is Cloud Friendly
- Fired SCO CEO Fires Back
- Kindle 2 vs Nook
- The Difference Between Web Hosting and Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- Wave on Ulitzer: Confessions of a Google Wave Fanboy
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Cloud Computing Best Practices
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Infrastructure-as-a-Service Will Mature in 2010: Microsoft's David Chou
- Eval JavaScript in a Global Context
- Windows 7 – Microsoft’s First Step to the Cloud
- Google Maps and ASP.NET
- Crystal Reports XI & How It Has Changed
- Converting VB6 to VB.NET, Part I
- Creating Controls for.NET Compact Framework in Visual Studio 2005
- Where Are RIA Technologies Headed in 2008?
- How to Write High-Performance C# Code
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Implementing Tab Navigation with ASP.NET 2.0
- i-Technology Photo Exclusive: Bill Gates & Steve Jobs In "Nerds"
- .NET Archives: Getting Reacquainted with the Father of C#
- i-Technology Viewpoint: "SOA Sucks"
- Programmatically Posting Data to ASP .NET Web Applications




























