The current info needs to be handled:
Tid: 13.12.2014 01:48:48
what the script contains handling this is:
if isArray (arrString) then
if uBound (arrString) > 0 then
Select Case lcase (arrString(0))
Case "tid": tid = trim (arrString (1)) & ":" & trim (arrString (2)) & ":" & trim (arrString (3))
When inserting with this code:
sql = "INSERT INTO LoginLogg VALUES ('" & tiden & "', '" & brukernavn & "', '" & maskinnavn & "', '" & operativsystem & "', '" & servicepack & "', '" & minne & "', '" & produsent & "', '" & modell & "', '" & bios & " / " & bios2 & "', '"& serienummer & "', '"& printere & "', '"& ipadresse & "', '"& imagedato & "', '" & opplosninger & "')"
This into SQL it returns:
the conversion of a varchar data type to a datetime data type resulted in an out-of-range value errorcode: 80040e07
I cant find the reason why it wont work now. The database was moved from a 2003 to a 2008 R2.
If this would have been powershell i would have been able to solve this but VB isnt my strongest suit.
Updated the title hoping it is more suiting, along with the sql insertion code.