I want to create a view from dynamic tables
Query:
CREATE VIEW dbo.TrialView
AS
SELECT *
FROM (select name from dbo.sysobjects where name like 'scTabForm%' and type='u') p
Output:
Name
scTabForm0
scTabForm1
But I want all the fields from table starts with 'scTabForm'
like: select * from scTabForm0,scTa bForm1,...
Regards
Raabu
Query:
CREATE VIEW dbo.TrialView
AS
SELECT *
FROM (select name from dbo.sysobjects where name like 'scTabForm%' and type='u') p
Output:
Name
scTabForm0
scTabForm1
But I want all the fields from table starts with 'scTabForm'
like: select * from scTabForm0,scTa bForm1,...
Regards
Raabu
Comment