Reading the SQL 2005 instance and installation directory from a DOS batch file

Posted by: JonGalloway.ToString(), on 29 Oct 2006 | View original | Bookmarked: 0 time(s)

SQL 2005 installs each instance to a numbered directory based on the order installed: MSSQL.1, MSSQL.2, etc. That makes scripting a little tricky. Fortunately, you can find them in the registry. The install path for the SQL 2005 database server is here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\SQL2005\Setup\SQLPath You can look up specific instances in the the Instance Names registry node. For instance, to find the SQL2005 instance, you'd look at this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1295 | Hits: 33

Similar Posts

  • Creating a folder inside the ZIP file with System.IO.Packaging more
  • Linq-a-fi your file system by creating your own DSL more
  • Bundle SQL script with build process using MSBuild more
  • Very Simple .NET Thumbnail Creation Code more
  • SQL Server Compact Edition 3.5 more
  • FileSystemWatcher Events and incomplete file errors more
  • Uploading a file to HealthVault more
  • Team Foundation Server and the missing file sharing (Part 2) more
  • Finding the latest written document in a directory more
  • How to debug a stored procedure in your Sql Server 2005 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD