Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Install SMO or Alternative?
Message
De
16/03/2011 10:19:32
 
 
À
15/03/2011 12:45:36
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01503651
Message ID:
01503873
Vues:
33
Well, Bonnie

You definitely have deserved your stars! <vbg>

It works like a charm - can't believe it was so easy.

SMO and its dependencies dlls (see the thread for a list of those) do not need to be installed at all. It looks that the only requirement for this to work is that the dlls are in the same location as the executable using smo.

Thank you so much for your help!



>>
  • First advice the user whats out there.
    >
  • Then have the user decide what to do: Instal new here or use existing
    >
  • Then based on the decicion install smo or have the user even go to the existing sql server (physicly) and continue the install there, then i don't need to install smo (i think it installs with sql, correct?)
    >>
    >>Do you think that approach would be acceptable in a shrink-wrapped environment?

    >
    >I see no problem with that approach.
    >
    >But, rather than require the user to run the app on the existing server machine, here's another thing you can do rather than install SMO:
    >
    >- Change the "Copy Local" for the SMO references. IOW, in the references of your app, right-click on the Microsoft.SqlServer.Smo and choose Properties. Then change "Copy Local" to true (do this with the other Microsoft.SqlServer.* DLLs). The DLLs get included in your bin\debug folder. So, you're actually going to distribute the DLLs with your app. That's probably ok to do, I'm guessing.
    >
    >... and it seems to work ok, I just tested it. Although, to be honest, I didn't actually test it on a machine that doesn't already have SMO installed, so you may want to play with it a bit more.
    >
    >~~Bonnie
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform