SocketException ?
Posted: Tue 13 Dec 2005 11:15
I show my code first:
q.sql.text := 'select * from table1';
q.open;
while not q.eof do begin
q1.sql.text := 'insert into table2 (.....) ' +
'values (...)'; // values from q
q1.execute;
q.next;
end;
record in q is about 3000 records.
When i run this code, It shown error:
SOCKETEXCEPTION WITH MESSAGE ""
then shown again
CANNOT CONNECT TO SQL SERVER DURING QUERY....
then shown again
ASSERTION FAILURE (...\mydac\source\viotcp.pas)
This produce error not in a certain record. For first run it may raise error at 100th record, for second run it raise error at 105th record
Is my socket connection error? Tmyconnection is use myTCP Protocol
In my another project with looping for 5000 records, this similar code didn't raise error.
I use mydac 3.55
Please Help, Guys !
q.sql.text := 'select * from table1';
q.open;
while not q.eof do begin
q1.sql.text := 'insert into table2 (.....) ' +
'values (...)'; // values from q
q1.execute;
q.next;
end;
record in q is about 3000 records.
When i run this code, It shown error:
SOCKETEXCEPTION WITH MESSAGE ""
then shown again
CANNOT CONNECT TO SQL SERVER DURING QUERY....
then shown again
ASSERTION FAILURE (...\mydac\source\viotcp.pas)
This produce error not in a certain record. For first run it may raise error at 100th record, for second run it raise error at 105th record
Is my socket connection error? Tmyconnection is use myTCP Protocol
In my another project with looping for 5000 records, this similar code didn't raise error.
I use mydac 3.55
Please Help, Guys !