Viewing 15 posts - 50,956 through 50,970 (of 59,098 total)
So use Robert's function as part of a derived table, join it, and pivot it.
It really would help if the OP would post exactly what output is expected from the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 28, 2008 at 6:33 am
Never mind...
Master.sys.dm_Exec_SQL_Text is a system table-valued function... I thought it was a system view.
:blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
April 28, 2008 at 6:14 am
Why bother? If you want to update a table with an IDENTITY column, then just do it.
If you're trying to create a query that returns a numbered list, then...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 27, 2008 at 9:01 am
Some have tried to come up with a formula... I've not been very successful at it because it really isn't database size dependent. It's impacted more by what the...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:30 pm
You bet... let us know how you make out on this problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 10:57 pm
As with so many types of testing, you must also test your "made up" questions as well. This question actually has two correct answers... made up or not... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 12:09 pm
It orders by data_id assuming that you want to know the next one. Your example data was not in order by data_id, but I think you may have meant...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:45 am
Lynn (4/24/2008)
I can't put these tables in a separate db because the application will break.
Oh, yes you can... put the tables in a different DB and either make "surrogate views"...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:31 am
Just alter the table to add the ID column making sure that it has the IDENTITY property included.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:28 am
The first 3 things I'd do is...
1. Update to sp2 and apply the latest cumulitive update (#7, I believe).
2. Turn off autoshrink. If it keeps growing, it's...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:27 am
Thanks for the feedback, Gene, and good luck on your efforts! Let us know if anything comes up... maybe give us some feedback on what you ended up doing....
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 11:08 am
You've summarized the soft skills very nicely, Tony. And, I absolutely agree, David Poole's well thought out statement of "if people will voluntarily use you as the first point...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 10:49 am
intvfan (4/26/2008)
I would love to BULK load. Do you bulk...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 26, 2008 at 9:12 am
You don't need to worry about DateFirst with the following...
[font="Courier New"] SELECT LEFT(DATENAME(dw,GETDATE()),3)
+ ', ' + CONVERT(VARCHAR,GETDATE(),106)[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.
April 25, 2008 at 8:41 pm
Have you got a server called "FindUsers"??? That's where the error is on my machine...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 25, 2008 at 8:36 pm
Viewing 15 posts - 50,956 through 50,970 (of 59,098 total)