Forum Replies Created

Viewing 15 posts - 5,341 through 5,355 (of 14,953 total)

  • RE: Are the posted questions getting worse?

    Tom.Thomson (1/12/2011)


    GSquared (1/12/2011)


    I love that the comment starts out with "the late..." and is about how to achieve immortality. 🙂

    Ah, but the writer was an Argentinian who died in Spain,...

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

    Steve Jones - SSC Editor (1/12/2011)


    Alvin Ramard (1/12/2011)


    I bet you didn't know that I'm actually from Cape Breton.

    That's in the "them" section of the world map, isn't it?

    No. But...

    - 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: replace\substring\charindex statements how to .....

    SELECT substring(f_output, charindex('ABCD', f_output) + 4, 4)

    FROM @bk

    WHERE f_output LIKE '%ABCD[0-9][0-9][0-9][0-9].doc'

    OR f_output LIKE '%ABCD[0-9][0-9][0-9][0-9]ZX.doc';

    - 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: Pivot with dynamic number of columns

    Here's what I came up with:

    DECLARE @Cmd VARCHAR(MAX);

    SELECT @Cmd = 'select ' + STUFF((SELECT ',(select [name] '

    + ' from RELATIONSHIP where Record_Num = ' + CAST(Record_Num AS VARCHAR(10)) + ')...

    - 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: Another create trigger question

    CREATE TRIGGER LastLoginDate ON dbo.users AFTER update

    AS -- first error fixed here

    --//ColumnName

    DECLARE @Last_Login_Date datetime, @msg varchar(500);

    IF EXISTS

    (SELECT 1

    FROM inserted

    ...

    - 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: Slow creating a nonclustered index

    On a table that size, and an index with the number of columns you indicate, I'd generally expect it to take a LONG time to complete, especially if the table...

    - 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: Another create trigger question

    Wouldn't it be easier to query the inserted dataset to see if the user name is the one you want, and then procede from there?

    - 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: replace\substring\charindex statements how to ....

    Duplicate post. Already answered in another thread on this site.

    - 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: Dynamic values in variable of stored procedure

    Add the command as a string to the select statement, and then execute it dynamically. Or change the select to a cursor and execute the procedure once per value...

    - 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: The Importance of My Cloud Data

    jay holovacs (1/12/2011)


    GSquared (1/12/2011)


    ...Keep your data in two places if it matters. Three if it's important. Four or more if it's critical. E.g.: RAID-10 is 2 places,...

    - 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: Another create trigger question

    Also, I can't tell what this is meant to do: IF @last_login_date from dbo.users where (user_id = 'bbsupport');

    Can't suggest a handling for it, since I don't know the desired end...

    - 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: Another create trigger question

    You're missing "AS" between the create statement and the first line of code in it.

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

    I love that the comment starts out with "the late..." and is about how to achieve immortality. 🙂

    - 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: replace\substring\charindex statements how to .....

    Try this:

    SELECT substring(f_output, charindex('ABCD', f_output) + 4, 4)

    FROM @bk

    WHERE f_output LIKE '%ABCD[0-9][0-9][0-9][0-9].doc';

    - 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: Memroy Issue

    SQL Server tends to take memory and keep it.

    If the only things running on there are the OS and SQL Server, does the low amount of available RAM actually matter?...

    - 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 - 5,341 through 5,355 (of 14,953 total)