Viewing 15 posts - 57,406 through 57,420 (of 59,049 total)
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...
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." ![]()
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)...
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...
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...
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...
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 ![]()
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...
October 11, 2006 at 8:21 pm
Peter,
Thanks for being patient with the explanation... It would be really nice to combine both methods so that if something other than your proc fires the trigger, you can still...
October 11, 2006 at 7:38 pm
Yep, sorry about that... I got a little frustrated with you... everyone has been trying to tell you that you're asking for "Death by SQL" by doing the UPDATE right...
October 11, 2006 at 8:29 am
There's really no physical problem to keep you from using it... However, Microsoft and a bunch of folks on this forum have indicated that in order to guarantee that your...
October 11, 2006 at 7:27 am
I guess I'm just going to have to materialize this code and test it...
Would you post the CREATE TABLE statement for the two audit tables and the CREATE FUNCTION...
October 11, 2006 at 7:21 am
And, you need to be real careful if this comes anywhere near a GUI... think "SQL Injection". Theres a huge amount of info on how to prevent it... do a...
October 11, 2006 at 7:15 am
I guess I don't understand... obviously, you are finding the correct Windows user name somewhere along the line in your stored procedure because you want to "pass it" to a...
October 11, 2006 at 7:11 am
It's the triple quotes in the variable assignment that are the most recent problem...
Try this...
declare @townID varchar(25),
@sql varchar(1000)
set @townID = '00003' --<<THIS IS WHERE THE...
October 11, 2006 at 6:49 am
Viewing 15 posts - 57,406 through 57,420 (of 59,049 total)