Forum Replies Created

Viewing 15 posts - 9,856 through 9,870 (of 14,953 total)

  • RE: Dates

    I'm not entirely clear on what you're asking.

    Is what you need a list of the possible start and end dates for all weeks in a year? If so, have...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: t-sql joins help

    Will something like this do what you need?

    SELECT

    Material.Name,

    MfgDate,

    MAX(StoredDate) AS StoredDate

    FROM

    Material

    LEFT OUTER JOIN Store

    ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    You just gotta love posts like these:

    http://www.sqlservercentral.com/Forums/Topic703170-338-1.aspx

    http://www.sqlservercentral.com/Forums/Topic703094-147-1.aspx

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to parse the xml using t- sql

    I asked both the same things on his other post, which appears to be pretty much the same junk.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Execute a action on the first day of the month !?

    How are you calling the proc? Is it part of a scheduled job? Part of an application? Something else?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: best way to Parse xml throgh t-sql

    First, if there's supposed to be XML in the post, you need to surround it with the correct tags, or convert the carrets to HTML codes.

    Second, did you have a...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: TOP

    I was going to comment about how this isn't a valid test, but it's already been covered more than adequately. Good discussion.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: What Effect does the addition of a computed column have on existing DML Statements

    YSLGuru (4/22/2009)


    GSquared (4/22/2009)


    One way you might be able to get around problems with adding columns to tables is to create a view with the computed column in it and index...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SELECT interferes with RAISERROR in CATCH

    Florian Reischl (4/22/2009)


    Hi Gus (hope I am allowed to call you Gus)

    I just tried again and I think I figured out the problem. It depends on the C# code. As...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: MSSQL datetime snafu

    What's the language setting for the server? Not the database, the server. (Properties on the connection in Management Studio.)

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: What Effect does the addition of a computed column have on existing DML Statements

    One way you might be able to get around problems with adding columns to tables is to create a view with the computed column in it and index the view,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SELECT interferes with RAISERROR in CATCH

    Pakki (4/22/2009)


    Hi ,

    Just a wild guess, did not try reproducing it.

    I think since we dont have that 'Set NoCount ON', after every select the message about the number of...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SELECT interferes with RAISERROR in CATCH

    Just to be sure, I also tried the original script, and the final raiserror worked as expected.

    BEGIN TRY

    RAISERROR ('Test Error Raised', 16, 1)

    END TRY

    BEGIN CATCH

    DECLARE @ErrorSeverity INT,

    @ErrorNumber INT,

    @ErrorMessage NVARCHAR(4000),

    @ErrorState INT,

    @ErrorProcedure...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SELECT interferes with RAISERROR in CATCH

    Also tried this:

    begin try

    raiserror('Error', 16, 1)

    end try

    begin catch

    select 'First'

    print 'First'

    select 'Second'

    print 'Second'

    raiserror('In Catch', 16, 1)

    end catch

    I get both selects, both prints, and the error message from the raiserror in the...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SELECT interferes with RAISERROR in CATCH

    I just tried this:

    begin try

    raiserror('Error', 16, 1)

    end try

    begin catch

    select 'First'

    print 'First'

    select 'Second'

    print 'Second'

    end catch

    I got both selects and both print commands.

    @@Version = Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86)...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 9,856 through 9,870 (of 14,953 total)