?
Solved

Ask a fundamental question about Script Component

Posted on 2011-02-13
3
Medium Priority
?
557 Views
Last Modified: 2012-05-11
Dear All,

I try to create a very simple script component. When I go to "Script-->Edit Script...", it lauches Visual Studio and automatically creates 1 project with 3 files:


bufferwrapper.cs
componentwrapper.cs
main.cs


It seems only the last file is for me to modify. But even if I directly build this project, I got compilation error, complaining about errors in "bufferwrapper.cs" class, which is so strange... and error is actually here:


    public String class
    {
        get
        {
            return Buffer.GetString(BufferColumnIndexes[20]);
        }
    }

If I change name from "Class" to "Class2", then it's fine.

Could anyone please help?

Thanks heaps in advance!


0
Comment
Question by:chenyuhao88
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
mkobrin earned 1500 total points
ID: 34885704
class is a reserved name in C#, that is why it accepts class2, which is not a reserved name.
0
 

Author Comment

by:chenyuhao88
ID: 34893784
mkobrin,

You answer could be a perfect. But does that mean it is a flaw in SSIS? As the code is auto-generated by Visual Studio, if it's C# then it should not give me such a name by default......


0
 

Author Closing Comment

by:chenyuhao88
ID: 34903619
Thanks a lot!
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question