Abstract:SAE J1939 protocol is a kind of vehicle network that widely used in heavy vehicles, it defines a large amount of information in detail, the status information of some important electronic control units can be gathered up through analyzing the data message from vehicle. Aiming at the testing requirements for the vehicle manufacturers at the end of production line, a database model is built by using the PowerDesigner tools based on SAE J1939 protocol. A physical database in database management system is generated and the full .NET framework code as the data access layer of the database application system is created using CodeSmith and .Nettiers templates, which can realize the data support to the J1939 protocol in the end-of-line testing system.