July 12, 2009 at 10:50 am
Comments posted to this topic are about the item An Example of Test-Driven Development, Part 3
Andy Leonard, Chief Data Engineer, Enterprise Data & Analytics
July 13, 2009 at 2:17 am
When I'm running scripts like this I make sure that the failure notices print ****FAILURE as this standard out like a sore thumb when the output is echoed to a file.
The other thing to consider is whether a RAISERROR would be a good idea because if you run it using SQLCMD.EXE then this allows the windows command file to make use of %ERRORLEVEL%.
It depends on what you want to do. In some cases I want the script to work through reporting all errors. In others I want the process to terminate at the first sign of an error.
July 13, 2009 at 9:20 am
What I liked about this article was the trick for search and replace using the IDE. The way I do it could not be used by most people, and I couldn't figure out how everyone else does it. Until now, I figured that most people probably just don't bother to clean up names. Now I see that other people have a way to do it. Thanks for showing that.
July 24, 2009 at 3:08 am
Hi Andy,
Interesting read! One this I would like to inform you that when pushing the results to text through your AutoGen scripts the generated scripts were getting truncated to 256 chars. For those ignorant of this limitation including me 🙂 this can be rectified by going to Tools --> options --> Query Results --> SQL Server --> Results to text and setting "Maximum number of characters displayed in each column" to something higher like 1000.
I hope my 2 cents worth would help someone.
Keep up the good work.
Cheers,
Hemal
July 24, 2009 at 6:03 am
Thanks Hemal!
I completely forgot to include that in the article.
:{> Andy
Andy Leonard, Chief Data Engineer, Enterprise Data & Analytics
November 26, 2010 at 2:32 pm
Good article. I've learned a lot of useful tricks in this series.
One question: You said, "– download the updated project using the link at the end of this article.".
Where exactly is this link?:ermm:
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply