|
|
Create tabledefinitions and drop tables by code
Hi, can anyone help me with the correct statements
to copy a table(design), so a new table with just the skeleton of an
existing table,
and also how to drop an existing table ?
I need this code for use in a VB.NET 2005 program...
Thanks
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
-------------------------------------------------
Earlier request in the dotnet newsgroup :
Do some searches in the comp.databases.ms-access newsgroup for "create
tables." After you have some sample code just add a reference to access
and .Net and you should be set.
Thanks,
Seth Rowe
Screaming Eagles 101 wrote:
> Hi,
>
> I have an Access MDB database with a Table1.
> From VBNET I would like to CREATE a NEW table, which is a copy of
Table1,
> but not with the Data, only the definition.
> I would also like to have the possibility to DROP a table in that
Database.
|
|
0
|
|
|
|
Reply
|
see_my_site (2)
|
10/18/2006 10:05:24 AM |
|
You can drop a table easily by executing the SQL statement "DROP Table
YourTableName".
You can create a table using the SQL command "CREATE TABLE", but JET SQL
doesn't provide a means of creating a new table based on the schema of an
existing table. In VBA or VB 'classic' we would use DAO or ADOX to do
something like that. These are COM components, and you could use them from a
VB.NET app via COM Interop, but I am not at all convinced that this would be
the right way to go in a .NET app. My advise is to try asking again in
another .NET forum. Try microsoft.public.dotnet.framework.adonet.
--
Brendan Reynolds
Access MVP
" Screaming Eagles 101" <see_my_site@online.please> wrote in message
news:25-dnSxXT_z4YajYRVnyjg@scarlet.biz...
> Hi, can anyone help me with the correct statements
> to copy a table(design), so a new table with just the skeleton of an
> existing table,
> and also how to drop an existing table ?
>
> I need this code for use in a VB.NET 2005 program...
>
> Thanks
>
> --
> Filip
> http://www.ww2airborne.net/
> Official Site of the 101st Airborne - 463rd PFA
> skype: airborne463pfa-fiwi
> -------------------------------------------------
>
> Earlier request in the dotnet newsgroup :
>
> Do some searches in the comp.databases.ms-access newsgroup for "create
> tables." After you have some sample code just add a reference to access
> and .Net and you should be set.
>
> Thanks,
>
> Seth Rowe
>
>
> Screaming Eagles 101 wrote:
> > Hi,
> >
> > I have an Access MDB database with a Table1.
> > From VBNET I would like to CREATE a NEW table, which is a copy of
> Table1,
> > but not with the Data, only the definition.
> > I would also like to have the possibility to DROP a table in that
> Database.
>
>
|
|
0
|
|
|
|
Reply
|
Brendan
|
10/18/2006 10:30:55 AM
|
|
|
1 Replies
114 Views
(page loaded in 0.058 seconds)
Similiar Articles: Drag and drop table columns - comp.lang.javascriptUSE MyTest; CREATE TABLE ... creates a unique ... dragtable: drag-and-drop reorderable columns for an HTML table ... Column title of a view Write HTML Code in the Column ... automatic / auto-increment field, without trigger - comp.databases ...if i don't have access to create a trigger, but can add/drop/alter tables. ... if i don't have access to create a trigger, but can add/drop/alter tables. ... to ... code ... X$Proc Error trying to create Stored Procedure in Pervasive SQL V8 ...A "drop table <tablename> " should remove the definition for the table ... get: > > > > ODBC Error: SQLSTATE = S1000, Native error code = 0 > > Unable to open table: X ... table columns not resizable - comp.lang.java.guiHi All, I can make an invisible column visible again using the following code. ... Drag and drop table columns - comp.lang.javascript How to ... How to Freeze Columns in a html table Using Javascript and HTML ...Any body can u please send me a resource or code for implementing the ... How to make a drop shadow for a table or td thru CSS - comp.lang ... How to make a drop shadow for ... How to generate a table with proc means - comp.soft-sys.sas ...Drop down to R implementation of Proc Means in the Data Step ... How ... Percent using proc report - comp.soft-sys.sas proc sql; create table new_file as select code, A ... Dynamically generate textboxes using javascript - comp.lang ...so i want code for displaying textboxes dynamically using javascript ... How to make a drop shadow for a table or td thru CSS - comp.lang ... Dynamically generate textboxes ... How to query when a text field is too big to convert? - comp ...> > Could you post the actual code and the actual error message? That is the actual ... Search ... go drop table ... How to use INSERT INTO Statement in MS Access Database ... Create Loops and variables dynamically - comp.soft-sys.sas ...Not every elegant, but will generate the macro code ... group4var3 group4var4; run; proc sql; create table ... proc transpose data=3Ddriver out=3Dtdriver (drop=3D ... RDDSQL - where to find an example - comp.lang.xharbour... drop table", RDDINFO(RDDI_EXECUTE, "DROP TABLE country") // create table with character fields //? "create table", RDDINFO(RDDI_EXECUTE, "CREATE TABLE country (CODE ... Microsoft Access: Create tabledefinitions and drop tables by code ...database.itags.org: Microsoft Access question: Create tabledefinitions and drop tables by code, created at:Tue, 03 Jun 2008 23:00:00 GMT with 1,095 bytes, last ... VBNET2005 : Manipulating MS Access tabledefinitions in VB.NET ...VBNET2005 : Manipulating MS Access tabledefinitions in VB.NET -> Create, Copy and Drop Table.. ... tables." After you have some sample code just add a reference to access 7/29/2012 4:16:19 AM
|
|
|
|
|
|
|
|
|