Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: go command

    you have to use either ";" or "GO"

    but not both of them.

    both are batch separator

  • RE: Time Bomb Coding

    Hi David

    I would like to add something in Your "simple example"...

    IF EXISTS(SELECT 1 FROM ... WHERE...)

    Instead of this Use following...

    IF EXISTS(SELECT TOP(1) 1 FROM...

  • RE: Query taking long time to execute

    1>.

    Make a computed column (with persisted) named "ShipTranNo"on

    the third table "ILSS"

    Alter Table ILSS

    Add

    ShipTranNo as LEFT(SHIPMENT_ID,) PERSISTED

    2>.

    Now create an index on this column "ShipTranNo"

    Create Index Idx_ILSS_ShiptranNo ON ILSS(ShipTranNo)

    3>....

  • RE: Script or stored procedure

    Hi Buddy

    use the built in undocumented procedure

    sp_MSforeachdb 'use ?; select ''?'' --rest of your query goes here ',

    and this will show you the result from each db

    --the ? is...

Viewing 4 posts - 1 through 4 (of 4 total)