Re: [Brahms-dev-l] database connections

From: flemming videbaek <videbaek@rcf.rhic.bnl.gov>
Date: Mon Mar 22 2004 - 10:45:48 EST
Hi Djamel

All I have to do to get your script to work is to replace the line
mainDb->ConnectToRun() with
mainDb->ConnectToRun("query")
the error disappears and two queries appears.

Which I always have to do anyhow to get most standard scripts to work.
Does this work for you ?

Flemming

----------------------------------------------------------------
Flemming Videbaek
Physics Department
Brookhaven National Laboratory

e-mail: videbaek@bnl.gov
phone: 631-344-4106
----- Original Message ----- 
From: "Djamel Ouerdane" <ouerdane@nbi.dk>
To: "Brahms Devel List" <brahms-dev-l@lists.bnl.gov>
Sent: Monday, March 22, 2004 10:22 AM
Subject: Re: [Brahms-dev-l] database connections


Ok,

Here is a very stupid bratroot script. Stupid because in this small
example, there is no good reason to do things in the way it is done.
But it gives an idea of the issue I'm dealing with.

just run: bratroot -l testdb.C

provided that you have a nice ~/.bratdbrc

(this testdb.C only reads some stuff from the DB).

Djam

-- 
Djamel Ouerdane ------------------------------------------o
|  Niels Bohr Institute      |  Home:                     |
|  Blegdamsvej 17, DK-2100 Ø |  Jagtvej 141 2D,           |
|  Fax: +45 35 32 50 16      |  DK-2200 Copenhagen N      |
|  Tel: +45 35 32 52 69      |  +45 35 86 19 74           |
|                  http://www.nbi.dk/~ouerdane            |
|                  ouerdane@nbi.dk                        |
o---------------------------------------------------------o



----------------------------------------------------------------------------
----


> _______________________________________________
> Brahms-dev-l mailing list
> Brahms-dev-l@lists.bnl.gov
> http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
>


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Mon Mar 22 10:40:15 2004

This archive was generated by hypermail 2.1.8 : Mon Mar 22 2004 - 10:40:33 EST