| By Steven Mandel | Article Rating: |
|
| February 14, 2008 11:15 AM EST | Reads: |
6,214 |
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,214
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
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- Confessions of a Ulitzer Addict
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- It's the Java vs. C++ Shootout Revisited!
- Cloud Computing Can Revitalize Your Career as Software Developer
- IBM Could "Reinvent" Java: Mills
- Oracle & Cloud Computing: Exclusive Q&A with SVP Richard Sarwal
- A Brief History of Cloud Computing
- Kindle 2 vs Nook
- Cloud CEOs, CTOs & SVPs to Speak at 4th International Cloud Computing Expo
- Why IBM’s Server Chief Got Busted
- Is Cloud Computing Like Teenage Sex?
- Industry Experts Discuss the State of Cloud Computing
- Performance Tuning Essentials for Java
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- The i-Technology Right Stuff
- JavaServer Faces (JSF) vs Struts
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- What's New in Eclipse?
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- i-Technology Predictions for 2007: Where's It All Headed?









































