Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to write stored procedure to update the data in 10
tables

Answer Posted / jaipal

CREATE PROCEDURE <<procName>>
(
@param1 varchar(20),
@param2 varchar(20)
)
AS
UPDATE <<tableName1>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2

UPDATE <<tableName1>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2

..
..
..
..

UPDATE <<tableNameN>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a recursive stored procedure in sql server?

1098


How to make a remote connection in a database?

930


Do you have any idea about the tcl commands?

922


How to find the source of a table in sql server?

936


What is RAID? What are the different types of RAID configurations?

1070


What is the recovery model? List the types of recovery model available in sql server?

855


What is SQL Azure Fabric?

108


explain databases and sql server databases architecture? : Sql server database administration

917


Do you know the different ddl commands in sql?

1006


How to create user defined functions with parameters?

1174


Can you explain important index characteristics?

948


What is the difference between for xml raw and for xml auto?

988


What does asynchronous call backs means?

1081


Tell me about normalization in DBMS.

955


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

1917