Subject | Re: [ib-support] User after creating database? |
---|---|
Author | Brad Pepers |
Post date | 2001-01-19T22:33:29Z |
On Friday 19 January 2001 06:58, you wrote:
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@...
> > After using isc_dsql_execute_immediate to create a database,But I don't put anything in! I just do this:
> > 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.
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@...