Re: Problem with VB-DirectODBC selecting text-fields [EBEWE: Virus checked]

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Problem with VB-DirectODBC selecting text-fields [EBEWE: Virus checked]
Дата
Msg-id EKEJJICOHDIEMGPNIFIJGEGMHBAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на Problem with VB-DirectODBC selecting text-fields [EBEWE: Virus checked]  (Wolfgang.Fuertbauer@ebewe.com)
Список pgsql-odbc
> -----Original Message-----
> From: Wolfgang.Fuertbauer@ebewe.com
>
> Hi,
>
> i have a problem with the following SQL-Statement:
>
> Select Groessen from Weg where Bsnr = 14957 and Znr = 1 and wegkz = 1;
>
> when executing it via direct-odbc in VB it gives me the error-nr: 3146
>
> the VB-Code:
> ------------
> Set myConn = myWs.OpenConnection("", _
>                             dbDriverNoPrompt, _
>                             False,_
>                             "ODBC;dsn=PostgreSQL;uid=postgres;pwd=;")
> sql = "Select Groessen from Weg where Bsnr = 14957 and Znr = 1 and wegkz =
> 1"
> Set rs = myConn.OpenRecordset(Sql, _
>                          dbOpenSnapshot, _
>                          dbExecDirect, _
>                          dbOptimistic)

How are you creating the myWs ?
Are you setting the DefaultCursorDriver property as dbUseOdbcCursor ?

regards,
Hiroshi Inoue


В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: Re: Psqlodbc 7.1.11
Следующее
От: Gary Stainburn
Дата:
Сообщение: Re: [ADMIN] PHP ODBC conflict