May 6, 2011 at 1:08 pm
hey can neone giv me a simple stored procedure syntax where i can change a name for particular id
m all new in this, on d way to learn ASP.net programming.....plz help....
May 6, 2011 at 2:15 pm
Here's a very simple example.
CREATE PROCEDURE update_customername
(
@customer_id int,
@customer_name varchar(25)
)
AS
BEGIN
SET NOCOUNT ON;
UPDATE customers
SET customer_name = @customer_name
WHERE
customer_id = @customer_id
END
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 6, 2011 at 4:06 pm
ohhhh, worked:w00t:...thnx a tonnnn Jack...!!!
i'll b back wid new simple question, though tough for me...
May 7, 2011 at 1:41 pm
Arti Dev.06 (5/6/2011)
ohhhh, worked:w00t:...thnx a tonnnn Jack...!!!i'll b back wid new simple question, though tough for me...
Since you're new to SQL, my recommendation is the you look at an online tutorial such as w3schools.com to learn the basics and then learn how to use "Books Online" which is the free help system that comes with SQL Server.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 9, 2011 at 6:43 am
Thanks Jeff..........
w3schools.com is a grt help.....
May 9, 2011 at 7:37 am
You bet. Just remember that W3Schools teaches "ANSI" SQL which is fairly rudamentary compared to T-SQL which is found in SQL Server. It IS a decent place to start, though.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply