Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,216 total)

  • RE: Get date of last Sunday of every month

    rbarryyoung (6/18/2008)


    GSquared (6/17/2008)


    ...are all considered deterministic by SQL Server, but

    Datepart(Weekday, date)

    is not.

    Neither are:

    dateadd(day, '12/30/1899', date)%7

    cast(date as float)%7

    cast(date as int)

    Aren't the first two affected by configuration settings on the server or...

  • RE: Whoops there goes more drive space

    I would suggest to move TEMPDB on yet another separate drive. One drive for data, one for logs, one for TEMPDB, that worked best for us.

  • RE: Insert data into column from a stored procedure

    It is hard to describe what to do, if we don't know anything about the procedure (what columns are returned, what can be used as a key for joining to...

  • RE: Using SET ISOLATION LEVEL

    As far as I know, the main difference is, that SET makes this setting valid for all subsequent operations (until it is re-set or connection closed), while WITH(...) sets the...

  • RE: Help doing one procedure

    Hello,

    if the column txt_alt is defined as case sensitive (see "Collations" in SQL Server Books Online), you can use the function LOWER to find, whether there are some capital letters...

  • RE: datetime: 1245-03-05

    Jeff,

    calculated column was my first idea, but when I tested it, I found out that it can't be made persisted because of ISDATE function (and also probably can't be indexed...

  • RE: datetime: 1245-03-05

    Well, that's true, but on the other hand, where are you getting the "BrokenDate" from (during the INSERT ... FROM inserted inside the trigger)? That is, what datatype is "BrokenDate"?

    If...

  • RE: datetime: 1245-03-05

    Gail,

    did you test your INSTEAD OF trigger? I tried to do it approximately the same way, but it didn't intercept the error. I was still getting the conversion error message......

  • RE: datetime: 1245-03-05

    This is how I would probably go about such problem...

    You will need to have 2 columns in the table for this date - one datetime and one varchar. Then make...

  • RE: Dynamic IN

    There are many possible ways to achieve your goal... You can find a pretty detailed description here:

    Arrays and Lists in SQL2005

    or, in case you have SQLS2000 and posted in a...

  • RE: selecting from 2 versions of join based on a variable value

    Something very similar was discussed several times during the last few days.

    This is one of the threads:

    Dynamically choosing inner or outer join

    I think that similar approach could work for you...

  • RE: datetime: 1245-03-05

    Sorry, but as far as I know, it isn't possible... we only needed such out-of-range dates once, and that was only for storage (no calculations performed on the column), so...

  • RE: Dynamically choosing inner or outer join

    jcb,

    this is one of my favorite links - it discusses how to apply various search criteria, and mentions many possible solutions, their advantages, drawbacks and performance. Maybe it will help...

  • RE: Error converting data type varchar to numeric.

    Jeff is absolutely right, use of ISNUMERIC is limited, it will miss many values. You can try it - if it helps, great; but you can't be sure it finds...

  • RE: Good T-SQL Books

    Depends on what your procedures look like, but you could find some useful info here: http://www.sommarskog.se/. It isn't a book, but it is a source of interesting information and helped...

Viewing 15 posts - 166 through 180 (of 1,216 total)