Viewing 15 posts - 9,556 through 9,570 (of 15,381 total)
That looks like it will do what you want. I don't know that I would say it is "right". 😉
You might try to suggest to the powers that be that...
January 22, 2013 at 1:01 pm
No offense but this code is a disaster. You have 2 cursors and the declarations are completely different, the check for fetch_status are overly complicated and not documented. Do you...
January 22, 2013 at 12:57 pm
prathibha_aviator (1/22/2013)
Sean, Have a look at my complete code
I am going to guess that you didn't read that article. It certainly is somewhat of a help to see all of...
January 22, 2013 at 12:20 pm
prathibha_aviator (1/22/2013)
The culprit is here.
CONVERT(varchar(20),+ 'pol_id)'
Exactly, it says the same.. But I couldn't find where it is.. Am i supposed to write the whole convert function dynamically???
Yes, you can't write...
January 22, 2013 at 12:09 pm
Talk about sparse details. It would be helpful if in the future you could provide more details. At the very least declare the variables.
Once I declared the variables so I...
January 22, 2013 at 11:05 am
poratips (1/22/2013)
My procedure modification...
January 22, 2013 at 10:49 am
poratips (1/22/2013)
I need for 45 minutes check but i can also set up as 30 minutes.
I was trying to implement in one shot like...
January 22, 2013 at 10:08 am
Just for fun here is another way.
select replicate(' ', 81)
January 22, 2013 at 9:49 am
p.ramchander (1/22/2013)
test data:
ClockIDEmployeeIDpunchTimepunchType
87692013-01-22 14:26:35.5901
97692013-01-22 14:46:59.3630
105092013-01-22 14:49:17.2601
115092013-01-22 15:13:10.7700
where punchtype '0' for out...
January 22, 2013 at 9:43 am
The main you have not yet received a response is because your question has no details. We need ddl and sample data at a bare minimum. Please read the article...
January 22, 2013 at 9:41 am
Your question is extremely vague but I think you want something like this.
Add this above your cte.
declare @QuestionCount int
select @QuestionCount = count(*) from @Question where Record = @Record
Now you have...
January 22, 2013 at 8:07 am
davdam8 (1/22/2013)
Sorry, don't have any data on the table yet, this is a projection of what it will contain.
I apreciate all the help I can get for this...
January 22, 2013 at 7:50 am
That looks pretty close. You said that you want to stop if the process runs for 45 minutes but your check is < 30. You can change that to 45...
January 22, 2013 at 7:28 am
poratips (1/21/2013)
We don't need to stop at certain time clock, we need to quit the job (stored procedure) in it's running more than 45 minutes as currently it's runnning from...
January 21, 2013 at 3:56 pm
If you just want to stop processing at a certain point in time add a start time at the top of your code and check it on each pass through...
January 21, 2013 at 3:44 pm
Viewing 15 posts - 9,556 through 9,570 (of 15,381 total)