Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Glitchbane

    Isdate function not working

    Question for you (all): Won't the "ROLLBACK TRAN" rollback the "SELECT @output_message =" I would expect that, if you set a variable inside a transaction, then rollback the transaction, the variable would be rolled back as well. Am I missing something?
  2. Glitchbane

    Adding a number to a string

    What happens when you get to "AAAZ" and want to add 1? Do you go to "AAAa" or "AABA" or "AAA0" or what? You need to be more specific still.
  3. Glitchbane

    last X weeks in chart

    I don't recognize the "{ fn WEEK(hit_date) }" part of the code... but I'm mostly 7.0... In SQL 7, you can get away with it by adding a leading zero for weeks that are 1 character. If fn WEEK is a function, you could try changing that so it adds a leading zero if necessary. That...
  4. Glitchbane

    Determining the PK value of a new record

    Just a little warning about triggers: If you insert to a table and generate a new Identity, but that insert fires a trigger that makes another insert on another table with an identity, the @@IDENTITY value you get back right after the first insert will actually be from the insert fired by the...
  5. Glitchbane

    Stop a number from rounding off

    SQL seems to hate doing math. However - the INT solution is the wrong direction. If you want it to keep the ".3" part of "1.3", you need to use a non-INT numeric field. The NUMERIC datatype holds precision and scale. The books online will describe this better than I, so...

Part and Inventory Search

Back
Top