• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How do I make reinstalled MSSQL to load plesk databases

J

JuanT

Guest
How do I make reinstalled MSSQL to associate databases with plesk users

I reinstalled SQL server 2005 on plesk 9.0 because it was not working.
The configuration was lost.

All the databases could be attached from backup to the server but how can I make it associate the databases with the plesk users?

Does anyone know a command to reconfigure mssql 2005 in order to load the database information from plesk users?


Thanx
 
Last edited by a moderator:
Hi,

You can add user to mssql database with mssqlmng.exe utility like this:

mssqlmng.exe --add-user --server="localhost" --login="sa" --password="123qwe" --database="mydomains_" --new-user-login="xoxo" --new-user-password="123qwe"

To get all mssql databases and appropriate database users from Plesk db use this command:

dbclient.exe --direct-sql --sql="select du.login,du.passwd, db.name from db_users du, data_bases db where du.db_id=db.id and db.type='mssql'"
 
Back
Top