Response title
This is preview!




cmd> cd C:\AdventNet\ME\Servicedesk\mysql\bin
cmd> mysql.exe -u root -P 33366 servicedesk
To open the ODBC Administrator from the Control Panel:
1.Click Start, point to Settings, and then click Control Panel.
2.On computers running Microsoft Windows 2000 or newer, double-click Administrative Tools, and then double-click Data Sources (ODBC). On computers running older versions of Windows, double-click 32-bit ODBC or ODBC|. ODBC Data Sources Icon The ODBC Data Source Administrator dialog box appears
To add a data source on Windows:
1.Open the ODBC Data Source Administrator.
2.In the ODBC Data Source Administrator dialog box, click Add. The Create New Data Source dialog box appears.
3.Select MySQL ODBC 3.51 Driver, and then click Finish. The MySQL ODBC 3.51 Driver - DSN Configuration dialog box appears.
4.In the Data Source Name box, enter the name of the data source you want to access. It can be any valid name that you choose.
5.In the Description box, enter the description needed for the DSN.
6. For Host or Server Name (or IP) box, enter the name of the MySQL server host that you want to access. By default, it is localhost.
7. In the Database Name box, enter the name of the MySQL database that you want to use as the default database.
8. In the User box, enter your MySQL username (your database user ID).
9. In the Password box, enter your password.
10. In the Port box, enter the port number if it is not the default (3306).
11. In the SQL Command box, you can enter an optional SQL statement that you want to issue automatically after the connection has been established.
Click OK to add this data source.
Note: Upon clicking OK, the Data Sources dialog box appears, and the ODBC Administrator updates the registry formation. The username and connect string that you entered become the default connection values for this data source when you connect to it. You can also test whether your settings are suitable for connecting to the server using the button Test Data Source. This feature is available only for the MyODBC 3.51 driver.
Note: The options listed under Driver Trace Options are disabled (grayed out) unless you are using the debugging version of the driver DLL.
To modify a data source on Windows:
1.Open the ODBC Data Source Administrator. Click the appropriate DSN tab.
2. Select the MySQL data source that you want to modify and then click Configure. The MySQL ODBC 3.51 Driver - DSN Configuration| dialog box appears.
3. Modify the applicable data source fields, and then click OK. When you have finished modifying the information in this dialog box, the ODBC Administrator updates the registry information.
select wo.WORKORDERID 'Request ID',woh.OPERATION, COALESCE((select STATUSNAME from StatusDefinition where wohd.COLUMNNAME = 'STATUSID' and ( wohd.PREV_VALUE = STATUSID) ), (select aau.FIRST_NAME from AaaUser aau where wohd.COLUMNNAME = 'OWNERID' and wohd.PREV_VALUE = aau.USER_ID)) 'Assign From',COALESCE((select STATUSNAME from StatusDefinition where wohd.COLUMNNAME = 'STATUSID' and ( wohd.CURRENT_VALUE = STATUSID) ), (select aau.FIRST_NAME from AaaUser aau where wohd.COLUMNNAME = 'OWNERID' and wohd.CURRENT_VALUE = aau.USER_ID)) 'Assign To' from WorkOrder wo LEFT JOIN WorkOrderHistory woh ON wo.WORKORDERID =
woh.WORKORDERID LEFT JOIN WorkOrderHistoryDiff wohd ON woh.HISTORYID =
wohd.HISTORYID where wohd.COLUMNNAME in ( 'OWNERID' ) order by 1
Hi atiaran,
Please check this Query if this suffice:
select wo.WORKORDERID 'Request ID',woh.OPERATION, COALESCE((select STATUSNAME from StatusDefinition where wohd.COLUMNNAME = 'STATUSID' and ( wohd.PREV_VALUE = STATUSID) ), (select aau.FIRST_NAME from AaaUser aau where wohd.COLUMNNAME = 'OWNERID' and wohd.PREV_VALUE = aau.USER_ID)) 'Assign From',COALESCE((select STATUSNAME from StatusDefinition where wohd.COLUMNNAME = 'STATUSID' and ( wohd.CURRENT_VALUE = STATUSID) ), (select aau.FIRST_NAME from AaaUser aau where wohd.COLUMNNAME = 'OWNERID' and wohd.CURRENT_VALUE = aau.USER_ID)) 'Assign To' from WorkOrder wo LEFT JOIN WorkOrderHistory woh ON wo.WORKORDERID =
woh.WORKORDERID LEFT JOIN WorkOrderHistoryDiff wohd ON woh.HISTORYID =
wohd.HISTORYID where wohd.COLUMNNAME in ( 'OWNERID' ) order by 1
Regards,
Ankit
Use from_unixtime([columnname]/1000) while selecting this field in the database to get external reports.
Hope this helps,
Regards,
Ankit
This will work only if the backend database is MySQL.
If it is MSSQL, you have to use dateadd(s,'CREATEDTIME/1000','01-01-1970')
This will work only if the backend database is MySQL.
If it is MSSQL, you have to use dateadd(s,'CREATEDTIME/1000','01-01-1970')
I attempted a query using that conversion. The error I get is
Incorrect syntax near ')'.
Hi Keith,
The enhancement for the Reports section is under development and will be available in our future updates. As of now you can connect the database using Crystal reports and generate the desired reports. Please send us your contact details to support@servicedeskplus.com and we will send you the details on how to connect to the database and the tables to query for reports.
Hope this helps.
Regards,
Ankit
cmd> cd C:\AdventNet\ME\Servicedesk\mysql\bin
cmd> mysql.exe -u root -P 33366 servicedesk
To open the ODBC Administrator from the Control Panel:
1.Click Start, point to Settings, and then click Control Panel.
2.On computers running Microsoft Windows 2000 or newer, double-click Administrative Tools, and then double-click Data Sources (ODBC). On computers running older versions of Windows, double-click 32-bit ODBC or ODBC|. ODBC Data Sources Icon The ODBC Data Source Administrator dialog box appears
To add a data source on Windows:
1.Open the ODBC Data Source Administrator.
2.In the ODBC Data Source Administrator dialog box, click Add. The Create New Data Source dialog box appears.
3.Select MySQL ODBC 3.51 Driver, and then click Finish. The MySQL ODBC 3.51 Driver - DSN Configuration dialog box appears.
4.In the Data Source Name box, enter the name of the data source you want to access. It can be any valid name that you choose.
5.In the Description box, enter the description needed for the DSN.
6. For Host or Server Name (or IP) box, enter the name of the MySQL server host that you want to access. By default, it is localhost.
7. In the Database Name box, enter the name of the MySQL database that you want to use as the default database.
8. In the User box, enter your MySQL username (your database user ID).
9. In the Password box, enter your password.
10. In the Port box, enter the port number if it is not the default (3306).
11. In the SQL Command box, you can enter an optional SQL statement that you want to issue automatically after the connection has been established.
Click OK to add this data source.
Note: Upon clicking OK, the Data Sources dialog box appears, and the ODBC Administrator updates the registry formation. The username and connect string that you entered become the default connection values for this data source when you connect to it. You can also test whether your settings are suitable for connecting to the server using the button Test Data Source. This feature is available only for the MyODBC 3.51 driver.
Note: The options listed under Driver Trace Options are disabled (grayed out) unless you are using the debugging version of the driver DLL.
To modify a data source on Windows:
1.Open the ODBC Data Source Administrator. Click the appropriate DSN tab.
2. Select the MySQL data source that you want to modify and then click Configure. The MySQL ODBC 3.51 Driver - DSN Configuration| dialog box appears.
3. Modify the applicable data source fields, and then click OK. When you have finished modifying the information in this dialog box, the ODBC Administrator updates the registry information.