Viewing 15 posts - 51,811 through 51,825 (of 59,098 total)
Make the UDF accept the table name as an additional parameter and pass it. Just remember that UDF's can't do Inserts, Updates, or Deletes on tables nor can it...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 10:01 pm
First things first... please see the link in my signature line for the way to post table descriptions and data in the form of executable code... makes life real easy...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 9:54 pm
Heh... two words...
TALLY TABLE!
I'll be back in a minute with an example...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 9:33 pm
So tell me... why do you think any of that requires a cursor? Or am I misunderstanding your post?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 9:31 pm
Sounds a bit like homework or an interview question, but I'll bite...
In the presence of the correct indexes (composit primary key), the first one will probably be a little faster...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 9:06 pm
The real answer is that you shouldn't store the dashes... that's formatting and it really has no place in the database. I'd make the app strip out the dashes...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 9:03 pm
Poifect 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:58 pm
Heh... AC only if you were off station and the R-12's actually worked. We all know that Lithbro never worked in warm water off the Philipines... we spent 60...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:47 pm
I bought the pro copy of WINZIP... it comes with the command line version. It's only $39 US (maybe less now). No, it's not free... but it is...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:29 pm
Sure, you could write a VBS script, a smidgen of C# or bit of Java code, or any other number of options. ALL of them will be slower than...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:26 pm
Never too late for good info... thanks for the link.
One of the things I've found is that even when you use that method to "disable" parameter sniffing, SQL Server can...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:19 pm
Temp table and While loop is going to be almost as slow as a cursor when it comes to RBAR. The only advantage is the lack of locking and...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 8:08 pm
Matt Miller (3/13/2008)
Jeff Moden (3/13/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 7:59 pm
You're not trying to return the output to the screen are you? And, according to Matt's fine testing, ID<'X' is the fastest. I don't think a NCI will...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 7:53 pm
cziebert (3/13/2008)
Thanks Jeff, appreciate the help.Sincerely,
Z
And I appreciate the feedback. Thanks, Z.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 13, 2008 at 7:49 pm
Viewing 15 posts - 51,811 through 51,825 (of 59,098 total)