Skip to content

Microsoft SQL Server (MSSQL) Setup

This guide covers moving your Student Manager data to the Microsoft SQL Server (MSSQL) version, including setting up the DSN, porting your Student Manager data and ACEweb logs to SQL Server, installing or upgrading ACEweb, the template changes MSSQL requires, and common setup issues.

Requirements for Moving to SQL Server

  • SQL Server 2019 or newer.
  • A DSN must be set up on all machines (server and workstations) under the same name (the name is requested during porting).
  • Microsoft SQL Server Management Studio must be installed on at least one machine (preferably the server).
  • New database: the SQL scripts are meant to be run on a new database. If you have previously created the SQL database (e.g. an acewaresm one) and ported data to it, delete the database before you complete the Porting Student Manager Data and Porting ACEweb Logs instructions — or delete all the tables and stored procedures in the existing database.
  • A domain account must be created that has full permissions to the Student Manager folder, db_owner rights to the SQL database, and all relevant permissions on the ACEweb server.

Setting up DSN

The DSN must be set up on the server and all workstations that will access Student Manager.

  1. On 32-bit machines, find Data Sources (ODBC) in Administrative Tools (usually in Control Panel). On 64-bit machines, open C:\Windows\SysWow64\odbcad32.exe.
  2. Go to the System DSN tab.
  3. Click Add.
  4. Choose ODBC Driver 17 for SQL Server and click Finish. Do NOT use another SQL driver — they are not compatible with the Student Manager data.

If you don't see the ODBC Driver 17 for SQL Server option, you can download the driver from the Microsoft site ↗️, and install it before completing these steps.

Create a new data source

  1. Give the DSN a name (acewaresm is recommended) that will be used by all users. Select the SQL Server you want to connect to, then click Next.

Name the DSN and select the server

  1. Choose the With Integrated Windows authentication method and click Next.

Integrated Windows authentication

  1. Check the box to Change the default database and enter the SQL database name. Again, we recommend acewaresm. Note that this has nothing to do with the DSN name; it is simply simpler to use the same name in both cases. Leave the other settings and click Next.

Change the default database

  1. On the last screen, click Finish.

Finish the DSN wizard

  1. You should then get a confirmation dialog:

DSN configuration summary

  1. Click OK to create the DSN and exit.

Test the SQL Connection

