经过测试现在已经通过。使用sqldmo对象实现
对于表格需要屏蔽掉‘go’字符,
对于视图与存储过程则不需要
采用sqldmoserver.databases(newdatabasename).ExecuteImmediate sqlstring 的方法成功。
但没有实现用ado的方法实现