Viewing 8 posts - 1 through 8 (of 8 total)
So... i manage to add C# function to export decoded *STK file to *CSV file.
And imported in ms sql table...
File:
SQL:
Included *ZIP with stk decoder...
March 24, 2022 at 9:03 am
Ok will check if i can understand Script Component Source thing.
March 22, 2022 at 11:14 am
Ok then i should chek how to parse a text file (*STK) and save to .csv or XML or JSON. Then read those files and write info in DB.
March 22, 2022 at 8:50 am
Yes still struggle to sort this out.
I have made in C# *STK file decoder. It makes table vien in windows form.
namespace STK
{
public...
March 22, 2022 at 8:37 am
BULK INSERT is maybe the option? Found this sample code.
BULK INSERT dbo.personlist
FROM 'c:\source\personlist.csv'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ';', --CSV field delimiter
ROWTERMINATOR = '\n', --Use to shift the control to next row
TABLOCK,
CODEPAGE =...
March 18, 2022 at 9:09 pm
Sample file what i try to read or import.
March 18, 2022 at 8:56 pm
I am so sorry for my bad explanation cuz i am not a programmer.
This is what i got now:
This is result i looking for:
Tryed...
February 9, 2022 at 7:32 am
SELECT
PK_KART
,TIME
,LOG
,TEMP1.FNAME
,TEMP1.LNAME
FROM LOG_DB
LEFT JOIN TEMP1 ON (LOG_DB.LOG LIKE ( '%Receiver:' + CONVERT(nvarchar,TEMP1.ID)))
WHERE TIME between '2020-01-01' and '2022-03-01' and PK_KART = '7151'
ORDER BY TIME...
February 9, 2022 at 7:22 am
Viewing 8 posts - 1 through 8 (of 8 total)