Viewing 4 posts - 1 through 4 (of 4 total)
you have to use either ";" or "GO"
but not both of them.
both are batch separator
October 25, 2010 at 12:24 pm
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...
June 7, 2010 at 8:56 am
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>....
August 3, 2009 at 7:05 am
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...
March 5, 2009 at 7:19 am
Viewing 4 posts - 1 through 4 (of 4 total)