|
|
|
Create Table in Access
|
|||
|---|---|---|---|
|
#18+
Не получается создать таблицу в созданной бд MS Access. Код С++: strConnection.Format(_T("Driver={Microsoft Access Driver (*.mdb)};Dbq=%s;Uid=;Pwd=;"), BaseName); CString sCreateTableJournal = "CREATE TABLE Journal (RegionIndex int, DataIndex int, Date char(8), Time char(5), CurrentState int, Pressure int, CONSTRAINT Journal_PK PRIMARY KEY (RegionIndex, DataIndex, Date, Time));"; ExecuteSQL(strConnection, sCreateTableJournal); Ошибка: Ошибка синтаксиса при определении поля при выполнении <Driver={Microsoft Access Driver (*.mdb)};Dbq=%s;Uid=;Pwd=;>. Как от этой дурацкой ошибки избавиться? Уже всю голову сломала :(( Help! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.02.2007, 17:49 |
|
||
|
Create Table in Access
|
|||
|---|---|---|---|
|
#18+
Может путь к базе в явном виде прописать. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.02.2007, 19:04 |
|
||
|
Create Table in Access
|
|||
|---|---|---|---|
|
#18+
Код: plaintext ЗЫ. Искать подобную ошибку проще всего методом Больцано-Вейерштрасса (половинного деления). Отсекаешь от SQL часть и смотришь, выполнился ли остаток. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.02.2007, 12:31 |
|
||
|
|

start [/forum/topic.php?fid=57&gotonew=1&tid=2029506]: |
0ms |
get settings: |
6ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
177ms |
get topic data: |
7ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 208ms |
| total: | 451ms |

| 0 / 0 |
