Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-04 Thread Frank Schönheit
Hi Fernand, >> Is your oconn object, by any chance, invalid? > I can Xray it and it shows all details according to the wanted > connection, so ?? > > only passing the password to the com.sun.star.comp.dba.ODatabaseSource > password property works for me I'm clueless than :( Ciao Frank -- OR

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-04 Thread Frank Schönheit
Hi Fernand, > You clueless, thats new for me :-) Damn, that slipped my attention, normally I do not admit that :) > I am still convinced thats your machine knows the Username and > passwords, or your sytem is never asking for it :-) ? If I replace the "getConnection" call to create the connec

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-04 Thread Fernand Vanrie
Frank, You clueless, thats new for me :-) I am still convinced thats your machine knows the Username and passwords, or your sytem is never asking for it :-) ? But wathever i kan keep my users away from the tables, and thats wath count. Thanks again for the interest in my problems. Fernand

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Fernand Vanrie
On 1/10/2010 14:51, Frank Schönheit wrote: Hi Fernand, Are you sure you didn' tryed with user/password before you tryed the activeconnection, because OO remembers the connection made by user/password ? Yes. The code who works but is asking for User and pasdword: Dim aProps(7) as Ne

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Frank Schönheit
Hi Fernand, > Are you sure you didn' tryed with user/password before you tryed the > activeconnection, because OO remembers the connection made by > user/password ? Yes. > The code who works but is asking for User and pasdword: > > > Dim aProps(7) as New com.sun.star.beans.PropertyValu

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Fernand Vanrie
Frank, Found a work around: I now passes the "password" to the com.sun.star.comp.dba.ODatabaseSource password property oDB = CreateUnoService("com.sun.star.sdb.DatabaseContext") oDB.GetByName("mysql_native").password = "mypassword" and the databrowser opens silently with the data init.

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Fernand Vanrie
Frank , Are you sure you didn' tryed with user/password before you tryed the activeconnection, because OO remembers the connection made by user/password ? "stays empty"? If you pass an ActiveConnection to the DSB, then it stays empty, if you don't pass it, then it asks for user/password, an

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Frank Schönheit
Hi Fernand, > Wath i already tryed en yet again tryed > > oDB = CreateUnoService("com.sun.star.sdb.DatabaseContext") > oConn = > oDB.GetByName("mysql_native").GetConnection("username","password") > > Dim aProps(7) as New com.sun.star.beans.PropertyValue > aProps(0).Name

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Fernand Vanrie
Hey Frank , Thanks for the respons: Wath i already tryed en yet again tryed oDB = CreateUnoService("com.sun.star.sdb.DatabaseContext") oConn = oDB.GetByName("mysql_native").GetConnection("username","password") Dim aProps(7) as New com.sun.star.beans.PropertyValue aProps(

Re: [dba-dev] How to pass password when opening DatasourceBrowser

2010-10-01 Thread Frank Schönheit
Hi Fernand, > For opening a DataSourceBrowser I use following code > > Dim aProps(6) as New com.sun.star.beans.PropertyValue > aProps(0).Name = "DataSourceName" > aProps(0).Value = "mysql_native" > aProps(1).Name = "CommandType" > aProps(1).Value = 2 ' 0 = tabel ,