|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 2:53 PM
Points: 375,
Visits: 947
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 8:46 AM
Points: 2,750,
Visits: 1,410
|
|
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.
LinkedIn Profile
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 3:08 PM
Points: 255,
Visits: 2,407
|
|
| 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.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, September 02, 2009 1:24 AM
Points: 2,
Visits: 16
|
|
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
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 2:53 PM
Points: 375,
Visits: 947
|
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Thursday, April 18, 2013 2:24 PM
Points: 59,
Visits: 161
|
|
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?
|
|
|
|