From: | 2000 Informática <2000info(at)netsite(dot)com(dot)br> |
---|---|
To: | "pgsql Roberto Mello" <rmello(at)cc(dot)usu(dot)edu>, "PG SQL Mailim" <pgsql-sql(at)postgresql(dot)org> |
Subject: | ADO with postgreSQL |
Date: | 2002-10-15 19:40:43 |
Message-ID: | 001c01c27482$ffc84280001c01c27482$ffc84280$0100a8c0@Info2000.com.br00a8c0@Info2000.com.br |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi,
Thank you for the previous help (INNER BETWEN MORE THAN ONE DATABASES).
In the Visual Basic 6.0:
Dim dbConn as Connection, rs as recordset, strSQL as string, strConn as string
strConn = "Provider=MSDASQL.1;Extended Properties=""DRIVER={PostgreSQL};DATABASE=MyDataBase;SERVER=MyServer;PORT=5432;ReadOnly=0;Protocol=6.4"""
set dbConn = new connection
dbConn.CursorLocation = adUseServer
dbConn.Open strConn, "MyUser", "MyPasswd"
strSQL = "select * from table1 where id = 1234"
set rs = new recordset
rs.open strSQL, dbConn, adOpenDynamic, adLockBatchOptimistic
In table1 the field 'field1' is of type 'money'
The next command
rs!field1 = ccur(form1.field1.text)
rs.update
cause the following message:
ERROR: Attribute 'field1' is of the tupe 'money' but expression is of type 'float8'.
You will need to rewrite or cast the expression.
My PostgreSQL version is 7.1.
How I do to work in 'ODBC ambient' with no large changes ?
Silvio
2000Info
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-10-15 21:06:58 | Re: int id's helpful for indexing, or just use text names? |
Previous Message | george young | 2002-10-15 19:16:47 | int id's helpful for indexing, or just use text names? |