ADOX - Create MDB problem - data source containing keyword "System" or "Windows"

Hi,

I'm developping an application in VB.NET 2005.

I've made a function that creates an Access 2000 MDB with ADOX. I'm using the Catalog.Create method with a connection string to achieve this. Here is a connection string that works:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SYSTEM1\System2.mdb

Here is one that doesn't work:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SYSTEM\System2.mdb

and another one that doesn't work:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Windows\System2.mdb

Is there something with the "System" and "Windows" keywords that may cause the problem



Answer this question

ADOX - Create MDB problem - data source containing keyword "System" or "Windows"

  • scottmclean

    I've just tried that and it worked.

    Make sure you do have SYSTEM and Windows folders already and have the rights to write to them.



  • ADOX - Create MDB problem - data source containing keyword "System" or "Windows"