Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to insert values to the "Time" column of Data Logger
PostPosted: Thu Jul 05, 2018 4:03 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 170

Offline
My task is to move a Data Logger from internal HMI memory (X2Pro) to USB or SD. I made backup of existing database on USB and wrote a script to make records. It works, but there is a problem with the field "Time". It has format DateTime.
How to insert a value into this column?


 Profile  
 
 Post subject: Re: How to insert values to the "Time" column of Data Logger
PostPosted: Wed Jul 18, 2018 2:40 am 

Joined: Fri Jan 27, 2012 4:20 am
Posts: 170

Offline
I found solution. After backing up the internal database to USB memory, it was opened with SQLite Expert and the field "Time" type was changed from datetime to nvarchar.
But, how to insert data to fields with SQL type "datetime" is not yet clear.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: