Viewing 15 posts - 5,476 through 5,490 (of 13,460 total)
i just tested this on my dev server;
i'm just printing some of the data available, which you would do as an email, or logging to an audit table;
you can rollback...
Lowell
May 21, 2012 at 2:06 pm
I would say you want to take the "how do you eat an elephant" approach: one bite at a time.
1. Make sure the destination database is set to SIMPLE recovery...
Lowell
May 21, 2012 at 1:51 pm
PradeepVallabh (5/21/2012)
Lowell
May 21, 2012 at 1:34 pm
because you are putting a function on thee column, SQL has to convert the WHOLE table to give you results.
with a TOP, it can shortcut and convert fewer values...
Lowell
May 21, 2012 at 11:58 am
Yeah i thought something looked wrong, when he said it's returning 4 values;
ii had to double check myself and test scope identity to prove it returns one and only one...
Lowell
May 21, 2012 at 10:56 am
Eugene Elutin (5/21/2012)
... We handle upto 200 yottabytes of data per hour....
had to look that one up! Thanks Eugene!
Lowell
May 21, 2012 at 8:58 am
since it's just this one server,
could it be something like database mail is not emabled, even though you've created the profile?
it sounds like maybe you scripted the database mail settings...
Lowell
May 21, 2012 at 8:25 am
that would work or not work depending on the data, right vinu?
if the data elements are consecutive numbers, but if they are not, i don't think you get the right...
Lowell
May 19, 2012 at 5:51 am
MysteryJimbo (5/18/2012)
*cringe*
Sorry. I've seen xp_cmdshell and similar methods like that before. Oooo and a cursor. 🙂
awe come on; whether SSIS or anything else, multiple files requires a...
Lowell
May 18, 2012 at 2:33 pm
I'll go all devils advocate on the SSIS guys and present a solution i put together for other posts that is all TSQL.
Thsi requires xp_cmdshell to get the list of...
Lowell
May 18, 2012 at 2:15 pm
couldn't you just add row_number to the results with the PARTITON BY and with DESC, then wrap it to exclude the "first" row (the last change?)
something like this?
(untested:)
SELECT * FROM...
Lowell
May 18, 2012 at 12:39 pm
right along the lines of what opc.three was suggesting, you could look at the code behind the scenes of sp_help and do something with it.
on my shared hosted server i...
Lowell
May 18, 2012 at 11:56 am
looks like a sum of case statements to me:
you have to group by the patient,and then selectively sum the charges based on the Department(code?)
something like this, i would think:
SELECT...
Lowell
May 18, 2012 at 11:28 am
add a rownumber() :
ie:
ROW_NUMBER() OVER (PARTITION BY [The text Column] ORDER BY [The text Column] ,[TheNumeric Column] ) As RW
with that, you could join the data against itself with...
Lowell
May 18, 2012 at 6:05 am
MysteryJimbo (5/15/2012)
Lowell
May 15, 2012 at 1:34 pm
Viewing 15 posts - 5,476 through 5,490 (of 13,460 total)