Monday, March 19, 2012

DataRecordTypeToBufferType not declared

When I try to use the DataRecordTypeToBufferType and ConvertBufferDataTypeToFitManaged helper functions in my SIS script it tells me they are not defined. According to the doc they are in the Microsoft.SqlServer.Dts.Pipeline namespace, which I have included and the reference is there. It has been a few years since I have worked with visual studio so I am a little rusty, can anyone tell me what I might be missing?

Thanks!
Harry

Harry,

Do you have both the reference and the using or Imports statement?

Are you trying to invoke a static/Shared method from an instance variable? C# should give you a good error for this, and I think VB allows it.

-Doug
|||Harry,

These are protected methods in the namespace. I don't know why they are documented since they can not be used externally. Can you file a doc bug on this. It won't make RTM but hopefully we can get it into a refresh.

Thanks,
Matt