Viewing 15 posts - 4,456 through 4,470 (of 7,191 total)
I think what I would do is alter your stored procedure so that it gives a return value of the number of rows inserted, then either insert that value into...
June 13, 2012 at 9:42 am
nsvensson (6/11/2012)
Yes.. but the problem is, on my Control Flow diagram, there is only 'Data Flow Task'
Sounds like you're looking at the design surface of your package, and not in...
June 12, 2012 at 3:46 am
Try it out. It also returns last_run_date and last_run_time, which gives the last time that the job started - whether it's still running or not.
John
June 11, 2012 at 1:25 am
Mmmm... that's a good point. SQL Server 2000 had an "In Progress" value for run_status, but that seems to have been dropped from later versions. One way round...
June 8, 2012 at 8:53 am
Look in sysjobhistory for jobs whose most recent entry doesn't have step_id = 0. That will tell you the jobs that are currently running. You will then have...
June 8, 2012 at 8:35 am
Are you just looking for currently running jobs that have been running for more than a certain length of time? If so, why do you need sysprocesses?
John
June 8, 2012 at 7:53 am
Since NULL means "unknown", you can't know whether NULL is 0 or not. Therefore NULL<>0 cannot be evaluated as "True". This is why you need to be very...
June 8, 2012 at 4:52 am
Ah yes, good point. I think that would have been a better way to put the question.
John
June 8, 2012 at 2:30 am
IgorMi (6/8/2012)
June 8, 2012 at 2:16 am
IgorMi (6/8/2012)
Ensured with a direct try.
You can execute the following code and ensure yourself that the IGNORE_DUP_KEY = ON has done its effect.
create table qotd5
(
col1...
June 8, 2012 at 2:07 am
I got this right, but I'm still a little confused. Am I correct in thinking that what is being tested here is knowledge of the IGNORE_DUP_KEY setting and not...
June 8, 2012 at 2:00 am
Barry
How do you configure the server name for the connection string? Do you use a dtsConfig file, or a SQL table, or is it hard coded? Does the...
June 7, 2012 at 9:01 am
You can use the Execute Process task in SSIS.
John
June 7, 2012 at 7:08 am
Michael
The only thing that I can think of is that there's another piece of code somewhere that's creating a temp table with the same name. You can run a...
June 7, 2012 at 6:22 am
You'll need to find a way of assigning NULL to the variable that you pass in. If you can't do that, change the stored procedure so that it treats...
June 7, 2012 at 6:13 am
Viewing 15 posts - 4,456 through 4,470 (of 7,191 total)