Viewing 15 posts - 49,351 through 49,365 (of 59,099 total)
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
indraprakash (7/7/2008)
Note: We can't use convert function
The ROUND function with the truncate option is definately the way to go... but why is it that you can't use the CONVERT function?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 2:40 pm
Thanks David... Heh... what I'd really like to do is raise a glass at the bar!:P
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 7:15 am
Sorry Robert... "OP" is forum shorthand for "Original Poster".
The thing is that the table I am retrieving the data from is a production/live database and cannot be modified, the formats...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 6:17 am
Now, that's something I can definitely agree with! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 6:11 am
harshil (7/8/2008)
Although I have intentionally mentioned it for SQL SERVER...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 6:10 am
Mark Horninger (7/8/2008)
I know one certified person who I worked with that didn't have a clue,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 6:03 am
Mark Horninger (7/8/2008)
Jeff,Was it a test DB with space issues? Dunno why anyone would want do do that....
Mark
The guy didn't even take the time to find out......
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2008 at 5:52 am
Viewing 15 posts - 49,351 through 49,365 (of 59,099 total)