Вниз
Скачать: CL | DM;

SQL Server 2000 и tADOQuery   Найти похожие ветки 

 
Alex Y ©   (2002-06-19 13:04) [0]

Такой вопрос.
Есть таблица в SQL Server 2000.
Пишу:

with tADOQuery.Create(nil) do
begin
Connection := Connect;
SQL.Add("Select Layer From Tbl");
Open; First;
while not Eof do
begin
S := FieldByName("Fld").AsString;
Next;
end;
Close;
end;

Цикл проходит, а на Close выдает ошибку:

Either BOF or EOF if True, or the current record has been deleted. Requested operation requires a current record.

Как лечить?


 
Приятель   (2002-06-19 13:17) [1]

http://delphi.mtu-net.ru/library/index.htm#link12


 
Skrip ©   (2002-06-19 13:21) [2]

http://info.borland.com/devsupport/delphi/mdac26.html



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.007 c
14-47804
Igor_thief
2002-06-16 12:29
2002.07.15
Как отсортировать элементы в ListView по любой колонке? vsReport


1-47519
sdram
2002-07-04 17:28
2002.07.15
есть ли функция проверка преобразования strtoint


1-47479
Alex_E
2002-07-03 18:16
2002.07.15
Удаление с панели задач лишних окон


3-47202
MWM
2002-06-19 18:36
2002.07.15
Редактирование таблицы DBGrid


6-47655
Mikalai
2002-05-06 22:30
2002.07.15
HTTP




   Наверх