Hello,
I downloaded VB 2010 Express three weeks ago, and have been learning the language and interface through the tutorials at MSDN. It's going pretty well.
I am trying to create my first database by Project > Add New Item, choosing Local Database > Add, and Cancel in the next window. This creates a blank database, and I got these instructions through the MSDN tutorial (http://msdn.microsoft.com/en-us/library/ms172599(v=VS.90).aspx?ppud=4). This usually works, and I am even usually able to add data to the table. But then I get this error when I try to access it again (whether a few seconds later or after closing and re-opening):
SQL Server Compact does not support opening database files on a network share.
Parameter name: \\mspm1bnas04\berndk1
The SQL Server (which I am not exactly sure what that is or what it does) that VB 2010 Express came with is SQL Server Compact v3.5. I think that this is the problem. I found at some websites/blogs that the problem may be because it is "Compact", and was directed to download the "Express" version. So I downloaded SQL Server 2008 R2 Express here: http://www.microsoft.com/express/Database/Default.aspx and hoped that would fix my problem.
After a heck of a time trying to download it, it finally installed. Trying the database problem again, it failed in the same way. I don't know if there is something I need to do as far as setting the default server or something, but I am dumbfounded. I tried to do something of that sort by Tools > Options, (check "show all options"), Database Tools > Data Connections, SQL Server Name Instance: "SQLEXPRESS" to no avail.
After all of these things, I restarted my computer (attempting to "lock-in" the changes), but that didn't work either.
I have been searching the internet, blogs, and MSDN to try to find a solution to this problem, but I have not been able to. Should I delete the SQL Server Compact version?
If you can provide any expertise on the situation, please let me know.
Thank you so much for your time,
K_Berndt
K_Berndt