Viewing 15 posts - 6,556 through 6,570 (of 13,469 total)
Amy.G (10/14/2011)
Ah, the CAST vs. CONVERT debate finally gets personal. Well played, Lowell. 😀
lol, so now it's time for my obligatory reply:
"CAST?!?! you used CAST?!! you're doing it wrong!" 😀
October 14, 2011 at 1:48 pm
you'll need to create an INSTEAD OF TRIGGER on the view.
then the trigger body can use a cosntant, or lookup from another table, or your logic of reusing a passed...
October 14, 2011 at 1:37 pm
if you convert to say, decimal(5,0) in your calcualtions, would that work for you ?
/*
ThePCTFiveOhFiveTwo
98.9348009998.93
99.0012009999.00
99.0441009999.04
99.0968009999.10
99.1289009999.13
99.1865009999.19
99.2536009999.25
99.2756009999.28
99.3197009999.32
99.3645009999.36
99.4291009999.43
*/
With MySampleData
AS (
SELECT '98.934800' AS ThePCT UNION ALL
SELECT '99.001200' UNION ALL
SELECT '99.044100' UNION ALL
SELECT '99.096800' UNION...
October 14, 2011 at 1:34 pm
Freeman-674288 (10/14/2011)
October 14, 2011 at 11:54 am
how about a different line of attack:
have the email send a link to a specific web page that requres the specific key (ie a GUID) that comes from the email.
the...
October 14, 2011 at 11:25 am
the structure does not have to match. that's a "nice to have" thing, but not a requirement.
when you restore, you'll use the WITH MOVE to tell the restore the...
October 14, 2011 at 10:17 am
it might be that the second column in the join (being set to a constant) is not correct;
maybe this?
SELECT table1.column4,
table2.column5
FROM table1
...
October 14, 2011 at 9:50 am
the (+) syntax was used to show how to do a LEFT OUTER JOIN.
both Oracle 10+ and SQL can use the newer more understandable syntax like this, so you can...
October 14, 2011 at 9:07 am
the Connection Object in ADODB that you create has an Errors collection, which includes the print statements, "rows affected" as well as anytime you called RAISERROR i believe.
print...
October 14, 2011 at 7:38 am
DO NOT USE THIS ON PRODUCTION.
it builds a TABLE SCAN for every table which happens to contain a varchar/char/nvarchar/nchar type column.
a millionBillionRow table could cause this to gobble up some...
October 14, 2011 at 7:23 am
i'm an ID-TEN-T;
i looked at jsu tthe execution plan for the setup table variable...of course they are the same...once i scrolled down, i saw differences.
October 14, 2011 at 6:53 am
maybe it's just me, but both my solution and Chris's seem to produce the exact same execution plan?, but Chris's is 48% relative to the batch where mine was...
October 14, 2011 at 6:42 am
Phil the only way i could see it was to use a case statement that evaluates each column;
this works, but i don't know how it will perform on large data...
October 14, 2011 at 6:27 am
you'll want to export your logins from the old box to the new one. the procedure sp_help_revlogin from Microsoft will do that for you .
run it on the old server,...
October 14, 2011 at 5:10 am
Mo' (10/14/2011)
I did not realize that ORIGINAL_LOGIN() was the user calling for authentication...
I understand all the code.. with the exception for the last 3 lines..
ENABLE TRIGGER...
October 14, 2011 at 4:38 am
Viewing 15 posts - 6,556 through 6,570 (of 13,469 total)