I am trying to create a View on the database through SAS, SQL passthrough the following way
PROC sql;
CONNECT TO odbc AS myuser(dsn=galaxy);
EXECUTE(
CREATE VIEW DB.SCHEM.table AS
SELECT * FROM connection to myuser;
(SELECT * FROM DB.SCHEM.table2)
)by myuser;
QUIT;
Howeever, I get the following errors
ERROR: CLI prepare error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'select'. : [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ')'.
codeexecute( create View DB.SCHEM.table as select * from DB.SCHEMA.table2codeit gives an error that it doesnt allow specifying the database name as a prefix. - Anandcodeexecute( create View DB.SCHEM.table as select * from DB.SCHEMA.table2codeit gives an error that it doesnt allow specifying the database name as a prefix. - Anand