472,365 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

SQL Server 2005 Express Edition login problem when deploying a windows application

Hi there

The scenario I got is this: I have created a Windows application in VS and I
want to deploy it to another machine running Windows Vista. Since I have no
control over this other machine, I've set it up to run SQL Authentication
and I have added a new user called "MyUser" and applied a password. This
user/password is used in my connection string whick looks like this:

Server=.\SQLEXPRESS;Database=MyDB;User ID=MyUser;Password=thissucks

I've created a setup project in which the database is included. On my
machine (Windows XP SP2) the setup runs without problems and I can use my
app and database connection without any errors. On the Vista machine, the
other user gets this error:

"Login failed for user "MyUser". The user is not associated with a thrusted
server connection".

I've read a bunch of suggested solutions on the net, none of which has
provided a solution...yet.

How do you create a deployment/Publish in VS when using SQL Server 2005
Express Edition, when the maching it's supposed to be installed on only has
..NET FrameWork? I can't seem to get it to work...

TIA

PZ
May 15 '07 #1
4 2251

"Preben Zacho" <po**@zacho-web.dkwrote in message
news:eM**************@TK2MSFTNGP03.phx.gbl...
Hi there

The scenario I got is this: I have created a Windows application in VS and
I want to deploy it to another machine running Windows Vista. Since I have
no control over this other machine, I've set it up to run SQL
Authentication and I have added a new user called "MyUser" and applied a
password. This user/password is used in my connection string whick looks
like this:

Server=.\SQLEXPRESS;Database=MyDB;User ID=MyUser;Password=thissucks

I've created a setup project in which the database is included. On my
machine (Windows XP SP2) the setup runs without problems and I can use my
app and database connection without any errors. On the Vista machine, the
other user gets this error:
Maybe, you're using your user-id and psw and SQL Server is set to Windows
authentication. Your user ID is trusted as part of the machine's logon
user-id.
>
"Login failed for user "MyUser". The user is not associated with a
thrusted server connection".
The user-id is not a trusted Windows User Id.
>
I've read a bunch of suggested solutions on the net, none of which has
provided a solution...yet.

How do you create a deployment/Publish in VS when using SQL Server 2005
Express Edition, when the maching it's supposed to be installed on only
has .NET FrameWork? I can't seem to get it to work...
http://support.microsoft.com/kb/889615

You may want to set SQL Server Authentication to Mixed Mode Authentication,
which is Windows or SQL Server User-id and psw authentication, if it's not
set.
May 16 '07 #2
Hi Arnold
Maybe, you're using your user-id and psw and SQL Server is set to Windows
authentication. Your user ID is trusted as part of the machine's logon
user-id.
I'm using the user I've created in the database scope which is called
"MyUser" and password "thissucks". I assume, when SQL Authentication is
used, the user specified in the connection string is matched against the one
in the database and not a Windows user.
The user-id is not a trusted Windows User Id.
That's what I'm looking for. User "MyUser" is NOT a windows user, so I don't
understand why it wants to authenticate it like it is.
You may want to set SQL Server Authentication to Mixed Mode
Authentication, which is Windows or SQL Server User-id and psw
authentication, if it's not set.
In the SQL Server Management Studio Express I have already marked the "SQL
Server and Windows authentication mode" under server/options/security. If
there is anywhere else this should be set, please let me know.

Any other recommendations?

/PZ

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OA****************@TK2MSFTNGP05.phx.gbl...
>
"Preben Zacho" <po**@zacho-web.dkwrote in message
news:eM**************@TK2MSFTNGP03.phx.gbl...
>Hi there

The scenario I got is this: I have created a Windows application in VS
and I want to deploy it to another machine running Windows Vista. Since I
have no control over this other machine, I've set it up to run SQL
Authentication and I have added a new user called "MyUser" and applied a
password. This user/password is used in my connection string whick looks
like this:

Server=.\SQLEXPRESS;Database=MyDB;User ID=MyUser;Password=thissucks

I've created a setup project in which the database is included. On my
machine (Windows XP SP2) the setup runs without problems and I can use my
app and database connection without any errors. On the Vista machine, the
other user gets this error:

Maybe, you're using your user-id and psw and SQL Server is set to Windows
authentication. Your user ID is trusted as part of the machine's logon
user-id.
>>
"Login failed for user "MyUser". The user is not associated with a
thrusted server connection".

The user-id is not a trusted Windows User Id.
>>
I've read a bunch of suggested solutions on the net, none of which has
provided a solution...yet.

How do you create a deployment/Publish in VS when using SQL Server 2005
Express Edition, when the maching it's supposed to be installed on only
has .NET FrameWork? I can't seem to get it to work...

http://support.microsoft.com/kb/889615

You may want to set SQL Server Authentication to Mixed Mode
Authentication, which is Windows or SQL Server User-id and psw
authentication, if it's not set.


May 16 '07 #3
<snipped>
>
Any other recommendations?

You might want to post to a MS.public.sqlserver NG to see if they may know
something about the issue.

May 16 '07 #4
Ok thanks Arnold. I'll give it a try.

All I want is to deploy my app and database without having to care about
user authority and stuff. If possible, I would deploy my database without
any login restrictions so it would run no matter who you were, but I assume
that is not possible:

/PZ

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP06.phx.gbl...
<snipped>
>>
Any other recommendations?


You might want to post to a MS.public.sqlserver NG to see if they may know
something about the issue.

May 16 '07 #5

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

Similar topics

0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
2
by: kress1963nov22 | last post by:
I recently purchased a good MS book ("Build a Web Site Now") by Jim Buyens. It has the Express Edition of MS-Visual Web Developer 2005 on CD and also MS SQL Server 2005 Express Edition on the CD. A...
9
by: Gabriel | last post by:
Hello, I installed SQL server 2005 SP1 on a Windows XP SP2 From Visual Studio, I'm trygin to create a connection to a database, but I receive this error but I'm creating the connection (I...
3
by: ianforgroupuse | last post by:
I'm running Vista Business edition on 2005 Virtual PC. Installed SQL Server 2005 Express latest download, with instance of MSSQLSERVER and service accounts running under "NT AUTHORITY\SYSTEM"....
3
by: Steve | last post by:
Hi All I downloaded Sql server 2005 express SP2 and attempted to modify the Bootstrapper package files as I did with SP1 When i try to install SQL server as part of my VS 2005 deployment app I...
3
by: Lee T. Hawkins | last post by:
I am having a number of problems over the last two full days trying to get an ASP.NET 2.0 application to connect to a SQL Server 2005 database... First off, I built this application w/ Visual...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.