<html>
<PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040>PostgreSQL ODBC <o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> <o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>Dim cn as Variant<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>Dim sql as String<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>Dim rs as Variant<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>set cn = CreateObject ("ADODB.Connection")<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Open "dsn=PostgreSQL;uid=sak;pwd=sak"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.CursorLocation = 3<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = "create table testm ("<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = sql & "id[char(8),"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN lang=ES-AR style="mso-bidi-font-family: 'Courier New'; mso-ansi-language: ES-AR"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = sql & "nombre[char(20),"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN lang=ES-AR style="mso-bidi-font-family: 'Courier New'; mso-ansi-language: ES-AR"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = sql & "apellido[char(20),"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = sql & "asignatura[char(25)"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>sql = sql & ")"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Execute sql<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.BeginTrans<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Execute "insert into testm values ('val1','val2','val3','val4')"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Execute "insert into testm values ('val1','val2','val3','val4')"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Execute "insert into testm values ('val1','val2','val3','val4')"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Execute "insert into testm values ('val1','val2','val3','val4')"<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.CommitTrans<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>set rs = cn.Execute("select * from testm")<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>do until rs.EOF<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>print rs.EOF<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>rs.MoveNext<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>loop<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>rs.Close<o:p></o:p></FONT></FONT></SPAN></PRE><PRE><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040> </FONT></FONT></SPAN><SPAN style="mso-bidi-font-family: 'Courier New'"><FONT size=2><FONT color=#404040><SPAN style="mso-spacerun: yes"> </SPAN>cn.Close<o:p></o:p></FONT></FONT></SPAN></PRE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
</html><BR><br><addr>------------------------------------------------------------------------<br>
<b><a href=http://free.internet.argentina.com/>Conectate a Internet Gratis de Argentina.Com</a></b><br>
</addr>
<br>
<center>
<a href=http://srvads.argentina.com/bs/adclick.php?n=a84973ad target=_blank>
<img src=http://srvads.argentina.com/bs/adview.php?what=zone:8&n=a84973ad border=0 alt=""></a>
</center>