Forum Replies Created

Viewing 15 posts - 12,871 through 12,885 (of 18,923 total)

  • RE: Help with joining multiple select statements

    HTH.

    Make sure you keep this at one row/select or else you'll have a full blown cartesian plan .

  • RE: sysxlogins help

    Make sure you disallow the updates after this is done... you don't want to wipe out a systable by accident .

  • RE: order by just time

    You might want to use minutes (or even ms if it's a datetime (not smalldatetime) for the order by instead of hours... if you want ot keep the true order...

  • RE: TOP Operator using a local variable

    How did you figure out my name really??? I don't have anything in my profile .

  • RE: Help with joining multiple select statements

    How about this?

    Select * from

    (SELECT count (distinct dbo.Member.NRDS_ID) AS 'ACTIVE MEMBERS'

    FROM dbo.Member INNER JOIN

    dbo.Member_Association ON dbo.Member.Member_Number = dbo.Member_Association.Member_Number

    WHERE (dbo.Member_Association.Status = 'A') AND (dbo.Member_Association.Member_Type_Code = 'R' OR

    dbo.Member_Association.Member_Type_Code = 'RA') AND (dbo.Member_Association.Primary_Indicator...

  • RE: ALTER TABLE - ADD column

    Quoting myself >> "You can't do that in sql server unless you rebuild the whole table."

    This is exactly what sqlserver does when you hit save.

  • RE: TOP Operator using a local variable

    DECLARE @Table table (Date smalldatetime not null primary key clustered, BD bit not null)

    INSERT INTO @Table (Date, BD) VALUES ('1980-01-01', 1)

    INSERT INTO @Table (Date, BD) VALUES ('1980-01-02', 1)

    INSERT INTO @Table...

  • RE: ALTER TABLE - ADD column

    You can't do that in sql server unless you rebuild the whole table. Anyhow, column order should be chosen at the select... and actually the only time that it matters...

  • RE: Database Design and Reference Tables

    Now you can make that 97% as this is also wrong in my opinion... but I like the discussion that ensued .

  • RE: Three Column Tables

    The only time I use this is for my flags table > FlagName, FlagValue. This works in my small environement and because this flags are checked by jobs to...

  • RE: MSG 208

    That can't be the query you are running as there's no syntaxe error in there. Please post the code that ERRORS OUT.

  • RE: MSG 208

    Can we see the code you are using?

  • RE: Update with case

    Yup .

  • RE: ALTER column of type varchar to varbinary

    Looks like you must do this in a few steps >>

    1 - Create the new column

    2 - Transfer the data from the old to the new column.

    3 - Drop te...

  • RE: TOP Operator using a local variable

    Why can't you use a SP?

    Why not select * order by??

Viewing 15 posts - 12,871 through 12,885 (of 18,923 total)