Вниз
Скачать: 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.008 c
1-47273
sibo
2002-06-30 02:12
2002.07.15
Listbox and .txt


1-47589
vlv
2002-06-28 17:20
2002.07.15
Как получить иконку из exe-файла?


1-47244
Locked
2002-06-27 07:26
2002.07.15
Timer


1-47481
MaximatorVeter
2002-07-03 19:15
2002.07.15
Освобождение ресурсов для динамического массива объектов


1-47362
ctapik-net
2002-07-01 15:55
2002.07.15
Убить поток




   Наверх