Forum Replies Created

Viewing 15 posts - 1,411 through 1,425 (of 3,008 total)

  • RE: No One is Safe

    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. πŸ™‚

  • RE: Ways to run large script files

    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...

  • RE: Converting a date

    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...

  • RE: Converting a date

    Kris-155042 (4/19/2010)


    This is the date when done on the 19th April 2010 at 17:29pm

    wo.COMPLETEDTIME <= 1271685599935

    Hope this helps

    My guess is that COMPLETEDTIME represents the difference in milliseconds from 1970-01-01...

  • RE: The best way to add next month

    Paul White NZ (4/18/2010)


    Michael Valentine Jones (4/16/2010)


    Shorter?

    select @Date+case when @date%100=12 then 89 else 1 end

    Even shorter?

    SELECT @Date+1+88*((@date%100)/12)

    :Whistling:

    SELECT @Date+1+88*(@date%100/12)

  • RE: Talking baseball

    bteraberry (4/16/2010)


    Michael Valentine Jones (4/16/2010)


    bteraberry (4/16/2010)


    Michael Valentine Jones (4/7/2010)


    And yes, get rid of the draft. If nothing else, just for pure fairness. How would your salary look if...

  • RE: Talking baseball

    bteraberry (4/16/2010)


    Michael Valentine Jones (4/16/2010)


    bteraberry (4/16/2010)


    Michael Valentine Jones (4/7/2010)


    In other words, I am suggesting that Baseball (and other sports) operate under the same market conditions that almost every other business...

  • RE: Talking baseball

    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...

  • RE: The best way to add next month

    nguyennd (4/16/2010)


    :w00t: oh, good SQL. I'm rewrite your SQL and...

    SELECT

    CASE WHEN (@Date % 100) = 12 THEN

    @Date + 89

    ELSE

    @Date + 1

    END

    Thanks for your support, πŸ˜€

    Any one...

  • RE: The best way to add next month

    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

    -----------...

  • RE: Query: Count of Membership between dates (2 columns)

    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...

  • RE: Preventing a job from running twice simultaneously

    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.

  • RE: Can we have both SQL 2005 and 2008 client tools on the same PC?

    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...

  • RE: What are the Limitations of having SQL server as a DR server for Oracle 10g database

    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...

  • RE: DB file paths help!

    This will give you the filegroup information.

    Get Server Database File Information

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=89058

Viewing 15 posts - 1,411 through 1,425 (of 3,008 total)