Managing an MSSQL database
From Novara Support Knowledgebase
Microsoft SQL hosting is available both to *nix and Windows accounts if MS SQL is set up in the system and enabled in the plan. Unlike other SQL databases, MS SQL requires a login to access the MS SQL server. Once you have created a login, you can create databases. To access a database, you need to create DB users.
Contents |
Creating MSSQL Logins
Logins are used to access MS SQL server and to create DB users. You should create as many logins as many users you will have.
To create an MS SQL login, do the following:
1. Select MS SQL in the Databases menu.
2. Click the Add New MS SQL login icon at the bottom of page:
3. Enter login and password into the MS SQL Login Creation Form that shows:
Note: you can change password by clicking the Change icon against the login name in the Controls section.
4. Click the Submit button. 5. Agree to additional charges.
Creating MSSQL Databases
Databases are created under logins and there can be several databases under one login.
To create a MS SQL database, do the following:
1. Select MS SQL DBs in the Databases menu.
2. Click the Add database icon at the bottom of the page that appears.
3. Fill the MSSQL Database Creation form:
4. Click the Submit button
5. Agree to the additional charges..
Important: When MS SQL creates a database, it automatically creates a user with the same name as the login this database was created under.
To delete a database, click the Trash icon against the database name in the Controls section. Deleting a database will delete all its users.
Adding new MSSQL database users:
Users are used to access MS SQL databases. Within a database, one login can be used only by one user. Mind, that the login used to enter the database is already used by you and it can't be used to create a new user on this database. Therefore, when you create a new user to the database, the system will offer you to choose from the logins that aren't used by this database.
To add a new user to individual MS SQL database, do the following:
1. Select MS SQL DBs in the Databases menu.
2. On the page that appears, click the name of existing database or click the Edit icon in the Controls section. The following form will show:
3. At the bottom of the page click Add icon against the Database users field. The following form will appear:
4. Enter user name.
5. Choose login this user will belong to and click Add.
6. Agree to additional charges if any.
Changing MS SQL Database quota
Total quota size is the disk space allocated for the database file and the transaction log file. Database/Transaction Log file quota ratio is the portion of disk space allocated for the database file. If you set the total quota size to 100 MB and the database/transaction log file quota ratio to 40%, then the maximum database file quota is 40 MB and the maximum log file quota is 60 MB. The more dynamic your database is, the bigger transaction log file quota ratio should be.
To change the quota, do the following:
1. Select MS SQL DBs in the Databases menu.
2. On the page that appears click the name of an existing database.
3. On the form that shows, click the Change quota icon against the Database quota field.
4. Enter new database log file ratio and total quota size on the next page:
5. Click Submit.
6. Agree to additional charges if any.
Managing MS SQL databases (MS SQL Manager)
You can manage your MS SQL databases through a web-interface with ASP Enterprise Manager, in your control panel called MS SQL Manager. To set up and launch MS SQL Manager:
1. Select the Domain Settings menu.
2. On the page that appears, click Edit for Web Service.
3. On the Web Options page, enable ASP and ASPNET if they are disabled. Then enable MS SQL Manager at the bottom of the page.
4. Click the Magnifying glass icon that appears to launch MS SQL Manager. You'll be asked to choose the login to connect to your MS SQL databases:
Using mssql enterprise manager on MSSQL server:
Enterprise Manager (Windows hosting accounts only)
You need the following in place before you can upload your MSSQL database to the MSSQL server:
- Static IP address
- MSSQL Database username and password
This can be created in the control panel by clicking on MSSQL Manager in the quick access section. Once you have these you need to contact us so with your static ip address so we can provide you with the necessary access right to the server.
Open Enterprise Manager:
1. It will be under Microsoft SQL server in the application manu in Start/Programs
2. In left hand panel expand tree until you see 'SQL Server Group', right click on this and choose 'New SQL Server Registration'
3. A wizard will now run allowing you to enter the details for the server / database. Click 'Next'.
4. In the next dialogue box enter the name of the SQL Server as provided in your 'account setup complete' e-mail in the 'Available Servers' box and click on the 'Add' button. Click 'Next'.
5. On the 'Connect Using' page select the lower radio button [SQL Server Authentication]. Click 'Next'.
6. Select the upper radio button [Login Automatically] and enter your database username and password. Click 'Next'
7. Select the upper radio button [Add To Existing Group]. Click 'Next'
8. Click 'Finish'
9. The wizard should now connect to our SQL server and show the new server on the left hand pane, when using Enterprise Manager in the future click on this server to connect.
10. Uploading your database
If you have developed your SQL server database locally you can export the database content to your database on our server using Data Transformation Services (DTS).
Enterprise manager includes a wizard to aid you in uploading your database that can be called by clicking on the 'Action' tag in EM, selecting 'All Tasks' and 'Export Data'. The wizard will request the details of your local and the destination servers and transfer the data.







