5 MINUTES to source control your database
Getting Started with Adobe After Effects - Part 6: Motion Blur
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.
Submit a Tip
Loading
RKA
91 · 2% · 598

Learned it

Liked it

Knew it

Did you learn something today? Share It!

Clear data from a table with FOREIGN KEY

Nov 28 2011 5:11AM by RKA   Edit
I was trying to truncate a child table data and got the below error.

'Cannot truncate table <tablename> because it is being referenced by a FOREIGN KEY constraint'

From MSDN found that
"You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY constraint; instead, use DELETE statement without a WHERE clause".
Read More...

0
Liked
0
Learned
0
Knew









Submit
Send to my friends
Subscribe to RKA

     

Subscribe to Notifications

Your Comment


Sign Up or Login to post a comment.

Managed Windows Shared Hosting by OrcsWeb

Copyright © Rivera Informatic Private Ltd.