已答复 unmanaged c++ and SqlServer PowerShell

  • יום שני 07 מאי 2012 21:06
     
     
    I'm working on a large unmanaged c++ app that relies heavily on sqlserver express. We're using 2008 R2. I understand that DMO has been deprecated and should not be used in new development. Is PowerShell the replacement for DMO? Can it be called from unmanaged code? Thanks, Vince W.

    J. Vincent Weeks

    • הועבר על-ידי Helen Zhao יום חמישי 10 מאי 2012 04:57 (From:Visual C++ General)
    •  

כל התגובות

  • יום שני 07 מאי 2012 22:10
     
     
    What I actually need to do is enumerate the sql server instances of a machine on the local network, once a machine has been selected by a user. I'm not finding an unmanaged alternative to DMO, might a possible workaround be to query the chosen network machine's registry and get the sql server instance name(s)/location(s) from there? What is the official Microsoft recommendation for my situation?

    J. Vincent Weeks


    BTW - I should have edited the original post instead of answering. If that's where those 10 points came from, and anybody's watching, go ahead and take those points away.
    • נערך על-ידי Vince_Weeks יום שני 07 מאי 2012 22:12 answered when I should have edited
    •  
  • יום שני 07 מאי 2012 23:00
     
     
    Visit http://social.msdn.microsoft.com/Forums/en-US/sqlsmoanddmo/threads for replacement of DMO in SQL Server SDK.


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

  • יום חמישי 10 מאי 2012 04:57
     
     

    Hi Vince_Weeks,

    According to your description and Sheng Jiang's reply, I'd like to move this thread to SQL Server SMO/DMO Forum for better support.

    Thanks for your understanding.
    Best regards,


    Helen Zhao [MSFT]
    MSDN Community Support | Feedback to us

  • יום רביעי 16 מאי 2012 07:54
     
     הצעה לתשובה

    Hope this may help you for the solution.

    http://www.eggheadcafe.com/searchform.aspx?search=powershell+api+c%23

    • הוצע כתשובה על-ידי Iric WenModerator יום שני 21 מאי 2012 01:45
    •  
  • יום שישי 01 יוני 2012 20:14
    מנחה דיון
     
     תשובה