Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

An Example of Test-Driven Development, Part 3 Expand / Collapse
Author
Message
Posted Sunday, July 12, 2009 10:50 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 1:39 PM
Points: 388, Visits: 1,034
Comments posted to this topic are about the item An Example of Test-Driven Development, Part 3

Andy Leonard
CSO, Linchpin People
Follow me on Twitter: @AndyLeonard
Post #751733
Posted Monday, July 13, 2009 2:17 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 11:42 AM
Points: 2,865, Visits: 1,705
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
Newbie on www.simple-talk.com
Post #751850
Posted Monday, July 13, 2009 9:20 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 04, 2014 5:19 PM
Points: 265, Visits: 2,538
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.
Post #752131
Posted Friday, July 24, 2009 3:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #758894
Posted Friday, July 24, 2009 6:03 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 1:39 PM
Points: 388, Visits: 1,034
Thanks Hemal!

I completely forgot to include that in the article.

:{> Andy


Andy Leonard
CSO, Linchpin People
Follow me on Twitter: @AndyLeonard
Post #758963
Posted Friday, November 26, 2010 2:32 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, March 17, 2014 3:24 PM
Points: 60, Visits: 173
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?
Post #1026889
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse