我尝试使用SYS查询生成50-100个表
SELECT windows_release, windows_service_pack_level,
windows_sku, os_language_version
FROM sys.dm_os_windows_info OPTION (RECOMPILE); -- DE????RSE INSERT ETSIN AYNI ISE DE???MES?N
-- Gives you major OS version, Service Pack, Edition, and language info for the operating system
-- SQL Server Services information (SQL Server 2008 R2 SP1 or greater)
SELECT servicename, startup_type_desc, status_desc,
last_startup_time, service_account, is_clustered, cluster_nodename
FROM sys.dm_server_services OPTION (RECOMPILE);
-- Hardware information from SQL Server 2008
-- (Cannot distinguish between HT and multi-core)
SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread …Run Code Online (Sandbox Code Playgroud) 嗨,我正在尝试使用内部选择语句创建一个表...
例如:
CREATE TABLE JmxMonSer AS (SELECT * FROM services WHERE monitoring_enabled = 1);
Run Code Online (Sandbox Code Playgroud)
但不断收到错误:
关键字"AS",严重级15附近的语法错误
请指教