Mick Dugan Posted May 22, 2005 Posted May 22, 2005 As a novice programmer, I�ve been getting by O.K. with creating my databases directly in Access and then accessing them with code using .net. Creating a database entirely thru code is another matter. Either I�m too thick or there isn�t any good documentation out there. Does anyone know of any online tutorials that will help me? Quote
APaule Posted May 22, 2005 Posted May 22, 2005 As far as I know it's impossible to create an mdb file programatically (except you have access to another Access database and create it from there). So the question is, if Access will be installed on the target machines where your application runs. But no difference if or if not, in this case I would distribute an empty mdb file and start with my application from that point. So you will be on the safe side and your application is independent from the existence of Access on these machines. Another consideration, depending on the location of the database and the number of users accessing it, was eventually the usage of SQL Server 2000, or if cost matters (and if there are not too many users concurring one another), his little brother MSDE. Quote
AlexCode Posted May 24, 2005 Posted May 24, 2005 Despite most developers think MS Access engine isn't worth even a look, they're wrong. For most small and mid apps, and access db would do just fine. Less resouce consumer, pretty fast for most of requirements... and so forth. Now for the question. I believe you can do that if you use ADO 2.7 (not ADO .net). Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
AlexCode Posted May 24, 2005 Posted May 24, 2005 Take a look at the ADOX dll... Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
APaule Posted May 24, 2005 Posted May 24, 2005 I believe you can do that if you use ADO 2.7 (not ADO .net).I would say, ADO has nothing in common with a specific database model. So it doesn't know anything about the binary format of a mdb file or any other database format and you can't generate a mdb file out of the box. Quote
APaule Posted May 24, 2005 Posted May 24, 2005 Take a look at the ADOX dll...And here we go. Alex is right and I'm a bit rusty with Access. :-\ Dim constr As String = "provider=microsoft.jet.oledb.4.0;data source=c:\\adoxtest.mdb" Dim cat As New ADOX.Catalog cat.Create(constr) You have to reference msadox.dll (Microsoft ADO ext. 2.x ...). You find it among the COM components. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.