Posts tagged with: sql

Quickly Defining a Table Structure From a Query

I recently saw a comment that described getting data into a temp table using SELECT <Columns> INTO <Table>.  The main reason this was done was just for convenience and to......
Continue Reading →

T-Shirt Series: The Temporary Line

Throughout the T-Shirt series we have discussed Temp Tables, Table Variables, Derived Tables, and Common Table Expressions (CTE). In this post I will summarize high level differences under normal circumstances.......
Continue Reading →

T-Shirt Series: The CTE (Common Table Expressions)

I have been asked what is the difference between Temp Tables, Table Variables, CTEs, and Derived tables. So I thought I would take this opportunity to do a short blog post......
Continue Reading →

Generate XSD from Sql query using FOR XML

Transitioning from site specific prototypes to more standardized products for delivery to multiple customer sites has been a driving factor for separating custom source system translations from the product itself.......
Continue Reading →

T-Shirt Series: Derived tables

I have been asked what is the difference between Temp Tables, Table Variables, CTEs, and Derived tables. So I thought I would take this opportunity to do a short blog......
Continue Reading →

T-Shirt Series: The Misunderstood Table Variable

I have been asked what is the difference between Temp Tables, Table Variables, CTEs, and Derived tables. So I thought I would take this opportunity to do a short blog post......
Continue Reading →

Incorrect SQL71558 error when joining synonyms in SSDT

I recently ran into an issue where the SSDT compiler in Visual Studio was misreporting an error and I wanted to post about the setup and work-around. SSDT, also known......
Continue Reading →

T-Shirt Series: What is so special about “TEMP” Tables

I have been asked what is the difference between Temp Tables, Table Variables, CTEs, and Derived tables.  So I thought I would take this opportunity to do a short blog......
Continue Reading →

Troubleshooting a Full Transaction Log

Transaction logs are one of the most critical parts of a database and should be managed as such. Running out of disk space can cause application errors and even database......
Continue Reading →

Defensive Database Programming

There I was minding my own business having breakfast and reading SQL Server Central‘s editorial when I saw a link to Alex Kuznetsov’s Defensive Database Programming book. I read the book a year or so......
Continue Reading →