1:在sql语句中,临时表有两类,分别是局部(local)和全局(global)临时表,局部临时表只在其会话(事务)中可见,全局临时表可以被会话(事务)中的任何程序或者 模块访问 2:创建局部临时表 use db_sqlserver go create table #db_local_table ( id int, name varchar(50), age int, area int ) use db_sqlserver go create table #db_local_table ( i
█ 启用/关闭Ad Hoc Distributed QueriesAd Hoc Distributed Queries服务默认是关闭的,要使用openrowset 和 openquery访问远程数据库,需要在本地启用该服务 -- 启用 Ad Hoc Distributed Queries reconfigure reconfigure -- 关闭 Ad Hoc Distributed Queries reconfigure reconfigure █openrowset 和 openquery访