🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #1042

Re: CREATE DATABASE sql question

#1042
From: Quinn Wildman (CodeGear Develope...
Date: Thu, 25 Jan 2007 00:19
39 lines
2399 bytes
Note that local database access under Vista should work if you run 
InterBase as an application instead of as a service ...

Bob wrote:
> I have a ddl file that I run through IBSql to create my database file.
> 
> The CREATE DATABASE sql that I have been using has worked fine in w2000
> and WinXP, however, now that I am trying to build this database in
> Vista, I am running into some problems.
> 
> My original syntax was as follows.  It would create the database in the
> current folder in which I was running ibsql.
> 
> CREATE DATABASE 'mydatabase.gdb' PAGE_SIZE 8192 USER 'xxx' PASSWORD xxx'
> ;
> 
> 
> Now, under Windows Vista, it seems that you cannot access databases
> directly and that you must specify a server.  So, I added "localHost:"
> to my CREATE database command.
> 
> CREATE DATABASE 'localHost:mydatabase.gdb' PAGE_SIZE 8192 USER 'xxx'
> PASSWORD 'xxx'
> ;
> 
> This works fine, but the database ends up in the C:\Windows folder???
> I can modify this to something like
> 'localHost:D:\somefolder\mydatabase.gdb',  but the way our machines are
> setup, I really need the database created in the "current" folder.
> Which could be different from machine to machine.
> 
> 
> My question.  Is there a way to specify a relative path when using the
> TCP names?  I tried "localHost:.\mydatabase.gdb" but this gave errors.
> 

-- 
CREATE DOMAIN NEW_COMPANY AS CHAR(8) DEFAULT 'CODEGEAR' CHECK (VALUE <> 
'BORLAND') NOT NULL;
Technical Details
Message-ID: <45b7f699$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45b7a9b5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,3f20a4dcf37272c9
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 24 Jan 2007 16:19:06 -0800
From: "Quinn Wildman (CodeGear Developer Support)" <qwildman@nospam.codegear.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.interbase.sql
Subject: Re: CREATE DATABASE sql question
References: <45b7a9b5$1@newsgroups.borland.com>
In-Reply-To: <45b7a9b5$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.143.19.108
Message-ID: <45b7f699$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169684121 10.143.19.108 (24 Jan 2007 16:15:21 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail