November 13, 2007 at 3:25 am
Hi,
I have little problem with switch table to partition
when i try :
ALTER TABLE my_table_tmp SWITCH TO my_table PARTITION 1
(just before i switched partition to this table)
i get error :
ALTER TABLE SWITCH statement failed. Check constraints of source table 'my_table_tmp' allow values that are not allowed by range defined by partition 1 on target table 'my_table'
November 13, 2007 at 4:08 am
Hi
staging table should have the same check constraints as the production tabble.
"Keep Trying"
November 13, 2007 at 4:38 am
ok
I resolve the problem, (i dont have any constraints ) but I had to add new one to table_tmp and then switch table
November 13, 2007 at 11:23 pm
Check for the article on data partitioning in the link given below.
Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
March 26, 2017 at 7:43 pm
tklimczak - Tuesday, November 13, 2007 4:38 AMok I resolve the problem, (i dont have any constraints ) but I had to add new one to table_tmp and then switch table
What Constraint you added to your staging table
March 27, 2017 at 7:26 am
Sugesh Kumar - Tuesday, November 13, 2007 11:23 PMCheck for the article on data partitioning in the link given below.http://www.sql-articles.com
Do you have a more specific link to an article on partitioning rather than a generic pointer to some blog?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy