sqlserver

Upload: nikki-roberts

Post on 15-Oct-2015

16 views

Category:

Documents


0 download

DESCRIPTION

41

TRANSCRIPT

  • 5/25/2018 SQLServer

    1/3

    ===================================================================================SQL Server Setup for use with CADWorx Plant, CADWorx Steel CADWorx P&ID, CADWorxIP===================================================================================

    =================================================================================== TABLE OF CONTENTS:================================================================================

    ===A. Steps to perform on the machine where SQL Server is runningB. Steps to perform on all client machinesC. Creating the CADWorx P&ID tablesD. Creating the CADWorx Plant and Steel tablesE. How to view the SQL Server Table using Microsoft Access

    ===================================================================================A. Steps to perform on the machine where SQL Server is running:===================================================================================

    1. Using the Microsoft SQL Enterprise Manger, create a new Database Device to store the data if required. For Example: Project1

    2. Create a new Database to be stored on the device you created. For convince you can name the database the same as the device. For Example: Project1

    3. Grant all logins (users) access to these new databases.

    ===================================================================================

    B. Steps to perform on all client machines:===================================================================================

    1. Start the Data Sources (ODBC) from the Control Panel to setup the SQL Server ODBC Driver.

    2. Hit the Add button, and select "SQL Server".

    3. In the ODBC SQL Server Setup dialog, type in the following:

    For CADWorx Plant the

    Data Source Name: Plant_SQL_SERVER Server: (select the SQL Server you are using) The Data Source Name has to be Plant_SQL_SERVER.

    For CADWorx Steel the Data Source Name: Steel_SQL_SERVER Server: (select the SQL Server you are using) The Data Source Name has to be Steel_SQL_SERVER.

    For CADWorx P&ID the

  • 5/25/2018 SQLServer

    2/3

    Data Source Name: P&ID_SQL_SERVER Server: (select the SQL Server you are using) The Data Source Name has to be P&ID_SQL_SERVER.

    For CADWorx IP the Data Source Name: IP_SQL_SERVER Server: (select the SQL Server you are using) The Data Source Name has to be IP_SQL_SERVER.

    ===================================================================================

    C. Creating the CADWorx P&ID tables:===================================================================================

    1. CADWorx P&ID has a New Project function which will create the tables in the Database specified. When a new project is created, a dialog will ask for the Database Name. For Example: Project1.

    2. The Database name is saved in the Project.cfg which is located in the project directory. Thus, when an AutoCAD Drawing is opened in this directory it will use the same Database Name.

    ===================================================================================D. Creating the CADWorx Plant and Steel tables===================================================================================

    1. CADWorx Plant and Steel tables can be created using the Live Database dialog.===================================================================================E. How to view the SQL Server Table using Microsoft Access:

    ===================================================================================

    1. Start Access and Create a New Database Using "Blank Database".

    2. Select the Create button

    3. Select the "Tables" tab at the top left, and than hit the "New" Button.

    4. Select "Link Table" in the "New Table" dialog box

    5. In the "Link" dialog, go the "Files of Type" box at the

    bottom left and select "ODBC Databases"

    6. In the "Select Data Source" dialog box select the "Machine Data Source" tab and than select "P&ID_SQL_SERVER"

    7. In the "SQL Server Login" dialog, enter your user name and password.

    8. In the "Link Tables" dialog select all the tables that start with "PID_". For example: dbo.PID_Components_Instruemnts.

  • 5/25/2018 SQLServer

    3/3

    There are a total of eleven CADWorx P&ID tables and upto ten CADWorx P&ID user tables.

    9. In the "Select Unique Record Identifier" dialog box, select ID_COUNT_ for all tables.