Viewing 15 posts - 27,421 through 27,435 (of 59,101 total)
polkadot (2/23/2013)
I’m working on the hierarchy lesson in Ken Henderson’s The Guru’s Guide to Transact-SQL.
I'd like to recommend a different approach to hierarchies. Please see the following 2 articles....
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 11:38 pm
You can also cheat for performance with a little integer math. The 22800 is the year (1900*12). The "0" in the BOM forumula is 1900-01-01. The "-1"...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 10:38 pm
Alan.B (2/25/2013)
If i am understand right. Function can return only one value. am i right?
Scalar functions return one value, table valued functions return a table variable.
Inline Table Valued Functions...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 10:17 pm
Who's got a CLR arbitrary precision library for SQL Server?
BWAAAA-HAAAA!!! SQL Server is a very small park for these types of things. That brings me back to what...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:13 pm
Debbie Edwards (2/25/2013)
Eugene Elutin (2/25/2013)
Jeff Moden (2/25/2013)
I guess I just don't understand why you need separate tables for each code to begin with.
That is exactly the thing which makes me...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:09 pm
Debbie Edwards (2/25/2013)
Eugene Elutin (2/25/2013)
Debbie Edwards (2/25/2013)
Eugene Elutin (2/25/2013)
Jeff Moden (2/25/2013)
I guess I just don't understand why you need separate tables for each code to begin with.
That is exactly the...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:07 pm
Debbie Edwards (2/25/2013)
It would take ages to explain that bit and I don't need to because Im Ok with that part of...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:00 pm
Michael Valentine Jones (2/23/2013)
Strictly speaking, a NEWID() would be converted to 2 BIGINTs, since a UNIQUEIDENTIFIER is 16 bytes, and a BIGINT is 8 bytes.
Not sure what I was thinking,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 4:51 pm
Lynn Pettis (2/22/2013)
Jeff Moden (2/22/2013)
Lynn Pettis (2/22/2013)
I haven't tried, but are you sure you can convert a uniqueidentifier to a bigint?Yes, but not directly.
SELECT CAST(CAST(NEWID() AS BINARY(16)) AS BIGINT)
Cool. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 4:50 pm
mpdillon (2/24/2013)
Here is what is...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:56 am
I guess I just don't understand why you need separate tables for each code to begin with.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 25, 2013 at 5:48 am
Lynn Pettis (2/22/2013)
I haven't tried, but are you sure you can convert a uniqueidentifier to a bigint?
Yes, but not directly.
SELECT CAST(CAST(NEWID() AS BINARY(16)) AS BIGINT)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 22, 2013 at 9:40 pm
ajames 36824 (2/22/2013)
Jeff Moden (2/22/2013)
ajames 36824 (2/22/2013)
You ROCK! 😀Do you understand how and why it works?
Well it looks like it says that for each question in the QuestionID column, return...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 22, 2013 at 8:33 pm
I'm still absolutely amazed that HTML and XML ever made it out of the starting blocks. Both are horribly tag-bloated which unnecessarily clogs the pipe, bottlenecks I/O, and uses...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 22, 2013 at 8:15 pm
dwain.c (2/21/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 22, 2013 at 6:53 pm
Viewing 15 posts - 27,421 through 27,435 (of 59,101 total)