Smart rename & identity column
Dmitry Gokun
Posts: 19
Hello,
i'm trying to use "smart rename" feature to rename identity column on one of my tables. But that end ups with identity values screwed. However, i can edit generated changes script, add IDENTITY_INSERT statements and so on. But why SQL Prompt cannt do that by itself??
Do you know about this problem and is it planned to be fixed in future versions?
Regards,
Dmitry Gokun.
i'm trying to use "smart rename" feature to rename identity column on one of my tables. But that end ups with identity values screwed. However, i can edit generated changes script, add IDENTITY_INSERT statements and so on. But why SQL Prompt cannt do that by itself??
Do you know about this problem and is it planned to be fixed in future versions?
Regards,
Dmitry Gokun.
Comments
I replicate the issue but it works for me.
What exactly you mean by "identity values screwed"?
Does it breaks the sequence? Or does it tries to reset the identity value?
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Here's sample script which creates table:
After running this, you have two rows in table "Test":
TestId Name
2 Name2
4 Name4
Now, right-click TestId column in SMSS's Object Explorer and "Smart Rename..." it to "Id". After script ran, try selecting from "Test". What you get is:
Id Name
1 Name2
2 Name4
As you can see, values of identity column just renamed are screwed.
Regards,
Dmitry Gokun
Fix is as hard as adding SET IDENTITY_INSERT ON statement to generated script.. It's very frustrating that it makes such a big problem for RedGate to fix.
Sorry that we have overlooked this forum post.
I have recreated your issue, as soon as our Bug Tracking system is back on line, I will check to see what the progress there is on the bug report and seek to update the urgency of this bug report.
Also I will post back and provide an update to you.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
thanks for picking up this ..
Regards,
Dmitry
As a sometimes-frustrated fellow bug-reporter, I've found that if ANYONE posts a reply to the initial post, Red Gate's nightly post-crawler doesn't pick up your post and automatically add it as a case, which WILL get attention.
Thus, if someone replies and you don't get a timely response from Red Gate, either:
Post it again as a new thread, preferably late on Friday as few folks will see it and reply over the weekend. Email RG support directly, referencing the post - they are very responsive to direct approaches. Call the support line, referencing the bug and post.
To NON-RED-GATE posters:
Unless you are offering a SOLUTION, REFRAIN from posting a reply to an INITIAL post reporting a bug! WAIT until Red-Gate has responded, then throw in your two-cents-worth, please...
Decide wisely...
What i do here is simple - we will not buy RedGate's products anymore and i will storngly advise all people i know to do the same. Thanks God, there full set of competitive products on the market.
I've been a user of about 80% of the SQL tools for over 7 years and, yes, there have been some frustrations, but overall, having looked at and evaluated all the competition, Red Gate's tools are IMO, yes IMO, the best value for money and the most comprehensive.
Hope you find support by the other vendors up to your high expectations. I have tools from three other vendors and their support is worse than Red Gate's and their availability, even for a US Company calling a US Vendor, much worse, too.
Enjoy!
Decide wisely...
Sorry for my delay in replying back to you, following my post into this forum topic on the 1st May 2012.
Upon checking our Bug Tracking system, there is an existing Bug Report, SP-3975. My colleague, Anu Deshpande (who originally replied to you on the 31st May 2011), submitted this bug report in early June 2011. Also a support call was created for this forum topic, call reference F0048263.
I can only apologise that the above information was not communicated to you either via the support call or this forum topic.
Unfortunately the bug you have reported to Red Gate in the Smart Rename Feature of SQL Prompt is still unresolved. Therefore I will be requesting that SQL Prompt Product Manager and SQL Project Manager review the Bug Report and generate a fix for this problem.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
I have some good news, a patch has been generated that fixes this issue.
Please download SQL Prompt V6.2.0.125 using this LINK.
Any problems either reply to this forum post, or e-mail support@red-gate.com or submit a new support request via the support PORTAL.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com