Re: Problem with SQL Server 2005 Express Edition
- From: "Preben Zacho" <post@xxxxxxxxxxxx>
- Date: Thu, 17 May 2007 12:21:46 +0200
Ok, so I got it to work now. I simply changed from SQL Authentication to
Windows Authentication and changed my connection string. Seems that the
deployment goes smoothly after all, since when installating the SQL Server
2005 as prerequisit, the installing user is created as a login user. I was
not awear of that.
The database itself is then created using a script call to SQLCMD and the
application can run without errors.
I can live with that, it makes the installation quite simple after all.
/PZ
"Preben Zacho" <post@xxxxxxxxxxxx> wrote in message
news:OKXT6f4lHHA.1776@xxxxxxxxxxxxxxxxxxxxxxx
Ok, I've read almost a million ng postings on this, still I can't solve
it. This place is my final hope.
I'll start from the beginning: I have a Windows application developed in
C#. It uses a SQL Server 2005 Express Edition database to store data. Now
I have created a deployment of this app and database, and I try to install
it on my own machine. No problems, works without errors.
Now, I put this deployment project on the network and a user downloads it
to his Vista machine and runs the setup. When he starts the app he gets
the following error message:
"Login failed for user "MyUser". The user is not associated with a
thrusted
server connection".
The connection string I use in my application is this:
Server=.\SQLEXPRESS;Database=MyDB;User ID=MyUser;Password=thissucks
Since I have no control over the Vista machine, I can't force him/her to
create a new account that is thrusted. All I want is to deploy my app and
database, without having to worry about authorization and stuff. If
possible, it should allow for ALL users to connect and use it.
I have already tried alot of the suggestions I've found, but lets start
all over so it will be right. What should I do to remove this error? How
can I deploy my database without having to think about
authorization/security stuff?
TIA
PZ
.
- References:
- Problem with SQL Server 2005 Express Edition
- From: Preben Zacho
- Problem with SQL Server 2005 Express Edition
- Prev by Date: Re: Public Role for SQL 2000
- Next by Date: Re: Password expired
- Previous by thread: Re: Problem with SQL Server 2005 Express Edition
- Next by thread: Password expired
- Index(es):
Relevant Pages
|