The statement can use more than one table and other views. Is the SELECT statement that defines the view. Specifies the actions the view is to perform. For example, if permissions are granted on the SalesOrderID column in a CREATE VIEW statement, an ALTER VIEW statement can name the SalesOrderID column with a different column name, such as OrderRef, and still have the permissions associated with the view using SalesOrderID. In the columns for the view, the permissions for a column name apply across a CREATE VIEW or ALTER VIEW statement, regardless of the source of the underlying data. Syntax for Azure Synapse Analytics and Parallel Data WarehouseĬREATE VIEW view_name ) ] Transact-SQL syntax conventions Syntax - Syntax for SQL Server and Azure SQL DatabaseĬREATE VIEW view_name ) ] To provide a backward compatible interface to emulate a table whose schema has changed. To focus, simplify, and customize the perception each user has of the database.Īs a security mechanism by allowing users to access data through the view, without granting the users permissions to directly access the underlying base tables. For example, a view can be used for the following purposes: Use this statement to create a view of the data in one or more tables in the database. Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW) SQL Endpoint in Microsoft Fabric Warehouse in Microsoft FabricĬreates a virtual table whose contents (columns and rows) are defined by a query.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |