Using SQL Serverwith AutoCAD P&ID 2010 - Autodesk

48 downloads 160 Views 511KB Size Report
Using SQL Server with Plant Projects (Vault and non-Vault) ... If you create a project in Autodesk Vault, you must specify an SQL Server database when you ...
Autodesk Plant Solutions

Whitepaper Using SQL Server with Plant Projects (Vault and non-Vault) Introduction AutoCAD Plant 3D and AutoCAD P&ID use a file-based (SQLite) database by default for non-vault projects. If a server-based database is desired for improved multi-user performance and reliability, Microsoft SQL Server (Including Express) can be used (2008 R2 or later). If you create a project in Autodesk Vault, you must specify an SQL Server database when you create the project. You can use the same server instance that Autodesk Vault uses, but the plant project master database is separate from the vault database and can use a different instance or server. This document describes setting up Microsoft SQL Server for a plant project database with additional setup considerations for Autodesk Vault. This document also describes database link files (DLK and DCF).

Product Help This document supplements information that can be found in Product Help: 

Project Maintenance Utility (SQL Server)



Configure SQL Server for Vault Projects



Configure Vault for Plant Projects



SQL Administration Tasks for Autodesk Vault

Install SQL Server SQL Server and SQL Server Express (2008 R2 or later) are supported. To download and install SQL Server Express, refer to the Microsoft web page here: SQL Server Express. Select an installation option that includes the database engine. Autodesk Vault and SQL Server Express: If you do not pre-install SQL Server, SQL Server Express is installed when you install Autodesk Vault Server. For SQL Server Express, there is a limitation of 1024 databases and 4G per database. Because each plant project creates a different database, this limitation does not compete (in size) with the vault or other plant projects. This means that you can create up to approximately 200 projects per SQL Server Express instance in addition to the vault.

Remote Connections You can use SQL Server Configuration Manager to configure remote connections.

www.autodesk.com

1

Creating a Project that uses SQL Server

You can also use SQL Server Configuration Manager to enable TCP/IP protocol.

You may need to change windows firewall settings to allow remote connections.

Add a Named Instance to an Existing SQL Server (Optional) If you have already installed SQL Server and would prefer to create Plant Projects in a separate instance, you can use the Microsoft SQL Server setup to add an additional named instance (for example: PLANTPROJECTS). To add a named instance select Perform a new installation of SQL Server in the Installation Type page of SQL Server setup.

SQL Server Setup – Adding a named instance to an existing database server with the SQL Server installer (setup)

autodesk.com/autocadplant3d

2

Creating a Project that uses SQL Server

Creating a named instance for the plant project database allows you to manage authentication separately. For example, you can specify Windows Authentication for PLANTPROJECTS and use Mixed Mode for AUTODESKVAULT.

Authentication and Roles After you create a plant project database, the plant project database public role is granted Control permission. Control permission is necessary to create tables as you modify project drawings. This escalated requirement for plant project databases may be undesired side-by-side other databases in the instance. For this reason, you may wish to dedicate an instance (or an entirely difference server) for plant project databases.

Project Creation To create a plant project, you need to have Create any Database rights.

SQL Server Management Studio – Login Properties – Securables

The login account creating the master project database must have Create Any Database permission. Autodesk Vault If you are creating a project in the vault, you must belong to a vault group that includes the vault Administrator role.

autodesk.com/autocadplant3d

3

Creating a Project that uses SQL Server

Autodesk Vault - Group Management

Note: Vault user authentication is independent of the SQL Server login authentication used for the plant project database. For more information on Vault user requirements related to plant projects see Configure Vault for Plant Projects.

Database Names Project databases are created for the project and begin with the same prefix. For example:

autodesk.com/autocadplant3d

4

Creating a Project that uses SQL Server

You can also use Microsoft SQL Server Management Studio Express to view the database names. Tip: Type in your project name as your Database Name Prefix. Do not use Generate Name.

Database Link File Plant projects that use SQL Server store database configuration in a data link file. This is an XML file with a DLK extension for vault projects, and a DCF extension for vault projects. If the location of the database changes, you may need to edit this file.

autodesk.com/autocadplant3d

5

Creating a Project that uses SQL Server

DatabaseEngine Autodesk.ProcessPower.DataObjects.DbEngine.PnPMsSQLDbEngine Data Source SERVERNAME\SQLEXPRESS Integrated Security true Initial Catalog DATABASENAME

Autodesk, Inc. 111 McInnis Parkway San Rafael, CA 94903 USA Autodesk [and other products] are either registered trademarks or trademarks of Autodesk, Inc., in the USA and other countries. All other brand names, product names, or trademarks belong to their respective holders. © 2013 Autodesk, Inc. All rights reserved.

autodesk.com/autocadplant3d

6