I would like to know if there is any command that returns me the script of creating the foreign keys in SQL server, as well as the command sp_helptext I return the creation script of views and stored procedures for example.
Thanks
I would like to know if there is any command that returns me the script of creating the foreign keys in SQL server, as well as the command sp_helptext I return the creation script of views and stored procedures for example.
Thanks
exec sp_helpconstraint <tabela>
will return all dependencies that exist with this table and from that table.