[IronPython] IronPython + Npgsql

Hector Miuler Malpica Gallegos miuler at gmail.com
Mon Apr 4 21:32:08 CEST 2005

Hello friends, I am using Npgsql, from IronPython functions, but I do
not be able optener data of the results, some idea of as I can do it?  

Conn = Npgsql.NpgsqlConnection("Server=;Port=5432;User
Cmd = Npgsql.NpgsqlCommand("select version()", Conn)
Resultado = Cmd.ExecuteScalar()
print Resultado	
Cmd = Npgsql.NpgsqlCommand("select * from clientes;", Conn)
Resultado = Cmd.ExecuteReader()
while (Resultado.Read()):
	print Resultado
	#~ print Resultado[1] # <-- error

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050404/05452ddc/attachment.html>

More information about the Ironpython-users mailing list