Gantt SQL database tree
Creates Gantt tree data from plain database table by grouping; uses AJAX and .NET IDbCommand and IDataReader interfaces
Do not run this file locally!
Run it from your local or remote web http server where is installed IIS and ASP.NET (1.0, 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, ...).
Source files:

GanttTreeDB.html

(this html page),

GanttTreeDef.xml

(static XML layout),

GanttTreeDBData.aspx

(server script generates XML data),

GanttTreeDBUpload.aspx

(server script saves XML data to database),

../Database.db

(source SQL database, table GanttTree)
This example uses

SQLite

../Database.db file as source SQL database. You can switch to

MS Access

MDB database by setting UseMDB property to true in GanttTreeDBData.aspx and GanttTreeDBUpload.aspx.
The MS Access MDB database can be used only in 32bit mode of IIS. Also the ASP.NET service program must have write access to the Database.mdb file.
This example supports also free adding, moving and deleting tasks in tree levels.
The level names are shown in Levels columns. The Levels and ID columns are shown just for debugging.
For more Gantt features see Gantt Local examples or Gantt tutorials. For more ways of database communication see Basic Ajax or Form Submit ASP.NET examples.
IO communication with server and executed SQL commands