SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,680 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, could somebody help me to solve, How to load the following data, which got from cpu utilization sql query into new table.
Thanks in advance!
To create a new table:
SELECT TOP(@lastNmin)
SQLProcessUtilization AS [SQLServer_CPU_Utilization],
. . .
into MyNewTable
FROM (SELECT record.value . . .
Use the #MyNewTable name to create a temporary table.
If the table already exists:
insert MyTable
SELECT TOP(@lastNmin)
SQLProcessUtilization AS [SQLServer_CPU_Utilization],
. . .