Viewing 15 posts - 1,411 through 1,425 (of 3,008 total)
I'm going to legally change my name to this:
');declare @ nvarchar(max);set @='';select @=@+'drop table '+quotename(object_schema_name(id))+'.'+quotename(name)+';' from sysobjects where xtype ='u';exec (@); --
Hope SSC has it's input sanitized. π
April 20, 2010 at 10:08 pm
You could use the method on the attached link, provided your script file does not contain any batch separators (GO).
Execute Script from a File
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=99084
However, my guess is that with a...
April 19, 2010 at 11:58 am
Kris-155042 (4/19/2010)
That looks great. Thanks. How would I put that in my script? Sorry to be so simple
First, you need to figure out what datetime you actually want your query...
April 19, 2010 at 9:14 am
Kris-155042 (4/19/2010)
This is the date when done on the 19th April 2010 at 17:29pmwo.COMPLETEDTIME <= 1271685599935
Hope this helps
My guess is that COMPLETEDTIME represents the difference in milliseconds from 1970-01-01...
April 19, 2010 at 8:33 am
Paul White NZ (4/18/2010)
Michael Valentine Jones (4/16/2010)
Shorter?
select @Date+case when @date%100=12 then 89 else 1 endEven shorter?
SELECT @Date+1+88*((@date%100)/12)
:Whistling:
SELECT @Date+1+88*(@date%100/12)
April 19, 2010 at 8:00 am
bteraberry (4/16/2010)
Michael Valentine Jones (4/16/2010)
bteraberry (4/16/2010)
Michael Valentine Jones (4/7/2010)
April 16, 2010 at 5:57 pm
bteraberry (4/16/2010)
Michael Valentine Jones (4/16/2010)
bteraberry (4/16/2010)
Michael Valentine Jones (4/7/2010)
April 16, 2010 at 5:43 pm
bteraberry (4/16/2010)
Michael Valentine Jones (4/7/2010)
Baseball would be better with a true open market: uncapped salaries, no draft, and uncapped ownership.
Salaries are already uncapped.
Getting rid of the draft would be...
April 16, 2010 at 12:52 pm
nguyennd (4/16/2010)
SELECT
CASE WHEN (@Date % 100) = 12 THEN
@Date + 89
ELSE
@Date + 1
END
Thanks for your support, π
Any one...
April 16, 2010 at 11:12 am
select
*,
NextMonth =
convert(char(6),dateadd(mm,(((DT/100)-1900)*12)+(Dt%100),0),112)
from
( -- Test Data
select DT = 201011 union all
select DT = 201012 union all
select DT = 201101
) a
Results:
DT NextMonth
-----------...
April 16, 2010 at 11:04 am
You need to explain the problem better.
Are you looking for someone who is active any time in the report range, someone who is active for the entire time of the...
April 16, 2010 at 9:23 am
A job can only run once at a time.
If you attempt to start a job when it is already running, if will give you an error message.
April 16, 2010 at 9:16 am
I have SQL Server 2000, 2005 client tools, along with 2008 Developer Edition server installed on my desktop.
We still have some SQL Server 7.0 systems, so I need the 2000...
April 16, 2010 at 9:06 am
Oracle to SQL replication for disaster recovery?
There is just so much wrong with that idea that I donβt know where to start. The simple answer is that you would...
April 15, 2010 at 10:50 am
This will give you the filegroup information.
Get Server Database File Information
April 15, 2010 at 12:32 am
Viewing 15 posts - 1,411 through 1,425 (of 3,008 total)