Jason Nadal

Restless C#ding

Browse by Tags

All Tags » SQL (RSS)
Sorry, but there are no more tags available to filter with.
Check for the existence of a sql temp table
Here's an easy way to check if a temp table exists, before trying to create it (ie. for reusable scripts) from Simon Sabin's post : IF object_id ( 'tempdb..#MyTempTable' ) IS NOT NULL BEGIN DROP TABLE #MyTempTable END CREATE TABLE #MyTempTable ( ID int...
Posted: Feb 24 2006, 08:10 AM by thejay2 | with 45 comment(s)
Filed under:
SQLCMD Mode (SQL Management Studio)
By entering SQLCMD mode in a SQL Server Management Studio query window, you can do some very handy things without needing to jump back out to the command prompt. Commands can be run just like at the command prompt, by prefixing the line with "!!" a la...
Posted: Feb 10 2006, 09:04 AM by thejay2 | with no comments
Filed under:
Lots to say, but I'll be spreading it out.
I'm going to try to force myself to write at least a little blurb daily, but we'll see just how long that lasts. Anyway, today's odd bit of SQL -- I needed to get a list of all items in a table that had no corresponding child records via a self join....
Posted: Feb 03 2006, 05:06 PM by thejay2 | with 2 comment(s)
Filed under:
More Posts