CREATE PROCEDURE MakeMyTempTable AS BEGIN IF (SELECT 1 FROM #tempTable /*you can call your table however you want but for a temporary table #*/) IS NULL CREATE TABLE #tempTable ( id int --here you define your fields ) END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)