Solved

Effect on objects then you drop a table?

Posted on 2007-04-03
3
156 Views
Last Modified: 2010-03-19
Hi Experts,
If I drop a table what would happened to the objects (Views, Triggers, Sproc, UDFs) that depends on that table?
I'm working on sql server 2005.

Thx,


0
Comment
Question by:SA4
  • 2
3 Comments
 
LVL 3

Expert Comment

by:cognos79
ID: 18844613
when you try to execute them, they will fail saying: object cannot be found
0
 

Author Comment

by:SA4
ID: 18844629
But will they be droped too. let say if I modify a sproc so it uses another table will it work?
And what about views and UDFs?
0
 
LVL 3

Accepted Solution

by:
cognos79 earned 50 total points
ID: 18844681
they wont get dropped. you might get a warning saying the sprocs, views that depend on tht table will be affected.

if you modify sproc to use another table there shldnt be no problem.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL JOIN 6 39
MSSQL Frequency of Years From Days Field 2 16
sql query Help 12 34
Determine which columns have the exact value 1 24
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now