1

I have to work with SQLSERVER SMO in C++. Is Managed code is the only way to work with SQLSERVER SMO in C++ ?

I have tried many ways.. but I found that using managed code is the only option. Are there other ways?

Cerebrus
  • 25,615
  • 8
  • 56
  • 70

1 Answers1

0

Technically, you can expose .NET assemblies to standard COM infrastructure, but that requires changes to the source code (see this). You may try and create a COM-aware wrappers around standard SMO objects and then use them as regular COM classes in C++.

Anton Gogolev
  • 113,561
  • 39
  • 200
  • 288