Viewing 15 posts - 20,086 through 20,100 (of 22,202 total)
FYI, this is a repost of another discussion going through the same perambulations over here.
http://www.sqlservercentral.com/Forums/Topic520048-338-1.aspx
June 20, 2008 at 6:27 am
Do you have to have a title? Grand-High-Worshipful-Poobah-and-Support?
Seriously it sounds like you're the "IT Guy." I did that for a time. I wrote WordPerfect macros, designed databases, ran networks, punched...
June 20, 2008 at 6:23 am
It's just a straight-forward cost/benefit analysis along with risk and mitigation. Do you need the new functionality or is it nice to have? You need it. How big is the...
June 20, 2008 at 6:19 am
Everyone has covered it so well up to this point, especially Phil Factor's bit. The one technical thing I would add is that a new DBA must learn the logical...
June 20, 2008 at 5:58 am
From the BOL:
KEY = Lock within an index that protects a range of keys in serializable transactions.
You're locking a range when what you really want is to lock a row.
June 20, 2008 at 5:43 am
Even though GSquared eliminated the cursor, there are still other optimizations pointed out by others that can be done to the proc.
June 20, 2008 at 5:31 am
You're using the parameter twice, once to set & once to search. It can't be done like that. You have to refer to the column twice, but if you have...
June 20, 2008 at 5:28 am
anjan.ashok (6/19/2008)
CREATE PROCEDURE sp_replace_value (
@strcvalue varchar(100),
@strdesc nvarchar(100)
)
as
update testtbl set value=@strconfigvalue,desc=@strconfigdesc where value=@strconfigvalue
here assume we have...
June 19, 2008 at 1:09 pm
You should be able to take the same structures that I supplied and modify it for a different column and/or data type. It all works the same way.
UPDATE table
SET col1...
June 19, 2008 at 11:51 am
This was a cross-post. Answers there too:
http://www.sqlservercentral.com/Forums/Topic520048-338-1.aspx
Please don't cross-post.
June 19, 2008 at 11:38 am
You mean something like this?
CREATE PROCEDURE UpdateEmail
(@OldEmail nvarchar(275)
,@NewEmail nvarchar(275)
AS
BEGIN TRY
UPDATE MyEmail
SET Email = @NewEmail
WHERE Email = @OldEmail
END
BEGIN CATCH
RETURN ERROR_NUMBER();
END
June 19, 2008 at 11:34 am
So much for contacting people.
I'm still baffled. I'm not sure why this is happening like it is. Odd stuff.
June 19, 2008 at 11:10 am
Viewing 15 posts - 20,086 through 20,100 (of 22,202 total)