Viewing 15 posts - 50,491 through 50,505 (of 59,099 total)
There are many people that don't really understand how recursion works, and with it's new possibilities with CTEs, I'd really encourage all DBAs to add this tool to their list...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 9:36 am
So have the job update a single row in a log table and make the code check it at the beginning... for example, if the last entry was more than...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 9:25 am
Wilfred van Dijk (5/17/2008)
wait till MSSQL2008 🙂(don't get angry on me, I think a lot of people had the same question)
Heh... I, on the other hand, will loath the day...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 9:19 am
Oh yeah... almost forgot... Like you said, George, it will likely be cheaper to insert good rows into a new table because you won't have indexes and the like to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 9:17 am
The problem is that both pieces of code will work very fast when there's only a couple thousand dupes and that's the the case here... George said that there's 6.3...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 9:15 am
Why do you need to do this? It may make a difference...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 1:09 am
Actually, just select MONTH() from each date and subtract it from 13.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2008 at 1:05 am
... but this will...
SELECT o.CompanyID,o.TransactionID,o.RestrictedID,
CASE
WHEN d.HasRestriction = 0 THEN 'Grey'
...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:48 pm
The problem is that you are grouping by the UID which appears to be unique... it won't give you the sum of 150 that way... it will always list the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:31 pm
Nope...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:25 pm
There are a lot of things in SQL Server that have no replacement in ANSI SQL. And, I've never heard of such a converter... basically, portability is a myth.
So...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:16 pm
jalphor (5/13/2008)
I am working on a project in which someone will drop up to 5 (.txt) files into a directory on a shared drive. I have to go...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:13 pm
I agree with Mahesh... this type of duplicate data may be a real problem.
However, if that's what you need, just have the final table do a "self update" using 2...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 11:04 pm
jim.powers (5/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 10:59 pm
Chris (5/15/2008)
Great forum!!!
Here's my problem. I'm trying to build a course schedule of classes for my job and I want to stop the course descriptions (varchar(max)) from repeating...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 16, 2008 at 10:44 pm
Viewing 15 posts - 50,491 through 50,505 (of 59,099 total)