跨数据库访问,快速复制表到另一个数据库中
数据库..表名
select * into myteacher from School..TblTeacher
只复制表结构
select * into NewTable from MyTable where 1<>1 (不适用与一些老的不知能的数据库)
select top 0 * into NewTable from MyTable (建议使用)
数据库..表名
select * into myteacher from School..TblTeacher
只复制表结构
select * into NewTable from MyTable where 1<>1 (不适用与一些老的不知能的数据库)
select top 0 * into NewTable from MyTable (建议使用)