Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 3rd, 2006, 3:33 PM   #1
Carl
Newbie
 
Join Date: Sep 2004
Location: Chelmsford, Essex, UK
Posts: 28
Rep Power: 0 Carl is on a distinguished road
Send a message via MSN to Carl
Creating an Access Database programmatically...

I've got Visual Studio .NET 2003 and I'm exploring VB at the moment. I haven't used VB since version 4 so you can imagine the uphill struggle I'm facing.

I'm used to using the DAO for data access but now have to use ADO. I've worked out how to open an Access database, but how on earth can I create one in code? Do I have to use SQL as most of the code snippets I've found on the Internet or is there another way?

It's not for a project specifically, just something that I'd like to know how to do.

Carl
__________________
Software developer since 1982, started on a ZX81.
Been developing in Delphi since 1998.
Currently trying to get my head round C++.
Carl is offline   Reply With Quote
Old Jun 3rd, 2006, 6:19 PM   #2
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Carl
Do I have to use SQL as most of the code snippets I've found on the Internet or is there another way?
I believe so. However, I don't believe you can (easily) create the database. However, you can add tables to it, so you could start with an empty database, and essentially build it in code. I think you'd be stuck with SQL, but why is that a problem?
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jun 4th, 2006, 7:12 AM   #3
Carl
Newbie
 
Join Date: Sep 2004
Location: Chelmsford, Essex, UK
Posts: 28
Rep Power: 0 Carl is on a distinguished road
Send a message via MSN to Carl
Quote:
Originally Posted by lectricpharaoh
I think you'd be stuck with SQL, but why is that a problem?
It's not really a problem, I just wondered if there was another way to do it. I've been doing a few google searches on DAO to ADO conversion. I tried opening a VB4 project in to 2003, but it said that the project is not a valid VB6 project. Guess I can't do from 4 to 7 easily.

Oh well, onwards and upwards

Carl
__________________
Software developer since 1982, started on a ZX81.
Been developing in Delphi since 1998.
Currently trying to get my head round C++.
Carl is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC