Computer Science · Artificial Intelligence
Some Problems of Interaction between Excel and Database
See on the mapAbstract
The method of implementing the interaction between Excel form and SQL Server in ASP.NET is introduced and the source code is provided. The matching and efficiency problems of importing data are solved by using the methods of sqlbulkcopy.ColumnMappings.Add() and sqlbulkcopy.WriteTOServer(),the preprocessing problem of exporting data is solved by adding CSS code and control attributes,and the experiments are done in the example of Hunan province reservoir resettlement database system. The experiments show that the method can solve the problem of interaction between Excel and database well,and has good practicability.