bfeddish
asked on
Allowing user to edit view in SQL Server 2000
I want to have the ability in my application to edit a view. Where can I find where the actual syntax for a view is actually stored in the database? For instance if I have a vew called vwMyNumber which is "select customernumber from customer where Type = 1" I can see the view in sysobjects but where is the actaul command for the view stored?
BTW, this is in SQL 2000. I don't see a slot for that here on EE.
BTW, this is in SQL 2000. I don't see a slot for that here on EE.
sp_helpText 'putyourViewNameHere'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That looks like it. One more question. It seems the text in the view is broken down into several rows in syscomments. Would the best thing be to drop the view and re-created it upon it being changed in the new window I am going to create?