Viewing 15 posts - 4,576 through 4,590 (of 7,429 total)
Unfortunately you cannot do this directly in TSQL. However as was discussed in another thread you can create a job or executable to make a connection to the server and...
October 23, 2002 at 7:47 pm
Have you considered maybe a zero reply option similar in function to active threads. And also may want to note last poster name is Site Owners somewhere so new folks...
October 23, 2002 at 7:33 pm
This should do it, alos changed to use INNER JOIN SQL standard.
Update mwebWorkCalcs
set mwebWorkCalcs.WorkCalcs_Actual_Hrs=(select isnull(sum(TASK.WorkCalcs_Actual_Hrs),0.0)
from
MWEBWOR
INNER JOIN
MWEBWORKCALCS TASK
ON
TASK.WORKCALCS_WORK_ID = WORK_ID AND TASK.WORKCALCS_WORK_ENTITY_TYPE=4
WHERE
(case mwebWorkCalcs.workCalcs_Work_Level
when 3 then...
October 23, 2002 at 9:48 am
It doesn't hurt to make a backup copy of either that you can restore to any server for testing and troubleshooting issues that seem to only occurr on one server...
October 23, 2002 at 9:34 am
Sorry, just want to cover the why. Technically, however, I never hit enter so the paragraph is actually 1 line long.![]()
"Don't roll your eyes at me. I...
October 23, 2002 at 7:31 am
Ok, just to clear things up. Looping thru and not changing the string will work that way. However once the execution of the loop or process is over and the...
October 23, 2002 at 7:29 am
simonsabin,
quote:
this will allow the use of compile queries.
I am confused by this and some other...
October 23, 2002 at 5:18 am
Consider what happens if no record meets the some_condition. In that case there are no rows returned which in turn means there isn't even a NULL value to work with....
October 23, 2002 at 4:45 am
Instead of using sysporcesses, setup an on DELETE trigger that runs
select system_user, host_name(), app_name()
which will give you the actual login name of the user that fired delete, the machine they...
October 23, 2002 at 4:27 am
What version of SQL Server are you running?
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
October 22, 2002 at 8:11 pm
From what you state it is best performed at the UPDATE itself in an SP or UPDATE statement. The only CON with a TRIGGER to do this is that it...
October 22, 2002 at 11:44 am
Something like this
SELECT COUNT(DISTINCT SSN) FROM myTbl WHERE Status_ID = 60
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
October 22, 2002 at 11:40 am
Two things.
First take out the ON ERROR RESUME NEXT or at least only use it when you want to trap a specific error and immediately do ON ERROR GOTO 0...
October 22, 2002 at 7:53 am
Check your registration of the server and if using an alias defined in Client Network utility, verify it is correct.
"Don't roll your eyes at me. I will tape them in...
October 22, 2002 at 5:34 am
Sorry you can only do that with dynamic SQL as the string will be passed as '<> B' and not <> 'B'
You could however create several procedures with each having...
October 22, 2002 at 5:33 am
Viewing 15 posts - 4,576 through 4,590 (of 7,429 total)