Re: Creating tables
From: Peter E.C Dashwood (dashwood_at_enternet.co.nz)
Date: 10/15/04
- Next message: Peter E.C Dashwood: "Re: Computer Statement Usage"
- Previous message: mcintyre: "Cobol/400"
- In reply to: Frederico Fonseca: "Re: Creating tables"
- Next in thread: Frederico Fonseca: "Re: Creating tables"
- Reply: Frederico Fonseca: "Re: Creating tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 16 Oct 2004 02:28:01 +1300
Frederico,
As far as I can tell, it won't do that if you are not using ODBC. (The ODBC
connection decides what SQL is supported...)
See Richard's post in this thread. I believe he is right, but if you have
actually done it, then your straight flush beats our four aces <G>.
My post outlines a way it can be done using DAO and COM/OLE.
Regards,
Pete.
"Frederico Fonseca" <real-email-in-msg-spam@email.com> wrote in message
news:c46om0tkmbivehcgdhr7olf558gd4ksss8@4ax.com...
> On Tue, 12 Oct 2004 11:56:51 +0300, "Dionisis Vrionis"
> <diovr@dksoft.gr> wrote:
>
> >I Have a database named test.mdb without tables.
> >How can i create a table in a database from netcobol.
> >
>
> From MS Acess help
>
> CREATE [TEMPORARY] TABLE table (field1 type [(size)] [NOT NULL] [WITH
> COMPRESSION | WITH COMP] [index1] [, field2 type [(size)] [NOT NULL]
> [index2] [, ...]] [, CONSTRAINT multifieldindex [, ...]])
>
> The CREATE TABLE statement has these parts:
>
> Part Description
> table The name of the table to be created.
> field1, field2 The name of field or fields to be created in the new
> table. You must create at least one field.
> type The data type of field in the new table.
> size The field size in characters (Text and Binary fields only).
> index1, index2 A CONSTRAINT clause defining a single-field index.
> multifieldindex A CONSTRAINT clause defining a multiple-field index.
>
>
> You just issue the correct table statement on a SQL connection and it
> will create the table.
>
>
> Frederico Fonseca
> ema il: frederico_fonseca at syssoft-int.com
>
- Next message: Peter E.C Dashwood: "Re: Computer Statement Usage"
- Previous message: mcintyre: "Cobol/400"
- In reply to: Frederico Fonseca: "Re: Creating tables"
- Next in thread: Frederico Fonseca: "Re: Creating tables"
- Reply: Frederico Fonseca: "Re: Creating tables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|