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 shrink log file?

950


Define ACID properties in a Database?

1102


What is indexing explain it with an example?

1066


What objects does the fn_my_permissions function reports on? : sql server security

1080


What is instead of trigger sql server?

1074


how to invoke a trigger on demand? : Sql server database administration

1140


What is report rendering ?

162


Can foreign key be duplicate?

1116


How to use clusters?

1013


Why is replication required on the sql server?

1104


How to declare and use cursor variables?

1249


Explain isolation levels that sql server supports?

1082


How to delete database objects with "drop" statements in ms sql server?

1147


What is the maximum length of an alert name?

1038


Can we call stored procedure in view in sql server?

937