Hello guys
I m reading from a text file, and in the same time comparing the read value with predefined values in a DB
From file:
EXTERNAL ALARM
GENERATOR RUNNING KAA
EDL ARSAL FAILURE
Having KAA in my database I want to retrieve the ID of this data
And having ARSAL in my database I want to retrieve the ID of this data
This is a part of my code,
I know that this code sounds erroneous,
I guess the prob is in “%”,
Thx for your help
I m reading from a text file, and in the same time comparing the read value with predefined values in a DB
From file:
EXTERNAL ALARM
GENERATOR RUNNING KAA
EDL ARSAL FAILURE
Having KAA in my database I want to retrieve the ID of this data
And having ARSAL in my database I want to retrieve the ID of this data
This is a part of my code,
I know that this code sounds erroneous,
Code:
Dim sr As New IO.StreamReader(src)
Do While Not sr.Peek = -1
checkStr = sr.ReadLine
cmd.CommandText =select ID from table where name like '%" checkstr & "'"
end while
Thx for your help
Comment