Subject | Re: [ib-support] User after creating database? |
---|---|
Author | Jason Wharton |
Post date | 2001-01-20T00:35:15Z |
Have you assigned the ISC_USERNAME and ISC_PASSWORD environment variables?
Create a table while you are at it and then look to see who its owner is.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
Create a table while you are at it and then look to see who its owner is.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: "Brad Pepers" <brad@...>
To: <ib-support@egroups.com>
Sent: Friday, January 19, 2001 3:33 PM
Subject: Re: [ib-support] User after creating database?
> On Friday 19 January 2001 06:58, you wrote:
> > > After using isc_dsql_execute_immediate to create a database,
> > > what user am I logged in as? The API Reference manual says
> > > after the execute immediate of "create database ...", I get
> > > back a connected isc_db_handle as if I had used
> > > isc_attach_database but since I didn't pass any username
> > > information in, who am I logged in as???
> >
> > You cannot create a database without a user/password. Using
> > execute_immediate means that you must have provided that information
> > in the statement itself, so whatever you put in the statement is what
> > you have.
>
> But I don't put anything in! I just do this:
>
> char* command = "create database \"/tmp/test.gdb\"";
> isc_dsql_execute_immediate(status, &db, &tr, 0, command, 3, NULL);
>
> This is what the API Manual says to do in order to create a database and
it
> does create it and leave me connected to it but who am I?
>
> --
> Brad Pepers
> brad@...
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>