ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
Connections, Commands, And Procedures
What is ASP?
VBScript Classes: Part 1 of N

IIS and complex polygons
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

Single Quotes Work Fine With ADO

In our last tip we discussed one of the limitations of using the single quote (') character in your SQL strings. While doubling up the character has become the norm for a lot of programmers, there are times when it's not neccessary and will cause improper text to be inserted into your database.

When using the native ADO methods for dealing with your recordsets there is no need to double up your single quote characters. For instance, this code is perfectly valid and won't cause any quote related problems when executed:

rst.Fields("quote").Value = "Here's a sample."

While this should by no means be a reason to change the way you access your database, it is something that needs to be kept in mind. Twice as many quotes isn't always a good thing!

Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers