Forum Replies Created

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

  • RE: Parsing Question

    SELECT CHARINDEX('1','~'+@str)/2

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help us Improve our Logo

    quoteSorry, but the only creativity I have in the graphics world is a stick man for my 2yr...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help us Improve our Logo

    Hey Andy, bet you wished you never asked

    What voting system you going to use

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help us Improve our Logo

    Layout #1 with the cube colours of #6

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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

    Far away is close at hand in the images of elsewhere.
    Anon.

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