Forum Replies Created

Viewing 15 posts - 1,981 through 1,995 (of 3,232 total)

  • RE: Forum Etiquette: How to post data/code on a forum to get the best help

    Great article Jeff! I agree in that I've read sooo many posts that were so badly presented that I simply move on to another. I read/answer posts while...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert and update statement with case

    Really, your best bet here would be to not default your value to 'Select One' but to default it to NULL instead or to use a stored procedure for your...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert and update statement with case

    Try using NULLIF. Here's an example:

    declare @table table (sex varchar(10))

    declare @CSex varchar(20)

    set @CSex = 'Select One'

    insert into @table

    values(NULLIF(@CSex,'Select One'))

    set @CSex = 'Female'

    insert into @table

    values(NULLIF(@CSex,'Select One'))

    select * from @table

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert and update statement with case

    Well, I see a couple of things wrong here. First, you cannot have a 'SELECT' statement in a VALUES clause and second, you have no END on your CASE...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SQL2005 Performance question

    In that case, the JOIN should out perform the SELECT most of the time as PW and Gail have already posted. Write both SQL statements and do a performance...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Foreign keys good or bad practice?

    tfifield (11/21/2007)


    This is really a matter of what the database was created for. If there is only 1 front end application doing all of the inserts and deletes, there...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: IS NULL problem

    David Paskiet (11/21/2007)


    DDarn! Rich beat me to the punch! :w00t:

    Close David, you were only 4 hours off :Whistling:

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Adding a database from a .bak file

    The backup operation will read the .mdf and .ldf file locations from the backup header. So by default, it will try to restore the database to the exact same...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Log Shipping 2005 read-only/standby mode question

    There are 2 types of read only modes. One is a database level option that you can set to make the DB read only. The other, and more...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Modify Default Isolation Level by ApplicationName, user or login?

    SQL Server 2005 offers new optimistic isolation levels that may help you out here but it would not be portable to your SQL Server 2000 box and it must be...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SQL2005 Performance question

    It looks like your post got cut off, can you re-post your code.

    Also, your question states 'what is faster', what do your tests show?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Log Shipping 2005 read-only/standby mode question

    This looks like it would be a pretty easy one to test. Have you tried to do this yet? If so, did you get an error?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Difference in performance between 2 queries

    Well, it probably has to do with the number of reads. While your old query is written as a LEFT JOIN, the query analyzer will treat it as an...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: service pack 4

    If you are applying SP4, you will still be on Standard Edition. SP4 is a service pack upgrade. Going from Standard Edition to Enterprise Edition is a version...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Foreign keys good or bad practice?

    It IS a balancing act, but starting with the attitude that FK's are worthless (which is what you're not just portraying - it's like you're screaming it from the rooftops)...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 1,981 through 1,995 (of 3,232 total)