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.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
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:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910