I am trying to get the following stored procedure to work without slowing the database down. Some records in the CallsMade table will have an OutcomeCode of 0, which isn't in the Outcomes table, or a VoiceFileName value of NULL and therefore won't bring back a result when a number is searched...
Hi bborissov,
cheers for that code, I have just given it a quick go but it seems to be locking the database, even when I put in the with (nolock) option. Is there anyway that I could do this without locking the database or am I best just waiting till the systems are offline?
There will be...
I am trying to update a table in our database from information in another table but i need the newer date to stay in the updated table. I have used the following script but it doesn't seem to work please could someone tell me where it is wrong.
UPDATE Prospect
SET LastContactDate = (SELECT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.