Viewing 15 posts - 57,451 through 57,465 (of 59,101 total)
I was leaning towards the previously suggested idea of some sort of permanent table for this and then I started thinking "spid" and then David stole my thunder 
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2006 at 7:36 am
Yeah.. that's what I was kinda getting at... if it's all SELECTs, what's the problem ![]()
Also, what I've found is that a lot of...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2006 at 7:29 am
Yep... I knew that, Mark
I just didn't think that Shine recognized that because he said your code change didn't work and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2006 at 7:25 am
Yep... First, I changed the function to capture the data type... again, you'll need to change the name of the function...
CREATE FUNCTION dbo.fnColumnsUpdated
(@TableName SYSNAME, @BinaryColNums VARBINARY(128))
RETURNS...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 12, 2006 at 7:21 am
THAT would certainly be a limit, huh?
Yeah, I know they reached the end but then they said they'd limit it to 300...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 10:41 pm
Mr B... PRINT is exactly what you are looking for... if you don't want the rowcounts to show up in "standard" format, you can do a SET NOCOUNT ON and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 10:10 pm
Books Online... comes free qith SQL Server... lookup "Database Design" (I think)...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 10:05 pm
Mark left out one part and if you did, too, you WILL get the same results... your GROUP BY has to be by the same formulas that Mark gave you...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 10:03 pm
Outstanding list, Rudy... I'd like to bump your rounds down 1 and add a new round 1... "Write scalable code to start with." ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 9:59 pm
Don't think that's quite what Nick meant...
Nick... You can do this by creating your view like this....
CREATE VIEW dbo.someviewname AS
SELECT CAST(dflt_cyl_ctf AS DECIMAL(18,4)) AS dflt_cyl_ctf,
CAST(cyl_ctf_actv AS INT)...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 9:51 pm
As some have correctly suggested, unless you do backups everyday, you should have the "recovery mode" set to SIMPLE.
DO NOT LIMIT THE LOG FILE!!! IF IT TRYS TO GROW BEYOND...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 9:44 pm
Ok... first, thank you very much for making my life easier for testing... the good news is, I get no errors with the following test code. The bad news is...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 9:28 pm
Hmmmm.... I'm wondering if the error I got when I ran you build scripts might be a hint of your DELETE problem...
Warning: The table 'AuditDetail' has been created...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 8:46 pm
Understood and appreciate the feed-back but riddle me this... did you change your code so that it does NOT use an UPDATE, yet ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2006 at 8:28 pm
Paul Cresham's function is great... I have a similar one that uses a Tally table... thought you might enjoy seeing it... the documentation is longer than the function itself...
--Jeff Moden
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Change is inevitable... Change for the better is not.
October 11, 2006 at 8:21 pm
Viewing 15 posts - 57,451 through 57,465 (of 59,101 total)