Subject Re: [ib-support] User after creating database?
Author Kyle Green
Probably: SYSDBA/masterkey



At 03:33 PM 1/19/01 -0700, you wrote:
>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
>
>

http://pearz.com : A new, whole-person approach to online dating.