Viewing 15 posts - 541 through 555 (of 691 total)
CHECKSUM() and BINARY_CHECKSUM() functions are built in to T-SQL for hashing...
As for your other requirement, I've never seen any code to do that. In a database I worked on...
November 1, 2004 at 11:23 am
October 31, 2004 at 10:09 pm
October 31, 2004 at 5:53 pm
Why use a CURSOR at all?
Why not just:
UPDATE Tbl
SET StartAs =
CASE
WHEN D01 > 0 THEN 1
WHEN D02 > 0 THEN 2
WHEN D03 > 0 THEN 3
WHEN D04 > 0...
October 29, 2004 at 8:22 am
I don't know how you can possibly hack around this thing without any keys in place. Maybe you could add an IDENTITY column, at least, that you could use...
October 27, 2004 at 11:04 am
Sam,
CustomerInfo has no primary key at all?
That's definitely a much bigger problem than your current query! All tables should have a primary key... Fix that issue first, then...
October 27, 2004 at 10:17 am
Yes, look up Indexed Views in Books Online.
You'll want to keep in mind that Indexed Views were designed mostly to assist with aggregate queries, not flat/non-aggregate queries (some people try...
October 27, 2004 at 9:50 am
SELECT *
FROM Customer
LEFT JOIN CustInfo
ON Customer.CustId = CustInfo.CustId
AND CustInfo.SIC IS NULL
October 27, 2004 at 9:44 am
Frank, good link.
I really like TDAN as well... looks like they have some of the same writers:
October 27, 2004 at 8:42 am
peterhe,
Post a reproduction that proves that.
... Or better, I'll just debunk this claim, which -- annoyingly -- keeps popping up all over the web in various "tips and tricks" pages:
(query...
October 27, 2004 at 8:39 am
Is it my end, or have the original poster's posts mysteriously disappeared?
October 27, 2004 at 8:38 am
Can you post DDL, including indexes and constraints, as well as the execution plan for the query?
October 26, 2004 at 3:37 pm
If you get requests like that often, you might want to consider investing in a tool like Lumigent's Log Explorer, which will let you roll back without destroying any activity...
October 26, 2004 at 3:33 pm
Can you post a reproduction illustrating the problem? What are the values of the variables, and why don't you think it's working?
October 26, 2004 at 1:30 pm
Not currently. I believe that was a problem in SQL Server 6.5, and was fixed in 7.0.
October 26, 2004 at 1:29 pm
Viewing 15 posts - 541 through 555 (of 691 total)