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
What is the default port for SQL Server over a firewall?
Can we delete data from a view?
What does dml stand for?
What is rolap and its advantage? : sql server analysis services, ssas
What are the Advantages of using CTE in sql server?
How do you open a cluster administrator?
Is port 1433 secure?
you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration
Does group by sort data?
When should you use an instead of trigger?
Explain syntax for viewing trigger?
What is used to replicate sessions between instances in coldfusion clusters?
Where are stored procedures in sql server?
What is isnull() operator?
How to connect to a sql server using odbc_connect()?