Developers should avoid smart-quotes in Word

We had a Word document, describing steps, based on MSDN instructions Use the Windows Workflow Tracking Service
 
I desided to create batch file createWorkflowTrackingDB.bat to create Database:

@echo Change name of Database server if required
@echo press control-Z to stop batch
@pause
sqlcmd -S localhost -E -Q "create database WorkflowTracking"
c:
cd "C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN"
sqlcmd -S localhost -E -d WorkflowTracking -i Tracking_Schema.sql
sqlcmd -S localhost -E -d WorkflowTracking -i Tracking_Logic.sql
@echo Ensure that application account has tracking_reader and tracking_writer roles

 
But it was failing on the line
     sqlcmd -S localhost -E -Q "create database WorkflowTracking".
It took me a while to recognize, that MS Word replaced double-quotes with smart-quotes , and sqlcmd didn't like it.

posted @ Wednesday, January 14, 2009 8:59 AM

Print

Comments on this entry:

# re: Developers should avoid smart-quotes in Word

Left by Jonathan at 3/24/2009 1:15 PM
Gravatar
You were using Word for code?

# re: Developers should avoid smart-quotes in Word

Left by Michael Freidgeim at 3/25/2009 1:17 AM
Gravatar
Jonathan,
MS Word was used to document steps, rather than create batch file to run steps.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345