Link to home
Start Free TrialLog in
Avatar of MKItani
MKItani

asked on

using Temporary Table in view+ms sql server 2005

hi all,

I can used TemporaryTable into a view?
I know it is an advanced question so please just who have a serious answer response as usual.

Please advise.

T U a lot
Avatar of mimran18
mimran18
Flag of United Arab Emirates image

Hi ,
     Yes , you can use it.try this.
 
Drop Table #T
GO
Select * into #T from [test]
GO
Drop SYNONYM TT
GO
CREATE SYNONYM TT FOR #T
GO
Drop VIEW TV
GO
CREATE VIEW TV AS SELECT * FROM TT
GO
SELECT * FROM TV

Open in new window


Technically you can use it like this .
But still i did not get the logic of using temporary table in views.

Cheers
ASKER CERTIFIED SOLUTION
Avatar of mimran18
mimran18
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MKItani
MKItani

ASKER

not what i am looking for.