Viewing 15 posts - 721 through 735 (of 842 total)
I just do this:
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME ='newtable') DROP TABLE newtable;
March 4, 2014 at 8:37 am
mwyss (2/28/2014)
below86 (2/28/2014)
paul.knibbs (2/28/2014)
February 28, 2014 at 10:00 am
I may be only one of a few who actually liked the Green Lantern movie, it could have been better. But the whole concept lends itself to easily change...
February 28, 2014 at 9:57 am
paul.knibbs (2/28/2014)
February 28, 2014 at 9:44 am
george sibbald (2/27/2014)
below86 (2/27/2014)
February 27, 2014 at 7:46 am
I have often said I avoid stored procedures for the most part. But this too has always seemed odd to me. You are essentially replacing the entire code when...
February 27, 2014 at 7:12 am
If you want to use the name of a calculated field I think the only way to do it would be to do a sub query. But for a...
February 26, 2014 at 7:47 am
Thanks for posting this script. I took what you did and applied it to another SQL I got here that looked for values in stored procedures. I don't...
February 25, 2014 at 7:27 am
bob_balok (2/21/2014)
February 21, 2014 at 8:59 am
Steve Jones - SSC Editor (2/21/2014)
BigAl (2/20/2014)
February 21, 2014 at 8:53 am
Thanks Sean, I was trying to figure out something similar the other day and couldn't think of how to get it down to one row per ID. Without doing...
February 21, 2014 at 7:35 am
I would love to work remotely. Anyone willing to let me work from Hawaii? 😎
I would be willing to work around any time zone differences. 😀
To the other...
February 20, 2014 at 7:19 am
This looks to be a double posted question.
Here is what I replied to the other post. Why would you need 2 when statements? Never mind I see why, didn't...
February 5, 2014 at 7:34 am
See if this does what you want.
declare @startdate datetime;
declare @trandate datetime;
set @trandate = '02/05/2012';
set @startdate = (select casewhen @trandate between '06/04/' + cast(year(@trandate) - 1 as char(4)) and '05/04/' +...
February 5, 2014 at 7:20 am
Viewing 15 posts - 721 through 735 (of 842 total)