|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VBNET2005 : Manipulating MS Access tabledefinitions in VB.NET -> Create, Copy and Drop Table.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. -- Filip http://www.ww2airborne.net/ Official Site of the 101st Airborne - 463rd PFA skype: airborne463pfa-fiwi ------------------------------------------------- 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: Show quoteHide quote > 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. > > -- > Filip > http://www.ww2airborne.net/ > Official Site of the 101st Airborne - 463rd PFA > skype: airborne463pfa-fiwi > ------------------------------------------------- Try something like this:
Select * INTO Table2 from Table1 where 1 = 2 Screaming Eagles 101 wrote: Show quoteHide quote > 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. > > -- > Filip > http://www.ww2airborne.net/ > Official Site of the 101st Airborne - 463rd PFA > skype: airborne463pfa-fiwi > ------------------------------------------------- Access as database backend is considered obsolete , so i guess that ADOX
is never going to be ported to ADO.NET so i guess you only have 2 options option 1 Set a reference to Adox and use it with COM interop to manipulate an Access database option 2 Use DDL SQL on a command object regards Michel Posseth [MCP] Show quoteHide quote " Screaming Eagles 101" <see_my_site@online.please> schreef in bericht news:KdSdnWYkCKdkAqnYnZ2dnUVZ8qCdnZ2d@scarlet.biz... > 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. > > -- > Filip > http://www.ww2airborne.net/ > Official Site of the 101st Airborne - 463rd PFA > skype: airborne463pfa-fiwi > ------------------------------------------------- > >
how do you use Class to hold global variables?
VB.NET Datagrid with pictures VB equivalent of this C# code Writing Data In Tabular format in Text File. What framework is running in this scenario? Not CLS-compliant warning... Help understanding user created Delegates Arrow on a button control User controls in VS 2005 .NET FrameWork 1.1 Winform DataGrid |
|||||||||||||||||||||||