Browse by Tags

Related Posts

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

    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...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 10-28-2006, 12:00 AM
    Filed under: Tips / Tricks, SQL, SQL Server
  • Showing a Connection String prompt in a WinForm application

    When I was putting together the Data Dictionary Creator program, I needed to allow users to input a connection string. A lot of winform applications that require data connections give you a textbox and tell you to figure it out yourself, but I really wanted to show a prompt that let you test your connections...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 10-29-2006, 12:00 AM
    Filed under: Tips / Tricks, SQL, .NET code, .NET, SQL Server
  • Handling "GO" Separators in SQL Scripts - the easy way

    If you've ever had to execute one or more SQL scripts from ADO.NET, you've likely run into the GO batch terminator issue. Any SQL script that does anything worthwhile has more than one batch, separated by a GO terminator. The problem is that "GO" isn't valid T-SQL, it's just...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 11-07-2006, 12:00 AM
    Filed under: Tips / Tricks, SQL, .NET code, .NET, SQL Server
  • Reporting Services - Add a logo to the Report Manager

    The SQL Server Reporting Services Report Manager is functional, but it's not very customizable. The ASPX pages just reference compiled assemblies, so the only real way to modify them is via CSS. What makes that more difficult is that the SSRS HTML is poorly constructed so that the tags you'd most want...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 12-12-2006, 12:00 AM
    Filed under: Tips / Tricks, SQL Server, Browsers / Web Development
  • [tip] Use the Database Publishing Wizard to script your table data

    Jeff Atwood recently asked " Is your database under version control? " Well, is it? It's not as easy as it sounds. Until now, there wasn't a good, scriptable solution to the problem. I'll run through a few of the options I've looked at in the past, but let's jump to to the punchline: The Database Publishing...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 12-29-2006, 12:00 AM
    Filed under: Tools, Tips / Tricks, SQL, SQL Server
  • [SQL] Force the protocol (TCP, Named Pipes, etc.) in your connection string

    Barry Dorrans recently mentioned that you can force the database connection protocol by specifying np: or tcp: before the server name in your connection string . I've jumped through some hoops before using localhost to target tcp and (local) to target named pipes, but it looks like there's a much better...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 02-24-2007, 12:00 AM
    Filed under: Tips / Tricks, SQL, SQL Server
  • [SQL] Force the protocol (TCP, Named Pipes, etc.) in your connection string

    Barry Dorrans recently mentioned that you can force the database connection protocol by specifying np: or tcp: before the server name in your connection string . I've jumped through some hoops before using localhost to target tcp and (local) to target named pipes, but it looks like there's a much better...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 02-24-2007, 12:00 AM
    Filed under: SQL, SQL Server, Tips / Tricks
  • [tip] Use the Database Publishing Wizard to script your table data

    Jeff Atwood recently asked " Is your database under version control? " Well, is it? It's not as easy as it sounds. Until now, there wasn't a good, scriptable solution to the problem. I'll run through a few of the options I've looked at in the past, but let's jump to to the punchline: The Database Publishing...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 12-29-2006, 12:00 AM
    Filed under: Tools, Tips / Tricks, SQL, SQL Server
  • Reporting Services - Add a logo to the Report Manager

    The SQL Server Reporting Services Report Manager is functional, but it's not very customizable. The ASPX pages just reference compiled assemblies, so the only real way to modify them is via CSS. What makes that more difficult is that the SSRS HTML is poorly constructed so that the tags you'd most want...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 12-12-2006, 12:00 AM
    Filed under: Tips / Tricks, Browsers / Web Development, SQL Server
  • Handling "GO" Separators in SQL Scripts - the easy way

    If you've ever had to execute one or more SQL scripts from ADO.NET, you've likely run into the GO batch terminator issue. Any SQL script that does anything worthwhile has more than one batch, separated by a GO terminator. The problem is that "GO" isn't valid T-SQL, it's just...
    Posted to Jon Galloway (Weblog) by Jon Galloway on 11-07-2006, 12:00 AM
    Filed under: Tips / Tricks, SQL, .NET code, .NET, SQL Server
Page 1 of 2 (12 items) 1 2 Next >