Chris Eargle

Life Student of the Kodefu Arts

Moving Parts and Timeouts

by chris 15. June 2008 16:41

Last week I was tasked with changing our build script from using sql scripts to build the database, to running sql scripts to backup and restore a "gold standard" database. Aside from a few permission issues, things went mostly well. However, in the process I updated MSBuild Community Tasks to the nightly build version. I had an error I thought it might help with, but it turned out not to be the case. I kept the unreleased version in production because it generated clearer messages in the ExecuteDDL task. For those of you that don't know, version 1.2.0.306 gives truly awful information in the event a sql script fails.

Fast forward to tonight. I had to roll out a demonstration version of the software from the previous iteration. This meant changing views in the source control system so it would execute the previous versions scripts. When I ran it, received this error (traceable info changed): C:\MyData\Project\base\src\Project.proj (1550,3):  error : ProjectCDDB: Error # -2 on Line 0: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

I used the ultracool "MSBuild Output" report to get color coding so I could easily trace down which file was causing the error. I then looked at it's size. Sure enough, it was a beast. But it used to run, and it worked when I manually executed it, so what was different? MSBuild Community Tasks, of course.

I pulled down the latest source and opened up ExecuteDDL. Sure enough, there was a new property in the class... StatementTimeout, defaulted to 30 seconds. That's probably not the best timeout for a sql script that exceeds 5 megabytes.

I changed the timeout to 120 seconds; yet another problem solved. I suppose this sort of thing is bound to happen when you're changing version of libraries and then forced to use chronomancy to pretend it's a month in the past.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

msbuild

Kodefu

E-mail | Kick it! | DZone it! | del.icio.us
Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Missed Airplanes and AutomobilesWhy you're supposed to arrive at an airport an hour before your flight.Visual Studio 2008 and .NET Framework 3.5 Training KitVisual Studio 2008 and .NET Framework 3.5 Training KitWCF 3.5 Security GuidelinesThe patterns & practices WCF Security Guidance project has released the the WCF 3.5 Security Guideli...
Saving the comment

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

August 19. 2008 12:25

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen

About the author

Chris Eargle Chris Eargle
Enterprise .NET developer in Columbia, SC.

E-mail me Send mail

Calendar

<<  August 2008  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Pages

    Recent posts

    • Create Vista Icons in VS 2008Comments: 0Rating: 0 / 0
    • String to StreamComments: 0Rating: 0 / 0
    • Hung Database RestoreComments: 0Rating: 0 / 0
    • MSI Compilation ErrorComments: 0Rating: 0 / 0
    • Moving Parts and TimeoutsComments: 0Rating: 0 / 0
    • C# 3.0 PresentationComments: 1Rating: 0 / 0
    • Augusta Meeting TonightComments: 0Rating: 5 / 3
    • WCF 3.5 Security GuidelinesComments: 0Rating: 0 / 0
    • .NET 3.5 Enhancements Training KitComments: 0Rating: 0 / 0
    • Sessions GaloreComments: 1Rating: 0 / 0

    Recent comments

    • C# 3.0 Presentation (1)
      vijay wrote: Good post Thanks, Vijay [More]
    • Format Solution (4)
      Joe wrote: I added a couple of lines to FormatProjectItem() t… [More]
    • Sessions Galore (1)
      Lou wrote: I'll have to get you down here soon - I'll e-mail … [More]
    • Redeemed (3)
      Fred Beiderbecke wrote: It wasn't you, it was some of the others in the ro… [More]
    • South Florida Code Camp (1)
      Jason Meridth wrote: You've mentioned the only latest difference betwee… [More]
    • Redeemed (3)
      Chris Eargle wrote: Hmm, the only thing derisive I remember saying abo… [More]
    • Redeemed (3)
      Fred Beiderbecke wrote: I was in the afternoon session and enjoyed it (exc… [More]
    • Format Solution (4)
      Tony Evans wrote: Just what I was looking for. Thanks! :o) [More]
    • XML Nugget of Joy (2)
      Chris Eargle wrote: How do you retrieve the description, and in what c… [More]
    • XML Nugget of Joy (2)
      Wesley Wilson wrote: That's pretty neat. I've just started using attrib… [More]

    Archive

    • 2008
      • August (3)
      • July (1)
      • June (1)
      • April (4)
      • March (1)
      • February (4)
      • January (5)
    • 2007
      • December (5)
      • November (1)
      • October (6)
      • September (3)
      • August (1)
      • June (1)

    Authors

    • RSS feed for chrischris (36)

    Tags

    • activex
    • addin
    • ado.net data services
    • ajax
    • architecture
    • astoria
    • beta
    • c#
    • code camp
    • com
    • consolas
    • continuous integration
    • ctp
    • database
    • deployment
    • design
    • download
    • ebook
    • entity
    • expression blend
    • font
    • framework
    • gadget
    • grid
    • guidelines
    • icon
    • lamdba
    • linq
    • macro
    • msbuild
    • msi
    • mvc
    • powertoy
    • preview
    • ray ozzie
    • regasm
    • security
    • serialization
    • silverlight
    • source code
    • sql server
    • starter kit
    • stream
    • string
    • trial
    • usability
    • ux
    • vbscript
    • vista
    • visual studio
    • vs2008
    • wcf
    • web
    • winforms
    • wpf
    • xml

    Categories

    • RSS feed for Bleeding EdgeBleeding Edge (3)
    • RSS feed for GeneralGeneral (1)
    • RSS feed for KodefuKodefu (8)
    • RSS feed for Path NotesPath Notes (6)
    • RSS feed for PresentationPresentation (2)
    • RSS feed for TechniquesTechniques (2)
    • RSS feed for TrainingTraining (5)
    • RSS feed for WeaponsWeapons (4)
    • RSS feed for ZenZen (4)

    Archive

    Blogroll

    • RSS feed for Structure Too BigStructure Too Big
      • MSDN Event Thursday in...
      • WorldMaps Update
      • ASP.NET University!
    • RSS feed for Chris CraftChris Craft
      • Pimp My Phone – D...
      • Pimp My Phone – D...
      • Pimp My Phone – D...
    Download OPML file OPML

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in