About 1,730,000 results
Open links in new tab
  1. Is it possible to change the datatype of a column in a view?

    Mar 2, 2016 · You can't dictate the data type for the output column of a view. The best you can do is as @buckley suggested - use CAST or CONVERT to force an explicit data type inline in the …

  2. ALTER VIEW (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · 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. …

  3. How To Alter View In SQL Server - DatabaseFAQs.com

    Jan 21, 2025 · You can use the CREATE OR ALTER VIEW statement in SQL Server to alter a view if it already exists in the database, otherwise create a new view with the same set of …

  4. sql server 2008 - Create a new column in a view and assign it a data

    here is my query: CREATE VIEW VIEW2 AS SELECT [Column1], (NULL) AS column2 VARCHAR (10) FROM VIEW1; I get an error in the third line. If I leave the query like this, …

  5. How do you change the datatype of a column in T-SQL Server?

    Mar 9, 2009 · The syntax to modify a column in an existing table in SQL Server (Transact-SQL) is: ALTER TABLE table_name ALTER COLUMN column_name column_type; For example: …

  6. Alter view - SQL Tutorial

    The basic syntax for the ALTER VIEW statement is as follows: ALTER VIEW view_name AS SELECT columns FROM tables WHERE conditions; Here, view_name is the name of the view …

  7. How to Modify or Update Data Type of an Existing Column in SQL Server ...

    Sep 3, 2023 · Here are the steps to change the data type of column using SQL Server Management Studio: In Object Explorer, right-click the table with columns for which you want …

  8. Modify views - SQL Server | Microsoft Learn

    May 10, 2023 · ALTER VIEW can be applied to indexed views; however, ALTER VIEW unconditionally drops all indexes on the view. To execute ALTER VIEW, at a minimum, …

    Missing:

    • Data Type

    Must include:

  9. How can you alter or change the data type of a column in SQL?

    In SQL Server, MySQL, or PostgreSQL databases, the ALTER TABLE ALTER COLUMN statement plays a crucial role in changing the data type of a column in a table. To modify the …

  10. sql server - How do I change the datatype of a newly created column in ...

    Apr 20, 2012 · My question is how do i define the datatype of a new column when creating it? I have tried using convert and cast. ALTER VIEW [dbo].[vtbl_dim_vb] AS. SELECT . …

  11. Some results have been removed
Refresh