删除用reference建立的外键
摘要:
由于用reference建立的外键名字不确定,故用以下方法:DECLARE @name VARCHAR(100) SELECT @name =NAME FROM dbo.sysobjects where name like 'FK__Card_Cust__CardN__%' and OBJECTPROPERTY(id, N'IsForeignKey') = 1 exec('Alter Table ... 阅读全文
posted @ 2007-12-27 14:15 优雅小猪 阅读(364) 评论(0) 推荐(0) 编辑