用dbexpress连接sqlserver数据库
SQLConnection1.Params.clear
SQLConnection1.Params.Values['ServerName'] := '192.168.0.112';
SQLConnection1.Params.Values['Database'] := 'trackData';
SQLConnection1.Params.Values['User_Name'] := 'sa';
SQLConnection1.Params.Values['Password'] := '123456';
SQLConnection1.Open;
好的代码像粥一样,都是用时间熬出来的