Forum Replies Created

Viewing 15 posts - 2,761 through 2,775 (of 3,543 total)

  • RE: SQL getting slower and slower

    I had similar problems with SQL7 SP4 server and was having to do daily reboot. In the end increased size of windows paging file (beyond windows recommended value) and problem went...

  • RE: help with the " LTRIM " and split

    SELECT TAGNAME,

    REVERSE(LEFT(TAGDESC,PATINDEX('%[0-9]%',TAGDESC)-2)) +

    SUBSTRING(TAGDESC,PATINDEX('%[0-9]%',TAGDESC)-1,CHARINDEX(' ',TAGDESC,PATINDEX('%[0-9]%',TAGDESC)-PATINDEX('%[0-9]%',TAGDESC))) +

    REVERSE(SUBSTRING(TAGDESC,CHARINDEX(' ',TAGDESC,PATINDEX('%[0-9]%',TAGDESC))+1,LEN(TAGDESC)-CHARINDEX(' ',REVERSE(TAGDESC))-CHARINDEX(' ',TAGDESC,PATINDEX('%[0-9]%',TAGDESC)))) +

    RIGHT(TAGDESC,CHARINDEX(' ',REVERSE(TAGDESC))) AS 'TAGDESC',

    EUDESC

    FROM tbtxt

  • RE: Trigger and custom error message question

    quoteAfter the first insert iCount is equal to one and not greater then one ????

    True but the trigger...

  • RE: Trigger and custom error message question

    The problem is the ROLLBACK in the trigger. It will stop execution of sql and therefore your test of @@ERROR wil not be performed.

    If you remove the ROLLBACK you will...

  • RE: Worst Practice - Triggering External Events

    Good article. Must admit though I have only used triggers once to implement cascade deletes (I know problems, problems ) when I converted an...

  • RE: Parameter markers

    Yes, true but also check out 'Execution Plan Caching and Reuse' in BOL. Plan reuse and aging is dependant on several factors.

  • RE: Rounding

    Money will always be displayed with four decimal places whether rounded or not

    12.3456

    will be 12.3456

    or 12.3500 when rounded to 2 decimal places

    if you want the values to have two decimal places...

  • RE: Parameter markers

    Well the results are the same, the execution plan will be the same, so no difference. However the use of sp_executsql may be an issue. Any sql query has to...

  • RE: SQL 7 to SQL 2000 through a laptop?

    Personally I would backup the databases, copy the backups to the new server and restore using MOVE option. If you keep the backups in a separate area on the new...

  • RE: Help us Improve our Logo

    quoteSorry, but the only creativity I have in the graphics world is a stick man for my 2yr...
  • RE: Help us Improve our Logo

    Hey Andy, bet you wished you never asked

    What voting system you going to use

  • RE: Help us Improve our Logo

    Layout #1 with the cube colours of #6

  • RE: Query Problem selecting records

    Just for reference, two possibilities

    SELECT b.[Client ID],b.[Course ID],d.[Course Date]

    FROM [Course Bookings] b

    INNER JOIN [Course Details] d

      ON d.[Course ID] = b.[Course ID]

    WHERE b.[Course ID] IN (SELECT...

  • RE: Query Problem selecting records

    The query worked for me when I create a test table.

    Unless the data is sensitive, can u post the result of the following...

  • RE: Query Problem selecting records

    No you only need to change the first one. The second select is a derived table (subquery) which I happended to call a.

    The query should have been

    SELECT b.[Client ID],b.[Course Date],b.[Course ID]...

Viewing 15 posts - 2,761 through 2,775 (of 3,543 total)