Viewing 15 posts - 31 through 45 (of 47 total)
Ok So I'm sure some one will send an assasin my way for saying this, but:
Cursors are not always evil, and will certainly help in this instance!
You can then simply...
July 8, 2009 at 11:51 pm
Ian Scarlett, You da man!
Thanks!
That did the trick just nicely!
June 19, 2009 at 6:47 am
ok here is a generic query:
if exists(select * from msdb.dbo.sysobjects where id = object_id(N'[msdb].[dbo].[RTblClassDefs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
print 'true'
Stand on msdb, and run the query, true is printed
Stand on...
June 19, 2009 at 6:39 am
gautamsheth2000 (4/13/2009)
Should use this code 🙂Select count(*) From master.sys.columns C1 CROSS JOIN master.sys.columns C2
You can do even one better.
using the PK in count is faster than *
ie,
Select count(id) From...
April 15, 2009 at 2:12 am
This looks round about right 🙂
Thanks
I'm going to give this a shot.
Look at that code, add some semi colons, and you have yourself some sql flavour c# :-p
February 9, 2009 at 11:56 pm
I have 2 such issues. the same 2 issues heard over and over again.
Coffee, and Nicotene.
Now the smoking is not that heavy. I smoke about 10 Camel Superlights a day....
December 5, 2008 at 5:54 am
Well Indexes I still do in the procedures. Mostly our procs are just glorified selects, and we let sql decide which indexes to use, but on a few reports we...
December 3, 2008 at 10:30 pm
Great Article.
And, I've not had the pleasure (displeasure according to rumor) of using Crystal Reports or Reporting Services and, thus, have no idea how long they would take to...
December 3, 2008 at 9:56 pm
This can get very hairy, very quickly...
Perhaps create 2 temp tables. then a cursor for the store, then populate a temp table with a identity column. then insert that table...
August 20, 2008 at 1:47 am
You are right. It is much faster this way.
Thanks a lot!!!!!!
July 22, 2008 at 2:05 am
This is a little script I keep close by. from time to time it comes in handy, esp if you need to audit the updated information, or do some calculations...
July 22, 2008 at 12:54 am
Well, this will go into a sql job. The reason I have it as tsql, is so that the file name can be dynamic.
the idea is to email a csv...
July 18, 2008 at 12:42 am
Create indexes on
CaseNUm
at_ID
If it is still slow, add anothert 2 index on TypeID
and StepName
June 29, 2008 at 11:58 pm
Wow, should have thought of that!!!!!!!
and this simply because the original designer saved the postal code as int and not varchar(5)
June 26, 2008 at 4:40 am
Viewing 15 posts - 31 through 45 (of 47 total)