마음의 안정을 찾기 위하여 - How to create a database from my program?
2279084
840
952
관리자새글쓰기
태그위치로그방명록
별일없다의 생각
dawnsea's me2day/2010
색상(RGB)코드 추출기(Color...
Connection Generator/2010
최승호PD, '4대강 거짓말 검...
Green Monkey**/2010
Syng의 생각
syng's me2DAY/2010
천재 작곡가 윤일상이 기획,...
엘븐킹's Digital Factory/2010
How to create a database from my program?
Database/InterBase, FireBird | 2009/10/16 09:54

로컬 기반 데이터베이스로 FireBird를 사용하고 있는데, 이게 단점이 프로그램상에서 동적으로 Database생성이 되지 않는다는 것이다. 쩝.... 그래서 비어있는 데이터베이스를 하나 생성한 후에 그걸 리소스에 넣어뒀다가 사용하는 방법밖에는 -,.-;;;;;

젠장.

Firebird doesn't provide a way to create database using SQL. You need to either use the Services API, or external tool. As API for database creation is often not available in libraries, you can call Firebird's isql tool to do it for you.

Let's first do it manually. Run the isql, and then type:

SQL>CREATE DATABASE 'C:\dbases\database.fdb' user 'SYSDBA' password 'masterkey';


That's it. Database is created. Type exit; to leave isql.

To do it from program, you can either feed the text to execute to isql via stdin, or create a small file (ex. create.sql) containing the CREATE DATABASE statement and then invoke isql with -i option:

isql -i create.sql

2009/10/16 09:54 2009/10/16 09:54
Article tag list Go to top
View Comment 2
Trackback URL :: 이 글에는 트랙백을 보낼 수 없습니다
From. 구차니 2009/10/16 13:20
답글달기삭제
Firebird는 첨음 들어봐요 Thunderbird + Firefox 인가요? (약간 농담)
음.. firefox에서 자체 db라고 듣긴 했는데 혹시 그건가요 -ㅁ-!
From. 그리움 2009/10/16 14:37
삭제
http://www.firebirdsql.org/

RDBMS를 지원하기도 하지만, Embeded FireBird를 이용할경우, DLL만 첨부하면 단독 File Base DB로도 활용이 가능합니다.

Linux, Windows, MAC 전부다 지원 가능하구요.

CS방식 개발을 할때는 주로 Mysql을 사용합니다만, Single User용으로 간단한 Application을 개발할때는 FireBird를 사용합니다.

현재까지 몇년째 사용중입니다만, 별 문제를 일으키지 않네요.
PREV : [1] : NEXT
 
 
 
 
: [1][2] : NEXT
«   2024/04   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
전체 (1317)
출판 준비 (0)
My-Pro... (41)
사는 ... (933)
블로그... (22)
My Lib... (32)
게임 ... (23)
개발관... (3)
Smart ... (1)
Delphi (93)
C Builder (0)
Object... (0)
VC, MF... (10)
Window... (1)
Open API (3)
Visual... (0)
Java, JSP (2)
ASP.NET (0)
PHP (5)
Database (12)
리눅스 (29)
Windows (25)
Device... (1)
Embedded (1)
게임 ... (0)
Web Se... (2)
Web, S... (21)
잡다한... (6)
프로젝트 (0)
Personal (0)
대통령... (13)
Link (2)