Viewing 15 posts - 61 through 75 (of 232 total)
Nobadys' is perfect you learn it from your silly mistakes :-D.
January 21, 2011 at 7:48 am
you might have named instanced installed .. try it..
January 21, 2011 at 7:48 am
here si the correct code
DELETE
FROM SecondaryCategory
WHERE EXISTS(select 1 from deleted where SecondaryCategory.[ArtistID] = DELETED.[ArtistID]) AND (SecondaryCategory.[ArtistGenreID] = DELETED.[ArtistGenreID])
)
January 21, 2011 at 7:46 am
I guess this is what you are looking for....
selectdistinct NAME, cast(DIM1 as varchar(10)) + '-' + b.DESCRIPTION as DIM1,
cast(DIM2 as varchar(10)) + '-' + b.DESCRIPTION as DIM2,
cast(DIM3 as...
January 21, 2011 at 7:41 am
Try THis one....
SELECT LOC_NUM, MAX(ISNULL(CASE DEPARTMENT WHEN 'CCD' THEN COUNT(*) END,0)) AS CCD,
MAX(ISNULL(CASE DEPARTMENT...
January 21, 2011 at 6:21 am
considersing the same sample what pdanke has explanined.. we can use below query to update the data in TableA
UPDATE a
SET a.puser = COALESCE(a.puser, b.primaryuser)
from @TableA a
join @TableB b on a.id...
January 18, 2011 at 4:52 am
Khusbu,
You should educate the developers with best practices on writing the script. As koen has already explined about two different transactions, I would i only one comment "check the column...
January 18, 2011 at 4:44 am
I guess you can handle this case just by handling the NULL values in Execute SQL task.
January 18, 2011 at 4:39 am
Automating installation is a good idea but installing service packs w/o knowing the imapct :w00t:... is not advisible.
January 18, 2011 at 3:49 am
Thank you all I did worked earlier on the option suggested but we are confortable with the options. I do have a server side trace running I guess I can...
January 16, 2011 at 10:53 pm
No one can tell you when to use table variables and when to use temp tables. Each you need to decide which is performing well...
I would suggest you go thorugh...
December 15, 2010 at 7:16 am
The answer lies in the question. Filter in JOIN & filter in WHERE clause.
When you add filter in JOIN the rows from respective table will be filtered based on...
December 15, 2010 at 6:54 am
To answer your question...
JOINS always perform better than IN clause. Why ? IN clause is basically performs sub query funcitonality, for each row in outer query it execute the innser...
December 15, 2010 at 6:42 am
Viewing 15 posts - 61 through 75 (of 232 total)