摘要:
获取数据库中,所有用户表中每一列名和其数据类型。 SELECT OBJECT_NAME(c.OBJECT_ID) AS [Table_Name], c.[name] AS [Column_Name] ,t.[name] AS [Data_Type_Name] FROM sys.columns AS 阅读全文
摘要:
禁用或启用数据库所有触发器。 禁用: use Test Exec sp_msforeachtable "ALTER TABLE ? DISABLE TRIGGER all" GO 启用: use Test Exec sp_msforeachtable "ALTER TABLE ? ENABLE TR 阅读全文