I have a requirement where I have to change collation of my DB for that I need to drop all the constraints and recreate them after running the collation change script at my DB. May I know how can I generatescript of all constraints of my DB?
Sql – How to generate all constraints scripts
sqlsql-serversql-server-2005sql-server-2008
Related Question
- Sql – How to list all foreign keys referencing a given table in SQL Server
- Sql – Insert results of a stored procedure into a temporary table
- Sql – How to get column names from a table in SQL Server
- Sql – When should I use CROSS APPLY over INNER JOIN
- Sql – How to do an UPDATE statement with JOIN in SQL Server
- Sql – How to UPDATE from a SELECT in SQL Server
- Sql – Finding duplicate values in a SQL table
- Mysql – How to import an SQL file using the command line in MySQL
Best Solution
script to generate all constraints
get all constraints on db then filter on your table