I have a view that I want to create a table from in SQL Enterprise Manager, but I always get an error when I run this query:
CREATE TABLE A
AS
(SELECT top 1
INSERT INTO table 2
SELECT * FROM table1/view1
If you want to create a new A
you can use INTO
;
select * into A from dbo.myView
Select
MonthEndDate MED,
SUM(GrossBalance/1000000) GrossBalance,
PortfolioRename PR
into
testDynamic
from
Risk_PortfolioOverview
Group By MonthEndDate, PortfolioRename