Got more questions? Find advice on: ASP | XML | Regular Expressions | Windows
in Search
Welcome to SqlAdvice Sign in | Join | Help

Browse by Tags

All Tags » Sql Server
Showing page 1 of 2 (17 total posts)
  • Increase Animation Speed in SQL Server Management Studio

    I set all my tool bars to be fly outs and it is fairly annoying how slow the animation is.  I found this link and decided to try it out and it works great!  http://blogs.msdn.com/euanga/archive/2007/10/01/ssms-window-animation-speed.aspx I would be interested in knowing other configuration settings you can change in that file as ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on November 16, 2007
  • Change Login's Default Database in SQL Server

    If you have ever dropped a database and found yourself not able to login because your default database no longer exists you know it can be quite annoying.  You can still connect through query analyzer by connecting to a different database, but you won't be able to do anything through the object explorer as it always defaults to your default ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on October 16, 2007
  • Retrieve Index Details and Columns in Sql Server 2005

    I frequently need to look at what indexes are on a table and I am really not a fan of using object explorer in SSMS as I like to stay in the query window.  Typically if I want information about a table I simply highlight the table name in the query window and hit Alt-F1.  If you aren't familiar with keyboard shortcuts in SSMS see my post ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on October 10, 2007
  • Enable XP_CMDSHELL in SQL Server 2005

    I needed to use xp_cmdshell recently and discovered that it isn't on by default on SQL Server 2005.  I had to dig a bit to find out how to enable it.  The code is very simple.  Figured I would blog it here so I can easily find it next time.   EXECUTE sp_configure 'show advanced options', 1 RECONFIGURE WITH ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on September 27, 2007
  • Retrieve File Contents using SQL Server 2005 SQL CLR

    I recently had a need to load a bunch of pdf files into my database.  The problem was that the directory the files were in contained a bunch of other pdf files that I didn't want or that were no longer needed so I couldn't just upload every PDF in the directory.  I did have a database table that contained all the file names ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on September 6, 2007
  • Move TempDB Sql Server 2005

    I recently needed to move the TempDB on my Sql Server so I looked in Books Online and my initial thought based on what it said was that there is no way that will work.  Basically it says to find where the files are, and then move them to the new location followed by an alter statement to point the database at the new location.  Well of ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on August 20, 2007
  • SQL Server 2005 Templates

    I have found the SQL Server 2005 templates to be extremely useful.  I have created custom templates for creating a new stored procedure, scalar functions, table-value functions and views.  The benefit of these is that it creates a standard for creating these SQL objects.  In my templates I have also included hooks to source ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on July 26, 2007
  • Sql Templates for New Procs, Functions Views

    These templates are for creating stored procedures, functions, and views.  See the readme in the zip file for instructions on using them or go to http://sqladvice.com/blogs/gstark/ for more details.
    Posted to SqlTemplates (FileGallery) by gstark on July 25, 2007
  • Sql Server Cursor Template

    This is a template that I have been using in SQL server for when I do have to write cursors.  Notice that there is only one fetch statement in there which is much slicker than the typical method of initially doing a fetch, with a while condition of while (@@fetch_status <> 0) and then another fetch in the while loop.  This ...
    Posted to Gregg Stark on SQL Server (Weblog) by gstark on July 18, 2007
  • A better, more manageable DataReader

    I had mentioned to the North Dallas DNUG when I presented a while back that I didn't like the idea of passing back a DataReader at all from a DAL.  You lose control of what happens to it when you do (as in the DAL no longer has the responsibility of closing the reader and ensuring its disposal).  Well, Teemu Kieski had a great idea ...
    Posted to The Penton-izer (Weblog) by dpenton on September 20, 2004
1 2 Next >