摘要: 1. 当需要比较两张数据库之间有类似表结构的所有字段名时可采用下列SQL语句use DB1select * from syscolumns where id = object_id('Table1')use DB2select * from syscolumns where id = object_id('Tabel2')2. 在编写存储过程时,应现判断是否存在同名的存储过程若存在,则删除重新创建,防止出现代码当中执行存储过程时报存储过程已存在错误的问题if exists(select * from sysobjects where id = object_id 阅读全文
posted @ 2013-01-10 18:30 叶一 阅读(349) 评论(0) 推荐(0)