Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 A question working with sql server 2005

Author  Topic 

dellgx270
Starting Member

6 Posts

Posted - 2009-03-07 : 05:23:46
Write statements to check if the original tables still exist or have been
deleted upon deletion of the view?

I don't understand.

Everybody please for me a Hint.

Thank you very much!




jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2009-03-07 : 06:16:30
Do you mean something like:

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TableName]') AND type in (N'U'))

or are you asking if tables are dropped when a view is dropped ?


Jack Vamvas
--------------------
http://www.ITjobfeed.com
Go to Top of Page

sql_buddy
Starting Member

41 Posts

Posted - 2009-03-07 : 06:36:12
Deletion of View will not affect table
Go to Top of Page

dellgx270
Starting Member

6 Posts

Posted - 2009-03-07 : 06:36:37
Thanks!
Here is topic.
You please download is here
http://www.scribd.com/word/download_preview/13070501?secret_password=2agxqsug7en5x9srnsva
It is sentence 7.

I am from viet nam. Thus syntax sentence can false.
Go to Top of Page

dellgx270
Starting Member

6 Posts

Posted - 2009-03-07 : 06:48:46
quote:
Originally posted by sql_buddy

Deletion of View will not affect table



Thanks.
I learning sql at aptech - viet nam.
It is course train of India at viet nam.

At that time I will need you to help!


Always try for success!
Go to Top of Page
   

- Advertisement -