473,385 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

attach user instance problem

gs
after reinstalling sql server 2005, sql express, visual studio etc, my
development PC, I can access fully an mdf file only as an administrator,
but not as a power user developer ID I usually use. even when I was using
the administrator, I noticed, the connection was not as user instance.
I think I must have messed up somewhere in teh re-install.
Please enlighten me as to what is required to get the developer ID to full
access as user instance?

the present connection string is
Data Source=.\SQLEXPRESS;AttachDbFilename=D:\data\Strin g.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True

when I tried to test connection using the above string using the power user
developer ID, I get
---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
Failed to generate a user instance of SQL Server due to a failure in
starting the process for the user instance. The connection will be closed.
---------------------------
OK
---------------------------
when user instance is set to true

If I set the user instance to false, I get instead:

---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
CREATE DATABASE permission denied in database 'master'.

An attempt to attach an auto-named database for file d:\data\StringTmp.mdf
failed. A database with the same name exists, or specified file cannot be
opened, or it is located on UNC share.
---------------------------
OK
---------------------------
I have checked that the ID does have full access to the mdf

How do I setup an sure instance?
Sep 10 '07 #1
0 1024

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
9
by: Jon Davis | last post by:
I am working with an application that is compiled as a COM EXE (written in Delphi 7). I don't know if it's the nature of COM EXE or if it's implemented in the COM EXE, but when I create a new...
2
by: Gladiator | last post by:
hai everyone.... Can anyone say how to find the user name who attached to the instance........... regards... kamal
3
by: Freddie | last post by:
hi, i try to get the asp.net 2.0 security controls to work with SQL Server 2005 Dev RTM, this is my connetion string in mashine.config <connectionStrings> <add name="LocalSqlServer"...
1
by: weird0 | last post by:
System.Data.SqlClient.SqlException: An attempt to attach an auto- named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is...
3
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi I have 2 installers for my VB.NET app, one for the client app (exe, dlls, config etc.), one for server components (shared data files, sql express db). I have a few questions relating to the...
9
by: dpatel75 | last post by:
I am trying to copy a database from a SQL 2000 SP3 Windows 2000 server to a 2005 SP2 Windows 2003 server. I am trying to use detach and attach method (have tried both within Management Studio and...
6
by: GaryDean | last post by:
I see some references on debugging by attaching to a process. There are MSDN articles that show how to attach to a process for debugging. However, I can find no info on how exactly to get the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.