Viewing 15 posts - 49,336 through 49,350 (of 59,091 total)
You don't need the overhead of a "split" function for this... just a Tally table. Please see the section titled "One Final "Split" Trick with the Tally Table" in...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 6:47 am
Oh yeah... almost forgot... there is one faster method... convert to Float, distribute Floor, convert back to DateTime... but most people don't use that because it only brings a little...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 5:53 am
I prefer the method that Gail listed... it's all "math" and that makes if faster than character conversions. It also keeps it as a DateTime datatype so that other...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 5:50 am
sql_novice_2007 (7/9/2008)
ID Names
1 david,peter,sam
2 john,kevin,marsh
3 brian,broad
I...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 5:46 am
It's not @@ScopeIdentity... It's SCOPE_IDENTITY().
Now that you put it that way, though, I think you might want to try the new OUTPUT clause in 2k5... that can give you a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 5:27 am
In that case, I'm amazed at how many different peoples have apparently adopted the Arabic language as their own... just look at their code 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 5:17 am
Grant Fritchey (7/8/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 1:14 am
I can't help on the XML stuff... but you may want to consider using SCOPE_IDENTITY() instead... @@IDENTITY will return the wrong number if, for example, you have a trigger on...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 12:57 am
chazcross (7/8/2008)
Im having some trouble writing a query to return results the way i would like it.
It's important to know how many titles you might have per company... if it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2008 at 12:49 am
indraprakash (7/8/2008)
Hi,round function not gives proper output
floor is right.
Ummmm.... why do you think that? Using the optional 3rd parameter of ROUND makes it behave like FLOOR but with...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 10:53 pm
Thanks for the compliment, Annas... 🙂 I wish the Tally table was my original idea... but it's not... I just write about how to use it. Just in...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 10:44 pm
David Naples (7/8/2008)
Jeff Moden (7/7/2008)
David Naples (7/7/2008)
You can't do this directly, as the CREATE PROCEDURE or ALTER PROCEDURE statement has to be the first in the batch.
Ummm... maybe not...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 10:35 pm
harshil (7/8/2008)
What the purpose of this query is to remove all duplicate records except one...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 10:13 pm
Kent Waldrop (7/8/2008)
declare...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 2:47 pm
IN has the same execution plan as an INNER JOIN. EXISTS requires the use of a correlated subquery and is a form of RBAR that is sometimes faster than...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 2:44 pm
Viewing 15 posts - 49,336 through 49,350 (of 59,091 total)