Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

Joget requires TCP/IP connection to the database. Please refer to the next section first before starting.

  1. English
    Create a database in SQL Server; name it jwdb (or another preferred database name).
    Thai

    สร้างฐานข้อมูลใน SQL Server ตั้งชื่อเป็น jwdb (หรือชื่อฐานข้อมูลอื่นที่ต้องการ)

  2. Make sure that you grant the intended database user with sufficient access to "jwdb".

  3. Download jwdb-mssql-ddl.sql and load this SQL file to "jwdb". This will populate all necessary Joget table structures into "jwdb".
  4. In joget-installation-directory/wflow/, create a new datasource profile file - app_datasource-mssql.properties.
  5. Open to edit joget-installation-directory/wflow/app_datasource-mssql.properties in text editor and insert contents as shown in Figure 1 below. You may need to edit the configurations (such as datasource URL, database user/password) according to your environment.
  6. Open to edit joget-installation-directory/wflow/app_datasource.properties in text editor and change the content as shown in Figure 2 below. This is to activate the datasource profile named "mssql".
  7. Restart Joget server.

Step 1: Datasource Profile Configurations

Code Block
langxml
workflowDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
workflowUrl=jdbc\:sqlserver\://host\:1433;DatabaseName\=jwdb;SelectMethod\=cursor
workflowUser=username
workflowPassword=password

You may need to change the datasource URL, database user and database user's password accordingly.

Step 2: datasource.properties

Code Block
langxml
currentProfile=mssql

...

  1. Thai

    ตรวจสอบให้แน่ใจว่าคุณให้สิทธิ์ผู้ใช้ฐานข้อมูลด้วยการเข้าถึง "jwdb" ที่เพียงพอ

  2. Start Joget server.

    Thai

    รีสตาร์ทเซิร์ฟเวอร์ Joget

  3. Using the database user credential and database created earlier. Continue on with Setting Up Database.

Enabling TCP/IP on Microsoft SQL Server 2005

In order to connect to the Microsoft SQL Server remotely (such as JDBC datasource), TCP/IP needs to be enabled. This is disabled by default on Microsoft SQL Server 2005 Express edition. TCP/IP may also be manually disabled on other editions of Microsoft SQL Server 2005.

Thai

ขั้นตอนที่ 3: การเปิดใช้งาน TCP / IP บน Microsoft SQL Server 2005


เพื่อเชื่อมต่อกับ Microsoft SQL Server จากระยะไกล (เช่นแหล่งข้อมูล JDBC) จำเป็นต้องเปิดใช้งาน TCP / IP สิ่งนี้ถูกปิดใช้งานโดยค่าเริ่มต้นใน Microsoft SQL Server 2005 Express edition TCP / IP อาจถูกปิดการใช้งานด้วยตนเองใน Microsoft SQL Server 2005 รุ่นอื่น ๆ

To enable TCP/IP on Microsoft SQL Server 2005:

Thai

วิธีเปิดใช้งาน TCP / IP บน Microsoft SQL Server 2005:

  1. In Microsoft SQL Server 2005 -> Configuration Tools, open 'Microsoft SQL Server Configuration Manager'.

    Thai

    ใน Microsoft SQL Server 2005 -> เครื่องมือกำหนดค่าเปิด 'Microsoft SQL Server Configuration Manager'

  2. Expand ‘SQL Server 2005 Network Configuration’ and then click on ‘Protocols for <Instance Name>’.  <Instance Name> is the name of the database instance used by Joget.

    Thai

    ขยาย 'การกำหนดค่าเครือข่าย SQL Server 2005' จากนั้นคลิก ‘โปรโตคอลสำหรับ <ชื่ออินสแตนซ์>’ <ชื่ออินสแตนซ์> เป็นชื่อของอินสแตนซ์ฐานข้อมูลที่ Joget ใช้

  3. Right-click on ‘TCP/IP’ and then click on ‘Enable’. The icon for the protocol will change to show that the protocol is enabled.

    Thai

    คลิกขวาที่ "TCP / IP" จากนั้นคลิกที่ "เปิดใช้งาน" ไอคอนสำหรับโปรโตคอลจะเปลี่ยนเพื่อแสดงว่าเปิดใช้งานโปรโตคอลแล้ว