Call by value and call by reference in procedure and function, with NOCOPY.
Answer / Amit Kumar Chaurasia
In SQL Server, functions and stored procedures can use either call by value or call by reference. However, the concept of pass-by-reference without using NOCOPY is not directly supported in SQL Server.
- Call by Value: When a parameter is passed by value, a copy of the value is created for the function/stored procedure to manipulate. This can be useful for avoiding unintended side effects on the original data.
- Call by Reference (with NOCOPY): In some programming languages like C++, you can use pointers to pass parameters by reference without making a copy of the original data. SQL Server does not support this directly, but you can achieve similar results by using table-valued parameters or output parameters.
| Is This Answer Correct ? | 0 Yes | 0 No |
What part does database design plays a role in performance of an sql server-based application?
Does partitioning ssd reduce performance?
how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration
When do you create cluster and noncluster index?
List down some advantages of sql stored procedure?
How to write a query with a right outer join in ms sql server?
In what sequence sql statement is processed?
What is the use of for clause?
What is coalesce and check constraint in sql server?
Do you know what is similarity and difference between truncate and delete in sql?
How to run sql server 2005 books online on your local system?
What is clustered index
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)