Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
  Tip: Use proper data delimiters for different databases  
 
 

In SQL statements, all databases use quotes to delimit strings but different databases use different delimiters for dates. This is one of the most common problems when trying to port database code from Access to SQL Server or vice versa but at least it's easy to fix once you understand what the problem is.

  • SQL Server uses quotes (') as in '4/1/2010'
  • Access (Jet) uses number signs (#) as in #4/1/2010#

 

Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated