Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
| Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2007, 03:31 PM
Registered User
 
Join Date: Apr 2007
Location: Benton City, WA, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jscammell
Default Connecting existing program to SQL Express DB

I am working on trying to get my program to access a SQL Express 2005 DB on a mapped/network drive and I keep receiving an error message:

"The file \\.........Tracker1.mdf" is on a network path that is not supported for database files.
An Attempt to attach an auto-named database for files \\.........Tracker1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

If you could offer any advice on what is going on, or how to get around this. I get the error when trying to "Add a new Data Source" to my existing program. I know that we are able to connect our projects to an external database, I was just trying to get it to work off of my network. Again, any info would be very much appreciated.
 
Old April 18th, 2007, 03:59 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I suspect there is a problem with access rights of the process that is trying to access the file.

I presume you have access to it (but make sure), yet VB might be running under reduced auspices.
 
Old April 19th, 2007, 02:03 PM
Registered User
 
Join Date: Apr 2007
Location: Benton City, WA, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jscammell
Default

Thanks, it turns out that we had to update the SQL express settings, I'm able to access the database locally from other directories on this system. I will be setting up to try it networked here in a few hours.

In the meantime, I do have another question on the same lines:

I am trying to get a report-type output, generated by specific search parameters entered by the users of the program, in order to pull the results from the SQL express 05 database. I have read alot of articles that talk about creating new queries in the tableadapter, but it's still clear as mud to me.

Example of what I'm trying to do:

User inputs stringA which represents data in column1 and stringB represents data in columnc;

I'd like to generate a datagridview that dynamically changes based on the data the person enters, ie: there are 6 different columns to choose data from.

I'm getting stuck with trying to figure out how to make a new sql query using the query creation wizard "thing" that pops up when you tell the tableadapterdataset to create a new query. I could be going about this the wrong way, but I'm totally lost and need some help..someone throw me a life preserver, I'm goin down...

Thanks.




Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting to SQL express cherry C# 2005 2 September 2nd, 2006 12:34 PM
C# connecting to SQL Express supertorro C# 0 July 10th, 2006 07:33 AM
Accessing a SQL Server Express DB thru VB Express djelavic SQL Server 2005 2 February 21st, 2006 07:53 PM
Connecting to SQL Server Express venkikrao VB.NET 3 February 4th, 2006 12:00 AM
Problem connecting to SQL Express after publishing bleitner SQL Server 2005 2 January 9th, 2006 01:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.