Q&A

Q1: Where can I learn more about writing SQL queries?
A1: A great book for learning SQL syntax is Sams Teach Yourself SQL in 10 Minutes Second Edition. This book focuses on the queries themselves and avoids delving deep into database theory and database design. If you are interested in database theory as well, Sams Teach Yourself Microsoft SQL Server 2000 in 21 Days might be more appropriate for you.
Q2:If strings are delimited by the ' (single quote) character in SQL, how do you enter the single quote character into a database field programmatically?
A2: This is referred to as “escaping” the special character. Simply enter two single quotes instead of one. For instance, SQL Server will recognize the text “it''s” as “it's”.

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.