Forum Replies Created

Viewing 15 posts - 6,781 through 6,795 (of 7,597 total)

  • 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.

  • RE: Go to next record when there is a constraint issue.

    You would need to code the time constraints in your WHERE clause. That is, bypass those rows yourself rather than trying to have SQL do it itself.

    You might not...

  • RE: IF or CASE on 2 different columns, THEN values x, y or z

    am wondering if the CASE requires all arguments to run against the exact same column?

    No. CASE is very flexible: you can compare any columns you need to, in any...

Viewing 15 posts - 6,781 through 6,795 (of 7,597 total)