April 5, 2007 at 9:00 am
Comments posted here are about the content posted at http://www.sqlservercentral.com/columnists/sLaPlante/2955.asp
April 5, 2007 at 10:28 am
Thanks Steve, this was helpful that you debugged this down to the internal sql code.
Karen Gayda
MCP, MCSD, MCDBA
gaydaware.com
April 26, 2007 at 12:52 am
Refreshingly well written article....but this 'issue' has been present for a very long time (long before SSIS) in Enterprise Manager. You can fall victim to its consequences, no matter how you script your database.
April 26, 2007 at 1:42 am
Hate to think how much coffee and hair pulling it took to weed this out
-------------------------------------------------------------------------
Normal chaos will be resumed as soon as possible. :crazy:
April 26, 2007 at 3:43 am
There are a lot of other erros in this task. Microsoft told us, they will be corrected maybe in SQL2k8. thank you Microsoft!! Very helpful
April 26, 2007 at 7:23 am
GREAT debugging & documentation!
I've seen this happen before in my databases and did narrow it down to renaming. I just try not to rename things in Management Studio anymore. From experience, I found it's more reliable to DROP & CREATE again.
Did you submit this bug to Microsoft?
April 26, 2007 at 7:30 am
Yes, as a premier support customer we opened 2 Calls. They know the error but they won't change it in the next time.
April 26, 2007 at 9:04 am
I've found that this is not the only task that has execution errors. I recently received SSIS training as well, and from a DBA perspective, everything worked great in class. When I got back to the office, the problems began. Specifically, the copy database task and the transfer login tasks did not do what they were supposed to do. I'll post more information when I get the time to gather the results.
Cheers!
April 26, 2007 at 9:38 am
A closely related issue exists with the sp_rename stored proc in SQL 2000. If you use sp_rename to rename a view (which Enterprise Manager and Management Studio seem to do under the covers), the view still retains its old name in syscomments. Scripting that view to a file (using Management Studio or Enterprise Manager) and then running the resulting script file will create the view with its OLD name.
April 26, 2007 at 11:29 am
caveat: Good luck changing a system table in 2005
April 27, 2007 at 12:28 am
Super sleuthing. Thanks.
April 30, 2007 at 12:41 pm
I ran into the same issue using Microsoft's SMO objects in C#. I opened a case with Microsoft and they confirmed that there was a bug. As you discovered, the problem is that when you rename an object whose definition is contained in sys.sql_modules the object gets renamed in sys.objects, but the source code is not modified in sys.sql_modules.
Interestingly, the people responsible for SQL Server Management Studio have "fixed" the problem in their code. Whenever you script a stored procedure through the right-click menus the new (correct) name appears in the script even though the old name appears in the sys.sql_modules record for that stored procedure. Apparently, they rebuild the definition line up to the AS keyword and then concatenate the rest of the script from sys.sql_modules. What a kludge!!!
Why not fix the underlying problem? When you rename an object whose definition appears in sys.sql_modules, replace the old name with the new name in the object definition script in sys.sql_modules!
May 15, 2007 at 9:31 am
From SQL server books online:
http://msdn2.microsoft.com/en-us/library/aa214392(sql.80).aspx
Topic: Modifying and Renaming a Stored Procedure
Note Renaming a stored procedure does not change the name of the stored procedure in the text of the procedure's definition. To change the name of the stored procedure in the definition, modify the stored procedure directly.
November 28, 2007 at 1:10 am
hey that's really great both writer and package :).
I used it and customized according to my needs but one thing where i am going to tuck is how i can transfer Table with all of its elements like defaults,constrains,clustered and nonclustered indexes , primray and without data , how i can generate script for tables this pkg only does for stored procedures and functions i try my best to do it through MS pakage but unable to it its internal bugg .
Reply Soon ,
Thanks in advance;)
April 8, 2008 at 9:22 am
Thanks for the article. I too have wondered about the 'features' that Microsoft has in their SSIS objects. I just completed my first large SSIS project and ran into similar (although different) problems. I had thought about doing an article similar to yours, but you beat me to it.
I agree with your views on how Microsoft could release code for us developers to debug. Makes you really wonder about their QA staff and if they have anybody on the QA side that knows how businesses really operate.
Cheers,
Mike Byrd
Mike Byrd
Viewing 15 posts - 1 through 15 (of 21 total)
You must be logged in to reply to this topic. Login to reply