Forum Replies Created

Viewing 15 posts - 6,601 through 6,615 (of 7,418 total)

  • RE: Please help my carrer Path?

    I understand English may not be your first language, so I won't criticize any of those aspects of your post. I've tried learning a foreign language and know how...

  • RE: Does a CASE statement execute all cases?

    Remember, SQL has to build a single plan ahead to time to cover any value. It doesn't look at the value of the variable when building the plan.

    But at...

  • RE: int column gets value of 0 by default

    Maybe an empty value/string of '' is somehow getting passed to that column? An int of '' is set to 0.

  • RE: Last Sunday of a month in sql

    russell-154600 (2/13/2013)


    Any argument that dates before 1900 are unlikely can't really be taken seriously can it? Pure foolishness.

    Please put all of the US Presidential elections and their results into...

  • RE: Naming Convention for UDF's, Views and SP's

    Given that the q said "why should they not be prefixed", I think it's OK. It shouldn't be done because it does slow down name lookup for those objects,...

  • RE: I'll apologize in advance.....ALTER DATABASE

    ALTER DATABASE MODIFY FILE ( NAME=logifcalfilename, SIZE=newsize )

    No special considerations required.

    If you don't have IFI set on, it may take a while, depending on how much you increased the size.

  • RE: Last Sunday of a month in sql

    Michael Valentine Jones (2/12/2013)


    ScottPletcher (2/12/2013)


    Michael Valentine Jones (2/12/2013)


    ScottPletcher (2/12/2013)


    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    ScottPletcher (2/11/2013)

    ...

    I haven't been in any business that worked with dates before 1900, but...

  • RE: Last Sunday of a month in sql

    Michael Valentine Jones (2/12/2013)


    ScottPletcher (2/12/2013)


    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    ScottPletcher (2/11/2013)

    ...

    I haven't been in any business that worked with dates before 1900, but if yours did, then...

  • RE: Comparing Conditional WHERE clauses

    The first format is definitely preferable, although I prefer checking the variable first to give SQL as much chance as possible to short-circuit (bypass) the second comparison:

    WHERE (@seq IS NULL...

  • RE: Help With Foreign Keys

    nsmith 8448 (2/12/2013)

    One of the requirements is to create primary and foreign keys in the tables.

    Is it acceptable to add the Emp_Id column to each table and use that as...

  • RE: Convert Non Clustered PKs to Clustered

    akshay.pawar123 (2/11/2013)


    GilaMonster (1/9/2013)


    ScottPletcher (1/9/2013)


    If SQL needs only key column(s), why does it read all the leaf pages of the table as well?? That's an incredible waste of I/O.

    The...

  • RE: Last Sunday of a month in sql

    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    ScottPletcher (2/11/2013)

    ...

    I haven't been in any business that worked with dates before 1900, but if yours did, then that would be a...

  • RE: Last Sunday of a month in sql

    Michael Valentine Jones (2/11/2013)


    ScottPletcher (2/11/2013)


    ScottPletcher (2/11/2013)

    ...

    I haven't been in any business that worked with dates before 1900, but if yours did, then that would be a relevant concern for you....

  • RE: Stored procedure explanation

    Sean Lange (2/11/2013)


    DON'T use things you don't need, like the BEGIN and END for the proc itself - completely unneeded and doing nothing but cluttering up the screen.

    Actually begin...

  • RE: Comparing figures based on relative date

    For best performance,

    Cluster the table by

    LAST_DAY_OF_MONTH

    and not the dopey identity column. If you still need the identity (??), you can leave it as the nonclustered pk.

Viewing 15 posts - 6,601 through 6,615 (of 7,418 total)