If you want to test it first, you need to temporarily disable the default database (since it doesn't exist yet and will cause the test to fail). Click Cancel, go back one screen, and clear the check box:

Clear the default database check box to test

Then click Next, Finish, Test Data Source. You should see TESTS COMPLETED SUCCESSFULLY.

If the test fails, recheck your settings, consulting with your technician if necessary.

And don't forget to re-enable the default database before exiting.

Porting Student Manager Data to SQL Server

Porting Data Files

You will need to obtain a copy of the upsizingwizard.zip from your ACEware technician before completing these steps. Files in the zip should be places in your Student Manager directory (e.g. c:\manager8\ folder)

We recommend you back up your data to an external location, though this is not absolutely necessary as the routine will create a local backup as it goes.

  1. Get everyone out of Student Manager.
  2. Run the vfptosql.exe program.
  3. The wizard should come up with acewaresm specified by default as the Database to Upsize. If it does not, click Open, navigate to the UPSIZED folder, and select acewaresm.dbc:

Select the database to upsize

  1. Click Next.
  2. Choose ODBC and choose Generate SQL connection string. Then select the Server name and check Use trusted connection:

Generate SQL connection string

  1. Click Next.
  2. Select a new database and give it the name acewaresm (or the name you used when setting up the DSN):

Create a new database

  1. Click Next.

  2. You should not need to change anything on steps 4 and 5 of the Upsizing Wizard. Just click Next on both steps.

Upsizing Wizard step 4

Upsizing Wizard step 5

  1. Click the Finish button.

Upsizing Wizard step 6

  1. If you get a message that the Upsizing Wizard was unable to upsize data using the bulk insert technique, click Yes so it uses the fast export method instead.

Bulk insert message

  1. The application will notify you when the upsizing is complete. Click OK to close the notification.

Fast export method

  1. Specify the name of your DSN when prompted.

Specify the DSN name

Porting ACEweb Logs to SQL Server

ACEweb users should continue on with the ACEweb Upsizer.

The File Location is optional. If you do not use ACEweb, or do not plan to use ACEweb, just click Exit. Otherwise, click the Go button to add the necessary ACEweb tables.

ACEweb Upsizer

Installing ACEweb SQL Version on a New Server

If you are installing on a new server, obtain the SQL install file from your ACEware technician and install ACEweb.

Upgrading Current ACEweb Install to SQL Version

If you are upgrading a current ACEweb install, upgrade, obtain the SQL version update file and follow the steps to upgrade to it before continuing these steps.

Registering the aw4.exe

After applying the SQL version upgrade, you must register the new aw4.exe. Open a command prompt window, navigate to the inetpub\aceweb folder, then register aw4.exe, e.g.:

Register aw4.exe

DCOM Configuration

You may need to edit the properties of the new aw4.acewebserver. See the DCOM Settings section of the ACEweb Mode Setup topic for more information.

Web.config and ACEweb.ini Changes

  1. Edit the web.config in the inetpub\wwwroot\wconnect folder and make the following changes:

    • Change the ComServerProgId setting to aw4.AceWebServer.
    • Change the ExeFile setting to point to aw4.exe.
    • Change the UpdateFile setting to point to aw4.exe.

    Web.config Changes

  2. Make the following changes in the ACEweb.ini (in inetpub\aceweb):

    • Enter the ODBC Data Source Name in the Sqlconnectstring in the [Main] and [AceCode] sections. This is the name entered in step 5 of the Setting up DSN section. For example: `Sqlconnectstring=acewaresm'.
    • Set the DebugFlag setting to TABLE: (if it's not already set).
    • If you have not already enabled admin error emails: turn on the AdminSendErrorEMail INI setting, enter the email server in AdminMailServer, and an email in AdminEmail.
    • Update Datapath, and PccPath if necessary, to the Student Manager directory. This is only necessary if you have moved your Student manager folder.

Set Application Pool Identity

You must set the Application Pool to a user that has rights to access the SQL database.

WARNING

You cannot run the SQL version under the SYSTEM account. It must run under a specific domain account. See the permissions topic for more information.

Load the COM Server

  1. Go to the admin.aspx page and click the Web Connection MOdule Administration link.
  2. Click the Unload Com Servers link, then the Load Servers link.

You should now see the aw4.acewebserver COM Server(s) running.

SQL COM Servers Running

ACEweb Template Changes

Some template changes may need to be applied to run the SQL version. Run the FileManager.awp tool to see what templates may need to be updated.

Maxlength on Fields

SQL won't truncate values. If a user tries to enter a value longer than the field length (e.g. a city longer than 20 characters), they will get this error on submit:

[SQL Server]String or binary data would be truncated. [1526:8152]

To avoid the error, fields on all templates that submit data to the SQL tables must have a maxlength set to the maximum length of the field. This applies to the following main templates: Attachments.awp, Attendtrack.awp, ChangePwd.htm, CourseProposal.awp, Credentials.awp, CustomRegister.htm, Gradebook.awp, Person.awp, Proxyreg.awp, Register.htm, Xperson.awp.

You can get updated templates (with maxlength values set) via the File Manager tool.

Re-apply Customization

If you need updated templates, you will need to re-apply any customization to the new template.

This also applies to any custom express registration and data capture templates in use, and to any nameudfs fields used on person.awp and proxreg.awp. If you are adding fields to those templates, ensure they have the correct maxlength value set.

Custom Routines

  • Any custom routines or templates you have ordered will need to be reviewed and updated for SQL.
  • Any Express Registration templates you are using must be reviewed for SQL compatibility.

Please contact your ACEware technician for help with the review.

Compile Framework Pages

Once you have all template updates in place, you must recompile your .awp type templates. Run the AWP Compiler and click the All Templates button to recompile all .awp templates.

Alternate Interfaces Using Different SQL Database

If your alternate interface uses a different database than the main interface, you must set the AlternateSQL to ON in the alternate interface's ini setting file (e.g. awp1.ini).

Setup Issues

These are the most common SQL setup issues:

Cocreate Instance Error When Loading Servers

If you get Cocreate Instance COM errors when trying to load the servers:

  1. Go to Control Panel > Administrative Tools > Component Services.
  2. Expand Computers > My Computer > DCOM Config.
  3. Find the aw4.AceWebServer item, right-click it, and choose Properties.
  4. Open the Security tab.
  5. Select the Customize option in the Launch and Activation Permissions section, then click Edit.
  6. Select the user with rights to ACEweb, then verify the Local Launch and Local Activation boxes are checked.

Common setup issues

  1. Click OK, then click OK on the Properties window.
  2. Close the Component Services window.
  3. Open a command prompt and reset IIS.

DCOM Config launch and activation permissions

The Unknown Member oData error is a general symptom of a failed connection between ACEweb and the SQL database. Check the following:

  • Missing/invalid SQL connection string in ACEweb.ini — make sure you have the correct connection string entered in the SQLConnectString INI setting.

  • Improperly set up DSN — make sure you set up the DSN properly on all machines accessing the SQL database. See the Setting up DSN section for more information.

  • Make sure all the ACEweb log files were created during the port. This is the list of required ACEweb log files:

    Required ACEweb log files

    If you are missing any table, you can run ACEweb.sql within SQL Server Management Studio to create them.

  • Make sure the account you are running ACEweb under has db_owner rights to the SQL database. This is the account the Application Pool is running under.

    db_owner rights on the SQL database

Can't find a topic? Email us and we'll help you find what you need.

Can't find a topic? Email us and we'll help you find what you need.