Collections:
Testing Local Temporary Stored Procedures in SQL Server
Can Another User Execute Your Local Temporary Stored Procedures in SQL Server Transact-SQL?
✍: FYIcenter.com
Can another user execute your local temporary stored procedures? The answer is no.
To test this out, continue with the exercise from the previous tutorial. Keep that user session running and open a new client session with sqlcmd.exe. Then run the tutorial script below:
-- Executing permanent procedure -- created by another user session EXECUTE Hello 'fyicenter.com'; GO Welcome to moc.retneciyf -- Executing local temporary procedure -- created by another user session EXECUTE #Hello 'fyicenter.com'; GO Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure '#Hello'.
⇒ Using User Defined Functions in SQL Server Transact-SQL
⇐ Creating Local Temporary Stored Procedures in SQL Server
2016-12-28, 2848🔥, 0💬
Popular Posts:
How To Convert Binary Strings into Hexadecimal Character Strings in SQL Server? When a query returns...
How To Replace Given Values with NULL using NULLIF() in SQL Server Transact-SQL? Sometime you want t...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
How Many Groups of Data Types in MySQL? MySQL support 3 groups of data types as listed below: String...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...