[Tutor] ADO problem

2007-07-16 Thread János Juhász
Hi Tim, thanks your help. It is clear for me now. > From: Tim Golden <[EMAIL PROTECTED]> > Subject: Re: [Tutor] ADO problem > J?nos Juh?sz wrote: > > while not rs.EOF: > > print rs.Fields[0].Value, rs.Fields[1].Value > > rs.MoveNext() > > > >

Re: [Tutor] ADO problem

2007-07-16 Thread Tim Golden
János Juhász wrote: > while not rs.EOF: > print rs.Fields[0].Value, rs.Fields[1].Value > rs.MoveNext() > > It print the next result: > IT (u'\xc1kos Szab\xf3',) > IT (u'Szabolcs K\xe1m\xe1n',) > ... > > So rs.Fields[1] is a tuple. Well, here's the most obvious thing: By the look of it

[Tutor] ADO problem

2007-07-16 Thread János Juhász
Dear All, I have a good sample about using ADO to reach windows active directory. import win32com.client c = win32com.client.Dispatch("ADODB.Connection") c.Open("Provider=ADSDSOObject") rs,rc=c.Execute(""" SELECT name, description, department >From 'LDAP://DC=VELUX, DC=ORG' where objectClas