473,486 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Extracting from an ADO datasource to Access MDB.

We have the need to extract data from an ADO dataset to an Access MDB. We
have this working be having an empty MDB that we copy and utilize for the
extract. We get errors on an irregular basis. What would be the best
practice to provide this to a user in an MDB format. Is there something
like ADOX in .net? Any ideas?

Thanks,

Byron...
Jan 10 '06 #1
4 1404
Good question, I will get the exact message and post. How do you perform
ADOX like operations in .net like:

Create an empty MDB
Create an Empty table in that MDB.
Create fields for the table.
Set up indexes

I have not found, or have overlooked these features in ADO.NET.

Thanks,

Byron Hopp

"Spam Catcher" <sp**********@rogers.com> wrote in message
news:Xn*********************************@127.0.0.1 ...
"Byron Hopp" <bh***@matrixcomputer.com> wrote in
news:Oo**************@TK2MSFTNGP12.phx.gbl:
We have the need to extract data from an ADO dataset to an Access MDB.
We have this working be having an empty MDB that we copy and utilize
for the extract. We get errors on an irregular basis. What would be
the best practice to provide this to a user in an MDB format. Is
there something like ADOX in .net? Any ideas?

You could use the ADO.NET OLEDB jet driver to access the Access DB in
.NET.

What sort of errors are you getting?

--
Stan Kee (sp**********@rogers.com)

Jan 10 '06 #2
Stan,

Here are the two errors we get when we attempt to extract to an MDB.

Exception of type System.OutOfMemoryException was thrown.

Unspecified Error

Doesn't help much but do you have any ideas?

Thanks,

Byron...

"Spam Catcher" <sp**********@rogers.com> wrote in message
news:Xn*********************************@127.0.0.1 ...
"Byron Hopp" <bh***@matrixcomputer.com> wrote in
news:Oo**************@TK2MSFTNGP12.phx.gbl:
We have the need to extract data from an ADO dataset to an Access MDB.
We have this working be having an empty MDB that we copy and utilize
for the extract. We get errors on an irregular basis. What would be
the best practice to provide this to a user in an MDB format. Is
there something like ADOX in .net? Any ideas?

You could use the ADO.NET OLEDB jet driver to access the Access DB in
.NET.

What sort of errors are you getting?

--
Stan Kee (sp**********@rogers.com)

Jan 10 '06 #3
On Tue, 10 Jan 2006 00:21:06 -0800, "Byron Hopp"
<bh***@matrixcomputer.com> wrote:
Good question, I will get the exact message and post. How do you perform
ADOX like operations in .net like:

Create an empty MDB
Create an Empty table in that MDB.
Create fields for the table.
Set up indexes

I have not found, or have overlooked these features in ADO.NET.

Thanks,

Byron Hopp


[snip]

Byron,

You can use ADODB from within .NET. Just add a reference to the ADODB
dll from the add reference menu item. After doing that you can do the
creation with ADODB. You can also use DAO from .NET in the same way.

I use DAO from .NET to run the compact and repair process from several
..NET app's that use access DBs, although when creating new DBs I just
copy a template.

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 11 '06 #4
On Tue, 10 Jan 2006 00:21:06 -0800, "Byron Hopp" <bh***@matrixcomputer.com> wrote:

¤ Good question, I will get the exact message and post. How do you perform
¤ ADOX like operations in .net like:
¤
¤ Create an empty MDB
¤ Create an Empty table in that MDB.
¤ Create fields for the table.
¤ Set up indexes
¤
¤ I have not found, or have overlooked these features in ADO.NET.
¤

You need ADOX (or DAO) to create an Access database. Of course you could always just start off with
an empty Access database.

For working with Jet objects you can use Jet SQL (DDL and DML):

http://msdn.microsoft.com/library/de.../acfundsql.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Jan 11 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2970
by: Steve | last post by:
Hi, I have a very long string, someting like: DISPLAY=localhost:0.0,FORT_BUFFERED=true, F_ERROPT1=271\,271\,2\,1\,2\,2\,2\,2,G03BASIS=/opt/g03b05/g03/basis,...
2
2620
by: Chris Belcher | last post by:
First some background... The database tracks Action Items assigned to a group of 20 or so managers. Once the assignment is created it is then emailed to each of the managers that are included in...
3
1908
by: Alfred | last post by:
Hi I would like to extract only 15 records at a time from the backend in alfabetic order. Click on a button and then the next 15. Reason data must come over a 56k modem. The data is not...
4
13472
by: Jim Katz | last post by:
I have an application that updates a strongly typed data set at run time. I'd like to dynamically create a table that connects to a run time data table. For displaying the data, this works well. ...
4
1740
by: JeffP | last post by:
datagrid1 has a single column contact I'm getting an invalid datasource at... Me.DataGrid1.DataSource = cmd I don't want to use the methods here, I usually use SQLHelper psuedo code: dim ds...
6
4899
by: rlntemp-gng | last post by:
I need to extract information from some Excel files but am stuck with part of it: As an example, I have the following Excel File that has 3 tabbed sheets: FileName: ...
6
4423
by: Werner | last post by:
Hi, I try to read (and extract) some "self extracting" zipefiles on a Windows system. The standard module zipefile seems not to be able to handle this. False Is there a wrapper or has...
3
4514
by: btuttle | last post by:
Hi all- I have received an Access database from someone who has asked me to retrieve all the photos stored in it (as OLE packages). I came across a post entitled "Extracting OLE to pdf" from March...
2
4692
by: zalek | last post by:
Hello, I wrote a program that is working OK which access DB2 using the following code: String w_conn = "jdbc:db2:DB2MAIN; Class.forName("COM.ibm.db2.jdbc.app.DB2Driver"); Connection db2Conn...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.