p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Knight's 24-Hour Trainer: Microsoft SQL Server 2008 Integration Services (http://p2p.wrox.com/book-knights-24-hour-trainer-microsoft-sql-server-2008-integration-services-515/)
-   -   Chapter 9: Page 63. How to write the code in C# ? (http://p2p.wrox.com/book-knights-24-hour-trainer-microsoft-sql-server-2008-integration-services/87637-chapter-9-page-63-how-write-code-c.html)

niladri May 28th, 2012 10:48 PM

Chapter 9: Page 63. How to write the code in C# ?
 
I use only C#. The example in page 63, is in VB. How do I write the code in C# ?

P.S. if Dts.Variables("intVar").Value > 10 --- shows error.

apratsunrthd January 26th, 2014 09:05 AM

When you first add your script task, set the ScriptLanguage to C#. SSIS won't let you change it once you've set it and clicked OK, so if it doesn't let you change it, delete that task and re-add it, setting it to C# from the start.

NatalyaS August 17th, 2014 06:44 PM

Quote:

Originally Posted by niladri (Post 284343)
I use only C#. The example in page 63, is in VB. How do I write the code in C# ?

P.S. if Dts.Variables("intVar").Value > 10 --- shows error.

You need change the default settings so you would be able to enter the VB code. You can find the details in Ch.9. That's what I did.


All times are GMT -4. The time now is 09:35 AM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.