Link to home
Start Free TrialLog in
Avatar of bfeddish
bfeddishFlag for United States of America

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.
Avatar of Aneesh
Aneesh
Flag of Canada image

sp_helpText 'putyourViewNameHere'
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada 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 bfeddish

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?