About 17,300 results
Open links in new tab
  1. sql server - Permission to grant SELECT, UPDATE, DELETE, ALTER …

    Sep 12, 2022 · In SQL Server 2019, I have created a user defined database role MyDbRole. Now I want to grant following permissions to MyDbRole for all tables in the database. CREATE, …

  2. sql server - ALTER TABLE ALTER COLUMN <name> failed because …

    May 27, 2024 · SQL Server 2022 has a new option when creating statistics that can automate this as per the documentation (emphasis mine): AUTO_DROP = { ON | OFF } Applies to: SQL …

  3. sql server - Adding a column to a table if column not exists and fill ...

    Explore related questions sql-server table alter-table See similar questions with these tags.

  4. sql server - How To change the column order? - Database …

    Jan 14, 2018 · ALTER TABLE dbo.Employee DROP COLUMN Name; EXEC sp_rename N'dbo.Employee.Nametmp', N'Name', N'COLUMN'; COMMIT TRANSACTION; This of course …

  5. sql server 2008 - ALTER TABLE CHECK CONSTRAINT - Database ...

    From the Object Explorer in SQL Server, when selecting and scripting a foreign-key constraint, the following code is generated. USE [MyTestDatabase] GO ALTER TABLE [dbo].

  6. sql server - Add autoincrement to existing PK - Database …

    Apr 23, 2017 · ALTER TABLE dbo.ident_test DROP COLUMN id_temp; And finally, reseed the IDENTITY column, so the next record's id will resume after the highest existing number in the …

  7. sql server - How dangerous is granting the ALTER TABLE …

    Apr 14, 2018 · SQL Permission to Truncate Table SQL Server TRUNCATE TABLE permissions The difference between those two answers is the permission granted to the signature-based …

  8. sql server - Can I change table structure in a transaction and then ...

    Can I change table structure in a transaction and then roll it back if there is an error? Ask Question Asked 13 years, 2 months ago Modified 5 years, 4 months ago

  9. sql server - Add DEFAULT to existing column - Database …

    Jun 11, 2012 · In Microsoft SQL server, how can I add/change the default on an existing table column using T-SQL?

  10. Altering nullability of column in SQL Server

    In practice it seems that SQL Server does allow some additional cases beyond that mentioned in the documentation however. As you show in your question ALTER TABLE test ALTER …