[dba-SQLServer] SP works sometimes

Doris Manning mikedorism at verizon.net
Mon Oct 23 17:21:39 CDT 2006


Your problems lie in your mixing of single quotes (') and double quotes (").
You don't use double quotes (") in T-SQL statements.  Dates in SQL are
surrounded in single quotes (').  

I've also found it helpful to preface all strings with the N designator to
be sure they are interpreted properly.

Doris Manning





More information about the dba-SQLServer mailing list