Ярлыки

вторник, 6 июля 2010 г.

Ctime to MS SQL Server data

CTime cur_time = CTime::GetCurrentTime();
query.Format("insert into dbo.models (index_order, mode, time_modify) values ( %d, %d, %s )",
index_order, mode, cur_time.Format( "{ts '%Y-%m-%d %H:%M:%S'}" ));
cdbMyDB.ExecuteSQL(query);

Комментариев нет:

Отправить комментарий