Groups | Blog | Home
all groups > vb.net data > march 2006 >

vb.net data : Learning VB 2005. Creating Your First Databbase


Dave Mills
3/12/2006 12:00:00 AM
I hope this is the right group. There are so many to choose from.

I am trying to work my way through the VS 2005/VB Express Guided Tour. I have
not done any Database work with VB before.

All is going more or less OK until now. I have completed the "MSDN Lib.../VB
Express/Managing you records.../"Creating Your First Database" and populated the
data. On the next lesson "Getting the Info You Need...." I have run into a brick
wall.

I create the new project but when I try to add a connection to the existing
database (created in the previous exercise) I get an error

"The file "\\server\docs\username\visual studio
2005\projects\firstdatabase\firstdatabase.mdf" is on a network path that is not
supported for database files."

The location IS a UNC path but it is the path that was used (by default) during
the previous database creation exercise. This path is under My Documents and My
Documents is a redirected folder to a server.

I can understand that UNC paths might not be supported (I cannot find any
documentation on this though) but if this is the case how was it able to work
for the previous exercise when the database was created on the UNC path and
populated with data.

Can anybody clear up my confusion here.

Dave

--
Dave Mills
William (Bill) Vaughn
3/23/2006 1:26:24 PM
Nope, SQL Server won't attach to a UNC pathname. It has to be a physical
path/filename on the local system--not somewhere on the net.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

[quoted text, click to view]

Dave Mills
3/24/2006 10:58:54 PM
On Thu, 23 Mar 2006 13:26:24 -0800, "William \(Bill\) Vaughn"
[quoted text, click to view]

Thanks for the reply. What has thrown me is that the location is the default
under My Documents. This is a redirected folder but is still used by VS. What's
more the creation of data population practices work OK to the UNC name. It just
fail when trying to re-open it.

Actually I am not surprised that the database must be local. I am surprised that
I can set one up in the first place via a redirected UNC folder.

Guess I will have to re-write the lab.

--
Dave Mills
AddThis Social Bookmark Button