Forum Replies Created

Viewing 15 posts - 8,581 through 8,595 (of 9,643 total)

  • RE: a script to write "Update" Statements

    Okay the first solution assumed you had no records with the correct model try this:

    [font="Courier New"]-- create test tables

    CREATE TABLE #source

       (

       client INT,

       model INT

       )

    CREATE UNIQUE INDEX ux_source...

  • RE: SQL Server 2005 TCP Settings

    When you change the port in SQL 2005 you have to start the SQL Server Browser Service or you need to specify the port in your application's connection string.

  • RE: Convert Float to Varchar

    Why use substring and LTRIM? Shouldn't STR give you the string representation you need?

  • RE: query runs fine on dev but very slow on production

    Even with the backup and restore the execution plans could be different as the plans are cached in memory not in the database, so you should compare execution plans.

    Are the...

  • RE: query runs fine on dev but very slow on production

    Well, if there is a cursor I would always try to remove it if there is a set-based solution which there usually is. As far as the why there...

  • RE: Error Handling in SSIS

    Great, I love learning something new. I would suggest creating the control and then submit the instructions to SSC as a How To article, then we all benefit. ...

  • RE: Trigger Help

    Matt Miller (5/14/2008)


    Jack Corbett (5/14/2008)


    SQL Server does not have before triggers. In SQL Server you would use an after trigger and then use the virtual inserted and deleted tables. I...

  • RE: select * from scan where boxid =

    I use the SQL Prettifier. Someone mentioned it in another forum thread and I have used it since. It is an extra step, but I find it makes...

  • RE: Trigger Help

    Here are 3 options. Option 1 is simpler, but it will create rows even if you do Update TicketCallMain set AgrPKey = AgrPKey, while Options 2 is not complex...

  • RE: Trigger Help

    SQL Server does not have before triggers. In SQL Server you would use an after trigger and then use the virtual inserted and deleted tables. I will post an example...

  • RE: Query

    ezlikesundaymorning (5/14/2008)


    ...The question should have had more details to keep the user from making assumptions....

    You may have missed my first post on the forum as it was prior to yours,...

  • RE: Query

    webrunner (5/14/2008)


    ezlikesundaymorning (5/14/2008)


    Excellent. I guess that I can just sit here and bitch or start contributing myself when it all boils down to it. Thanks for the reply. I am...

  • RE: Query

    ezlikesundaymorning (5/14/2008)


    OK, just plain and simple, I am going to give my 2 cents worth here. This question is pure BS. I mean has anyone here ever seen a query...

  • RE: Query taking 2 hour 30 min to run

    TheSQLGuru (5/14/2008)


    1) Several people here have a mis-conception about what a clustered index scan is. It IS a table scan in this case.

    I agree with your other 2 points,...

  • RE: select * from scan where boxid =

    riga1966 (5/14/2008)


    select * from scan

    where boxid = 'RET0018438'

    and

    (((client in ('MCP','JNJ','PCP','PCR','HOS')) and

    (client in (select clientcode from policy where deduct_ship = 'N')...

Viewing 15 posts - 8,581 through 8,595 (of 9,643 total)