Forum Replies Created

Viewing 15 posts - 3,916 through 3,930 (of 4,080 total)

  • RE: Deleting rows and later reusing the Identiify value

    By trebuchet or air cannon?

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Using ISNULL to display blank instead of decimal val

    Who said it was a bug? 😉

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Query results in one row

    Try this. As pointed out earlier, you could also generate this as dynamic SQL with a MAX() line for every distinct attribute description. This assumes that...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Should be simple and quick but cannot find answer

    Grammar lessons you need. Help you I cannot. Yes!

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Handy Scripts to Find Dates and Weeks in SQL

    No argument here. I've already cut and pasted them into my snippets library.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Using ISNULL to display blank instead of decimal val

    Most of our output goes to either reporting services, spreadsheets, or user interfaces that handle the formatting. The only raw SQL reports are ad-hoc. ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Handy Scripts to Find Dates and Weeks in SQL

    No reason at all 🙂

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Deleting rows and later reusing the Identiify value

    Good plan. Psychological issues are better served by counseling 😉

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Handy Scripts to Find Dates and Weeks in SQL

    The mighty Garadin is correct. My last couple of examples were step-by-step, each dependent on the last. You can of course nest the steps into...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How to convert columns into rows

    Take a look at the UNPIVOT operation. Unfortunately, you will have to list all columns by name.

    http://msdn.microsoft.com/en-us/library/ms177410.aspx

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Using ISNULL to display blank instead of decimal val

    Sergiy's right. STR is often a better choice, but it depends on what you're going to do with your output.

    If you're going to use STR, be sure...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Handy Scripts to Find Dates and Weeks in SQL

    Ned,

    It is good of you to post up solutions which might be useful to others.

    To elaborate on what Sergiy said, because datetime format is numeric...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Using ISNULL to display blank instead of decimal val

    CAST or CONVERT the decimal amount to varchar and then you can use an empty string with ISNULL.

    select isnull(convert(varchar(10),amount),'') as amount

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: INSERT INTO with different column names

    Just in case your question isn't about the format of the INSERT statement, but rather about how to designate your columns in the ACCESS database...

    If your question is how...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: How to place IP address(one field) into different fields.

    Jeff, I would never have thought to use parsename on an IP address, but it makes perfect sense because it has four elements separated by periods. Tell me...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

Viewing 15 posts - 3,916 through 3,930 (of 4,080 total)