Lee posted on February 5, 2009 16:03
It's like editing code in the old enterprise manager procedure window

 

Use caution when pasting code in an EXECUTE SQL TASK in SSIS; there is a limit to the number of lines that you can enter. I never knew this until I started putting more and more code in it, only to find out the hard way. What I did was paste code, then if I needed to add more, I'd open it, paste into SSMS, edit, and then paste back into the window. Pasting code into these things should be avoided anyway - use the file connection as the SQLSourceType to maintain a stealthy method for TSQL in your packages. This little window should be used for TSQL such as LINQ should be for accessing data. Small amounts and minimally. Looking at Books Online, I see nothing at all that mentions the size of input into this task. I was happily working away one day and noticed that as fast as I would paste the code it would disappear.

Relying on this task for a lot of TSQL script is like using the old enterprise manager window to write stored procedures. If you recall, the Enterprise Manager in SQL Server 7 and 2000 used to allow you to enter (and edit) code directly in the stored procedure window. This essentially did an ALTER PROCEDURE on the stored proc, and was a quick and dirty way, mostly dirty, to edit code. Unfortunately it wreaked havoc on managing source control, and if you happened to use the date on the procedure, you were disappointed because the ALTER didn't change the datetime stamp that the proc was compiled. Only a DROP and CREATE did. In other words, it was a lousy place to create and edit code...and likewise the EXECUTE SQL Task window.

I pasted some text with a line counter in the window, and here's what I got - I tried to put 1000 lines in there by the way:


execsqltask



---------------------

 

BOL doesn't always have the answers, does it?

 

 


Posted in:   Tags:

Comments


February 7. 2009 02:07
very nice and informative site.. i had a great time reading some of your post.. keep it up and hope to read more great stories ahead.

http://diannekit.blogspot.com/http://diannekit.blogspot.com/


February 8. 2009 21:39
Thanks much Dianne!

http://thisone.com/http://thisone.com/


February 10. 2009 02:56
Thanks for the information, you know the story will help a lot and it will be a reminder for us to read first before doing anything...

http://www.registry2aid.com/Common-Registry-Errors.htmlhttp://www.registry2aid.com/Common-Registry-Errors.html


February 19. 2009 04:35
nice one of a kind technique!

http://www.thepeoplesprogramteam.com/http://www.thepeoplesprogramteam.com/


February 20. 2009 22:39
Yes the copy/paste functionality of Windows is one of the best things going!

http://texastoo.com/http://texastoo.com/


March 3. 2009 03:10
Thanks for this one, keep it up.

http://morvacations.me/http://morvacations.me/


March 13. 2009 04:53
Thanks for this informative post in SQl.. I will study this  cause i think it help a lot for me in programming....Thanks Dude

http://secured-homeowner-loans.info/http://secured-homeowner-loans.info/


April 3. 2009 05:06
Thanks for this great post, hope to read more of your job well done.

http://www.3500club.com/http://www.3500club.com/


April 3. 2009 05:19
The technique is really cool.

http://www.thecashflowopportunity.com/http://www.thecashflowopportunity.com/


April 3. 2009 05:35
Thank you, this is great.

http://www.goodpeoplegive.com/http://www.goodpeoplegive.com/


April 25. 2009 06:26
It's ok... a stepping stone to learn before we maid it perfect! Keep it up... continue learning and teaching to someone else!

http://www.tripleforexprofits.com/http://www.tripleforexprofits.com/

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading




by Lee Everest, M.S.

Search


Ads

Calendar

«  September 2010  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2010 Lee Everest's SQL Server, etc. weblog