Viewing 15 posts - 271 through 285 (of 542 total)
Sure...a view works well for these things. It's a good way to encapsulate some complicated join syntax; with the added benefit of "compiling" the execution plan.
Now, the where clause CAN...
Signature is NULL
September 1, 2004 at 5:21 pm
I've run into exactly this problem. Setting rowcount performed to slowly....look at the estimated execution plan for a hint as to why this is (BOL: "The setting of SET ROWCOUNT...
Signature is NULL
September 1, 2004 at 4:48 pm
Seems like the best place to find this is in the Office SDK (under samples or something). I don't have it, though; and Microsoft is not known for making good...
Signature is NULL
August 31, 2004 at 6:37 pm
Actually, you can capture what proc the spid is running:
DBCC INPUTBUFFER(@@spid)
put that in a trigger and you should be able to figure this out. Don't the "Dependencies" show up...
Signature is NULL
August 31, 2004 at 6:31 pm
OK, I hesitate to even offer this solution. Nevertheless, it's saved my bacon, and is useful although not optimal as far as performance is concerned:
---TEST Table
if object_ID('tempdb..##Test') is not null...
Signature is NULL
August 27, 2004 at 7:24 pm
OK, this was a little harder than I thought, but this works:
declare @Date datetime,
@Hour int,
@isPM bit
select @Date = '2004-08-27 00:00:00.000',
@hour = datepart(hh, @Date),
@isPM = Case when @Hour > 12 then 1...
Signature is NULL
August 27, 2004 at 7:17 pm
Interesting article...gosh that is complex.
good job!
Signature is NULL
August 27, 2004 at 12:16 pm
Yup, that's the way to do it...JDBC to TSQL. The article referenced says to use xp_cmdShell. Personally, I schedule the DTS package, then use "sp_start_job" proc.
cl
Signature is NULL
August 25, 2004 at 3:42 pm
This is probably to little to late, but did you look up xp_cmdshell on BOL? It's pretty clear about permissions. If you want to give a non-sysadmin rights to xp_cmdshell...
Signature is NULL
August 25, 2004 at 3:30 pm
Yeah, I usually use a self-join for something like this. I tested it out, though, and using the group by costs half of using the self-join.
Nice technique! I would not...
Signature is NULL
August 19, 2004 at 7:15 pm
I realize Mahesh's proc is more generic, but it doesn't appear to be working properly. I'm not to interested in debugging it, though, too tell you the truth.
He's using the...
Signature is NULL
August 17, 2004 at 2:48 pm
Jim,
We'll need a sample of your data plus the sp (if changed). Also, who's method are you using?
cl
Signature is NULL
August 17, 2004 at 1:44 pm
I really like the fact that you separated the data transfer and the SQL transaction. Using alerts to do this is an ingenious way to make these independent.
I would have...
Signature is NULL
August 10, 2004 at 1:25 pm
What you really need here is client side error handling. Unfortunately, you're using Acess, so you're stuck with what it offers (plus the SQL error handling, which is not that...
Signature is NULL
August 2, 2004 at 6:33 pm
Warning on that, though; potential performance problems, as you're making the completion of a transaction dependent on external processes completing.
cl
Signature is NULL
August 2, 2004 at 6:31 pm
Viewing 15 posts - 271 through 285 (of 542 total)