473,699 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database throwing 'attempt to attach an auto-named database for file....' error

116 New Member
Hi,

I am packaging a single downloadable file via Inno Setup from a VB setup file and all is fine. However when it reads the following db connection line ....
Expand|Select|Wrap|Line Numbers
  1. Dim connStr = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\abcd.mdf;Integrated Security=True;User Instance=True"
  2.  
it throws the following error...

"an attempt to attach an auto-named database for file...."

I have a feeling that I need to check if the database abcd.mdf is already on the user's computer but it doesn't throw the error when debugging etc. I thought this connection line just connected to the db but it seems to suggest that it is attaching something each go.

Bit confused as to how to solve this one.

Thanks
Oct 19 '13 #1
0 881

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8709
by: Nand Belani | last post by:
Hi, I have a MS Access 2000 database on the network, it is secured and the mdw file is on the network. The database works for most of the users on the network, but does not open for two of the users. It gives "CANNOT LOCK FILE" error. There is really no difference between these two users and the other users who can log on to the database. The rights to the shared directory, where the database resides are the same. can somebody advice me...
0
1163
by: El | last post by:
Users on the network with read-only access are recieving this error (Could Not Lock File Error 3050) when trying to open the database when another user is currently using the database. Any idea how to solve this problem?? Thanks!!
6
2531
by: a | last post by:
What is the best way to construct an email in python and also attach a html file the html file to be attached is not on disk, but should be dynamically constructed in the python script I want to attach the django debug error to an email and mail it to myself whenever there is an error in the application thanks a lot
8
2531
by: asenthil | last post by:
Hai, i'm having a string in a specific field of a database... now i want to retrive that string from the database and i have to write that string into a xml file.... retriving is not a problem for me... but how can i write that string to a xml file....
2
2050
by: prajeeshv | last post by:
Hi Everyone, Have a nice day... I've a problem in SQL Server... I've detached my database from server. But I didn't remember the location of its .mdf (database) file. Now I'm unable to attach the database. Is there any way to locate the mdf file for a detached database, so I can attach it again... Any help on this will be appreciated... Thanks in Advance... Praji
1
1488
by: zufie | last post by:
Hi, I am trying to Link one MS Access database to the tables of a second MS Access database using Tools-->Database Utilities-->Linked Table Manager. I receive the error "Method 'List' of Object 'IFieldListWnd' failed" I have been successful in doing this before, but do not understand why I can't seem to do this, this time?
1
6554
by: deepikabg | last post by:
Hi, Im v.new to postgres. I needed some help writing batch files. I wanted to run psql commands in a batch file. I give 2 inputs to the batch file -- Username and Database name I want my batch file to do the following things. - check if a database created by that user exists if true return 1 else return 0 Anyone who knows how to do this , please help !
1
2113
by: rsubbukrishnan | last post by:
is it possible to attach a database through a network drive
2
3497
by: miket214412345 | last post by:
i get an unexpected end of file at the line below that has databaseKeyValue. Not sure why and how to fix it. Any help would be greatly appreciated. private static bool addItemsToDrawing( Visio.Page drawingPage) { bool itemsAdded = false; // Add the shapes to the drawing page. The returned list contains // the shape IDs of the added shapes.
0
8705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9196
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8941
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.