Subject | Re: [firebird-support] Re: FireBird ODBC *Create* string |
---|---|
Author | Venus Software Operations |
Post date | 2004-02-05T08:12:19Z |
Hi Dorin
Thanks for all your troubles.
At 09:15 pm 04/02/2004, you wrote:
localhost/3050:myDB or DEVE1/3050:myDB DEVE1 is the machine name
following is the theoretical code that I have put together as per the class
CreateUserDSN() which should work, and to an extent it does work:
DECLARE INTEGER SQLConfigDataSource IN odbccp32 ;
INTEGER, INTEGER, STRING, STRING
lnSuccess = SQLConfigDataSource(0, 1, "Firebird/Interbase(r) driver", ;
"DSN=C07_VSO3Data_FB" + CHR(0) ;
+ "CharacterSet=NONE" + CHR(0) ;
+ "Client=" + CHR(0) ;
+ "Dbname=C:\vso3\projects\c07\data\vso3.fdb" + CHR(0) ;
+ "Dialect=3" + CHR(0) ;
+ "Driver=C:\WINNT\system32\OdbcJdbc.dll" + CHR(0) ;
+ "JdbcDriver=Iscdbc" + CHR(0) ;
+ "NoWait=N" + CHR(0) ;
+ "Password=masterkey" + CHR(0) ;
+ "QuotedIdentifier=N" + CHR(0) ;
+ "ReadOnly=N" + CHR(0) ;
+ "Role=" + CHR(0) ;
+ "User=SYSDBA" + CHR(0) ;
)
Try this in the command window, what happened for me is that the DSN name
is filled in the ODBC configuration box but none of the other values are
recognized this is still required to be done manually.
Any idea what might be happening or what I am doing wrong?
I tried removing CHR(0)s but that is not the problem and I have run out of
ideas. Just the above 2 statements execute and we can do it programatically.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
venussoftop@...
venussoftop@...
venussoftop@...
venussoftop@...
vso_ad1@...
___________________________________________
Please note: We reserve complete rights for policy changes in the future
and the same will be applicable immediately as and when made. Attachments
may get corrupted before reaching you, in such a situation please let us
know and we will resend you the same at the earliest. We do not take any
responsibility for data loss of any type and kind. Data safety remains the
sole the responsibility of the users of our softwares.
___________________________________________
Internet email confidentiality:
This message may contain information that may be privileged or
confidential. If you are not the addressee nor are you responsible for the
delivery of the message to the addressee indicated in this email, then you
may not copy or deliver this email to anyone and you should notify the
sender by reply email and then destroy this message.
Please reply email immediately to this message with REMOVE in the subject,
if you or your employer do not consent to email of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by my company.
----------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 03/02/2004
[Non-text portions of this message have been removed]
Thanks for all your troubles.
At 09:15 pm 04/02/2004, you wrote:
>assuming that you are using the OdbcJdbc driver fromYes I do. Right now I have it on the local machine so is doru =
><http://www.ibphoenix.com:>http://www.ibphoenix.com:
>"DRIVER={Firebird/InterBase(r)
>driver};UID=SYSDBA;PWD=masterkey;DBNAME=doru/3050:myDB;ROLE=;DIALECT=3;"
>where :
>- doru is the name of the server
>-myDB is the alias name of "someDB" in [alias.conf] file
localhost/3050:myDB or DEVE1/3050:myDB DEVE1 is the machine name
>h = SQLSTRINGCONNECT("DRIVER={Firebird/InterBase(r)Still further I studied the ODCB class that I use to create DSNs, the
>driver};UID=SYSDBA;PWD=masterkey;DBNAME=doru/3050:myDB;")
following is the theoretical code that I have put together as per the class
CreateUserDSN() which should work, and to an extent it does work:
DECLARE INTEGER SQLConfigDataSource IN odbccp32 ;
INTEGER, INTEGER, STRING, STRING
lnSuccess = SQLConfigDataSource(0, 1, "Firebird/Interbase(r) driver", ;
"DSN=C07_VSO3Data_FB" + CHR(0) ;
+ "CharacterSet=NONE" + CHR(0) ;
+ "Client=" + CHR(0) ;
+ "Dbname=C:\vso3\projects\c07\data\vso3.fdb" + CHR(0) ;
+ "Dialect=3" + CHR(0) ;
+ "Driver=C:\WINNT\system32\OdbcJdbc.dll" + CHR(0) ;
+ "JdbcDriver=Iscdbc" + CHR(0) ;
+ "NoWait=N" + CHR(0) ;
+ "Password=masterkey" + CHR(0) ;
+ "QuotedIdentifier=N" + CHR(0) ;
+ "ReadOnly=N" + CHR(0) ;
+ "Role=" + CHR(0) ;
+ "User=SYSDBA" + CHR(0) ;
)
Try this in the command window, what happened for me is that the DSN name
is filled in the ODBC configuration box but none of the other values are
recognized this is still required to be done manually.
Any idea what might be happening or what I am doing wrong?
I tried removing CHR(0)s but that is not the problem and I have run out of
ideas. Just the above 2 statements execute and we can do it programatically.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
venussoftop@...
venussoftop@...
venussoftop@...
venussoftop@...
vso_ad1@...
___________________________________________
Please note: We reserve complete rights for policy changes in the future
and the same will be applicable immediately as and when made. Attachments
may get corrupted before reaching you, in such a situation please let us
know and we will resend you the same at the earliest. We do not take any
responsibility for data loss of any type and kind. Data safety remains the
sole the responsibility of the users of our softwares.
___________________________________________
Internet email confidentiality:
This message may contain information that may be privileged or
confidential. If you are not the addressee nor are you responsible for the
delivery of the message to the addressee indicated in this email, then you
may not copy or deliver this email to anyone and you should notify the
sender by reply email and then destroy this message.
Please reply email immediately to this message with REMOVE in the subject,
if you or your employer do not consent to email of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by my company.
----------
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 03/02/2004
[Non-text portions of this message have been removed]