SQL Server Support for Advance Steel

Advance Steel fully supports all editions of SQL Server. This functionality enables workflows that require sharing Advance Steel databases with additional control.

You can configure Advance Steel to have databases centralized and administered in any edition of SQL Server. Advance Steel no longer needs the database files shared across the network and basic functionality is assured with per-user databases permissions.

In addition to SQL Server Express, Advance Steel supports full SQL Server as the centralized database source so that you can use Enterprise SQL Server solutions and not have to share database files across the network.

You can use Advance Steel with full SQL Server for sharing and administering the databases. This includes restricting some users from modifying Advance Steel databases.

You can customize Advance Steel databases using the Management Tools, granted you have db_datawriter and db_owner rights on said databases.

The SQL Server that serves the Advance Steel databases can be used both with integrated security as well as non-domain username and password. The SQL Server can be either SQL Server Express edition, Standard editions or Enterprise edition.

Use the following Microsoft documentation to start configuring your SQL Server:

After configuring the SQL Server instance, the next step is to copy the Advance Steel databases on the server and attach them to the configured instance.

When configuring the Advance Steel databases on an SQL Server instance, give the databases the names of the database files copied from the installation without path and without extension. For example:


Advance Steel requires db_owner rights for most of its databases to be customized, db_datawriter rights are not sufficient. The following functionalities require in addition to read access both db_datawriter and db_owner rights, each on the mentioned databases:
The database rights need to be specified per database and per user. They can be specified for an entire user group, it is not necessary to apply the settings for every individual user.


Note: Forgetting to give a user db_owner rights to one Advance Steel database will often cause the Advance Steel functionalities that require write access to that database to behave as if that particular user has read-only access even if the user has write access to that database.
Important:
Note: The Advance Steel database AstorAddin.mdf is migrated by copying the .mdf file. The correct way to migrate the AstorAddin.mdf database from an SQL Server is to:
  1. Copy the database AstorAddin.mdf file from the server into an installation of Advance Steel.
    Note: This requires temporarily stopping the SQL Service.
  2. Overwrite the local AstorAddin.mdf file with the one from the server.
  3. Perform database migration from this installation of Advance Steel.

The final step is to configure Advance Steel on user machines to use the SQL Server instance.

On user machines, the DatabaseConfiguration.xml file should be modified to specify the SQL Server and the instance name instead of the LocalDB instance.

Another important change to the DatabaseConfiguration.xml file is to change the "AttachDbFileName" specifier to the "Database" specifier for all databases served by the SQL Server.

Below is an example of a connection string for an SQL Server:

<DataSource Name="AstorCurrentAddIn" Value="Server=ServerIPAddressOrName\AdvanceSteel2024;Integrated Security=true;Database=AstorAddIn"/>

For a description of the connection string syntax see Connection String Syntax and for connection string descriptions see SQL Server Connection Strings

Recommendations

Known Limitations

  1. The behavior with read-only rights is not always smooth, sometimes the operation will show as having been completed and the changes have taken effect only to display the previous state or setting. For example, when editing a drawing style, although an error will be logged in database errors and in the command line, the drawing styles manager will erroneously show the addition having taken place. Selecting a different style and coming back to the recently edited drawing style - or closing and opening the drawing styles manager will correctly show that the addition has not been performed.
  2. Management Tools will display the tables as editable even when having read-only access. Changing the values in a read-only table will fail displaying an error.
  3. In bad configurations or when the SQL Server is not reachable, Advance Steel takes several minutes to start.
    Note: In bad configurations involving only the instance name or the names of databases, Advance Steel will fail much faster.
  4. The DbConnDiagnosticsCli tool will not treat connections to SQL Server.