Forum Replies Created

Viewing 15 posts - 14,311 through 14,325 (of 26,486 total)

  • RE: Are the posted questions getting worse?

    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    Didn't GETDATE() use to (or still get) the same error?

    Yes, in SQL 2000.

    Then the code Jack ran into my be a vestige left over...

  • RE: IF EXIST - DO NOTHING

    Actually, I think I found where my logic died. Haven't used it in a while so I didn't quite remember the rules correctly.

    I stand corrected and back on track...

  • RE: IF EXIST - DO NOTHING

    Did some testing and it looks like you do want to ANDs in the NOT EXISTS statement.

    Okay, boolean logic doesn't always work as you think in T-SQL.

  • RE: IF EXIST - DO NOTHING

    Eddie Wuerch (10/6/2011)


    IF NOT EXISTS(SELECT * FROM Customer WHERE col1 = @x AND col2 = @y AND @col3 = @z)

    BEGIN

    -- do stuff

    END

    I...

  • RE: Are the posted questions getting worse?

    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    Didn't GETDATE() use to (or still get) the same error?

    Yes, in SQL 2000.

    Then the code Jack ran into my be a vestige left over when the database...

  • RE: Are the posted questions getting worse?

    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    Jack Corbett (10/6/2011)


    So working on a system where there is a UDF that calls a view and the view definition is:

    create view SYSTEM_DATE_VIEW

    as...

  • RE: Are the posted questions getting worse?

    GilaMonster (10/6/2011)


    Lynn Pettis (10/6/2011)


    Jack Corbett (10/6/2011)


    So working on a system where there is a UDF that calls a view and the view definition is:

    create view SYSTEM_DATE_VIEW

    as...

  • RE: Are the posted questions getting worse?

    Jack Corbett (10/6/2011)


    So working on a system where there is a UDF that calls a view and the view definition is:

    create view SYSTEM_DATE_VIEW

    as select getdate() SYSTEM_DATE

    ...

  • RE: Aging Payments query help

    It would help if you could post the DDL for the table(s), sample data for the table(s), expected results based on the sample data, and what you have done so...

  • RE: Record Purge Compliance

    Actually, I would not worry about purging the data from the database backups. Doing so simply is beyond the scope of the corporate/state/federal requirements. Purging the data from...

  • RE: How do you learn the advanced stuff?

    GilaMonster (10/4/2011)


    I'm busy building a monster of a server (8 cores, 16GB memory, 6TB drive space) that can support multiple virtual machines, so I can play with mirroring, replication, AlwaysOn,...

  • RE: Application login properties change on mirror failover

    Glad I was able to help.

  • RE: Multiple Schema access in SQL Server (with .net)

    ~Dev~ (10/4/2011)


    1)I'm using .net - is there a way I can configure schema name as a part of connection string.

    Dev:: I am not sure on this but if you have...

  • RE: Shrink Database benefit

    derek.colley (10/4/2011)


    Hah, fair enough! This is not the first time I've heard that opinion aired!

    Out of interest, does anyone know why AUTO_SHRINK is such a bad idea? I...

  • RE: Display first record from duplicate records in a column in sql query

    Here is the problem, your query has no order by so that your result set, before eliminating dups, instead of looking like this:

    Request, city, Service, Complaint

    123 - Arcadia - abc...

Viewing 15 posts - 14,311 through 14,325 (of 26,486 total)