Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com
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 on Wednesday, January 14, 2009 8:59 AM Workflow , General Tips | Back to top


Comments on this post: Developers should avoid smart-quotes in Word

# re: Developers should avoid smart-quotes in Word
Requesting Gravatar...
You were using Word for code?
Left by Jonathan on Mar 24, 2009 1:15 PM

# re: Developers should avoid smart-quotes in Word
Requesting Gravatar...
Jonathan,
MS Word was used to document steps, rather than create batch file to run steps.
Left by Michael Freidgeim on Mar 25, 2009 1:17 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net