Posts tagged "SQL Server"
SQL Saturday 97 Slides and Code - EXCEPT, INTERSECT, APPLY

SQL Saturday 97 Slides and Code – EXCEPT, INTERSECT, APPLY

Download my slides and source code from my SQL Saturday 97 presentation.
Incorrect Syntax Near go revisited

Incorrect Syntax Near go revisited

Incorrect Syntax near go. We've all gotten this error before, but why does this happen? Watch a video explaining why you cannot use GO inside of sp_executesql
Find your SQL Server Profiler Template Path

Find your SQL Server Profiler Template Path

Learn where SQL Server Profiler saves your Templates.
Display a Page Count in SSRS

Display a Page Count in SSRS

Learn how to add a date printed and a page count in the footer of your SSRS report. Even if you have errors with Globals!OverallTotalPages.
Display results Horizontally in SQL Server

Display results Horizontally in SQL Server

Learn how to use SQL Server's CTEs to display results in a horizontal format instead of the standard vertical format.
Find numbers within a string in Excel

Find numbers within a string in Excel

Learn how to use excel to extract numbers from strings.
Working with Seconds in Excel

Working with Seconds in Excel

I recently had to use back end data from SQL Server to deliver several reports in excel. All of my SQL code gave me results in seconds; however, the users had distinct formatting requests. I would have to use a few excel tricks to get things just right in each report.
Using datediff to display results as HH:MM:SS

Using datediff to display results as HH:MM:SS

DateDiff is a great tool in SQL Server. But you have to extend DateDiff a bit to get things in a nicer format, such as HH:MM:SS. See what Rudy found on SQLServerCentral.com which saved the afternoon!
Long TRANSACTION Identifier is Long

Long TRANSACTION Identifier is Long

If you’re like me, you like using descriptive variable, procedure and function names. Along with those, descriptive transaction names are great, so you know exactly what type of havoc you were throwing at SQL Server. But, if you’re too descriptive, you’ll get the following error: Msg 103, Level 15, State 2, Line 1 The identifier...
Rudy: An MCITP Today. Rudy: An MCM Tomorrow?

Rudy: An MCITP Today. Rudy: An MCM Tomorrow?

Rudy Rodarte is thinking about taking an MCM immersion class given by the good folks over at http://www.sqlskills.com.
Reset an Identity Column in SQL Server

Reset an Identity Column in SQL Server

Reset and verify IDENTITY values in SQL Server using DBCC.

Determine Tables Sizes in SQL Server

Everyone is worried about their database size. Even though storage is relatively cheap, if your database is growing linearly or exponentially, you’re going to run into issues down the road. One quick way to check things out is to look at your table sizes. I looked all over the web and found Mitch Sellers’ blog...