skip to main | skip to sidebar

I hear C#, I see C#, I do .Net

Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Friday, July 20, 2007

EXECUTE AS clause (TSQL)

"By specifying the context in which the module is executed, you can control which user account the SQL Server 2005 Database Engine uses to validate permissions on objects that are referenced by the module." - BOL

The Options

{ EXEC | EXECUTE } AS { CALLER | SELF | OWNER | 'user_name' }

This applies to create procedure statement:

CREATE { PROC | PROCEDURE } [schema_name.] procedure_name [ ; number ] 
    [ { @parameter [ type_schema_name. ] data_type }
        [ VARYING ] [ = default ] [ OUT | OUTPUT ]
    ] [ ,...n ]
[ WITH <procedure_option> [ ,...n ] ]
[ FOR REPLICATION ]
AS { <sql_statement> [;][ ...n ] | <method_specifier> }
[;]
<procedure_option> ::=
    [ ENCRYPTION ]
    [ RECOMPILE ]
    [ EXECUTE_AS_Clause ]
Posted by petar at 1:09 PM No comments:
Labels: SQL

Thursday, July 19, 2007

SQL 2000->2005 migration

Breaking Changes to Database Engine Features in SQL Server 2005

Behavior Changes to Database Engine Features in SQL Server 2005
Posted by petar at 10:13 AM No comments:
Labels: SQL
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2007 (12)
    • ▼  December (2)
      • Anatomy Of Lambda Expressions in C# - for beginners
      • Anatomy Of Lambda Expressions in C# - for beginners
    • ►  July (3)
    • ►  June (5)
    • ►  February (2)

About Me

My photo
petar
View my complete profile

What I am reading..