Viewing 15 posts - 7,276 through 7,290 (of 7,636 total)
chinni (3/30/2008)
they asked to use curser becoz it needs to check the records every time for the changes for every baselineobject...........
Doesn't Jack's script do that?
If not, then you'll...
March 30, 2008 at 12:59 pm
Marios Philippopoulos (3/30/2008)
Yes, it's true that by trying to replace xp_cmdshell with SQL CLR code that is just as generic opens the door to even more...
March 30, 2008 at 12:50 pm
rush2pooja (3/30/2008)
how do i decide the driver(jdbc/odbc)?
Hmmm, well SQL Server has "net-librarys" but I don't think that those are the same thing. If a MySql driver means what I...
March 30, 2008 at 12:22 pm
You can use the CREATE DATABASE command or right-click on the "Databases" folderr under your server in Management Studio (called "SSMS" in these forums).
March 30, 2008 at 6:19 am
Snapshot Isolation does impose some overhead, both performance and diskspace, but it does offer a very simple way to present a transactionaly consistent view to your users.
March 29, 2008 at 10:05 pm
FWIW, I teach many programmer how to use SQL Server and I have learned that the most important thing is to impose the following two rules/commandments right from the start:
I....
March 29, 2008 at 9:45 pm
Thanks, Jeff.
rbarryyoung (3/29/2008)
March 29, 2008 at 9:25 pm
Well, snapshot isolation is one way to go.
Another is what we call the "Shell Game". Instead of one set of tables, you have two (or three, depending on your...
March 29, 2008 at 5:22 pm
Of course you should exercise caution in who has access to this procedure. For all of xp_CmdShell's security issues, custom-written replacements are likely to have even more.
March 29, 2008 at 5:02 pm
Good post, Jeff.
I have almost always (90%+) had good results from the estimator, but then as you know, I hardly ever use cursors or recursion.
Now that I think...
March 29, 2008 at 4:45 pm
Jeff:
Yeah, I do not usually like the recursive CTE's either (they make my brain hurt!) but I was afraid that a Numbers/Tally table approach would be invoking a...
March 29, 2008 at 11:31 am
Jeff:
Here is my Adventureworks version. It seems to be faster than the Tally Table approach, but I am not sure if they are returning equivalent datasets:
;WITH SORT_CTE_Insert ( PartyID,...
March 29, 2008 at 6:01 am
Jeff Moden (3/28/2008)
Now, THAT was fun! 😛
I have to agree!
March 28, 2008 at 10:38 pm
OK, here is my entry. I went the pure CTE route, using some of the stuff that Cory started:
ALTER PROCEDURE dbo.sp_UPDATE_ALPHA_INDEX_PARTY
@start_date datetime,
@end_date datetime
AS
set...
March 28, 2008 at 10:37 pm
Jeff Moden (3/28/2008)
March 28, 2008 at 9:39 pm
Viewing 15 posts - 7,276 through 7,290 (of 7,636 total)