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.
Who is Participating?
Aneesh RetnakaranConnect With a Mentor Database AdministratorCommented:

select Text  from syscomments where id = Object_id('urViewName')
Aneesh RetnakaranDatabase AdministratorCommented:
sp_helpText 'putyourViewNameHere'
bfeddishAuthor Commented:

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?
All Courses

From novice to tech pro — start learning today.