473,406 Members | 2,954 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,406 software developers and data experts.

Login failed SQL Express

How do I actually setup what users have access in SQL Express?

Please note that I am a SQL Server administrator so am comfortable
with creating id's etc in the full product. I cannot however find out
how to do this with Express.

In my windows application I have created the SQLE database and it's
settings are as the following.

Integrated security = true;
It is using windows authentication. (I'd use SQL authentication but
cannot find the server administration console - I expect because this
is express?)

My NT user id is being passed as the login which for arguments sake is
XYZ\mylogin

The database owner is XYZ\mylogin

The error is Login failed for user 'XYZ\mylogin

Thanks,
Rich.

Apr 13 '07 #1
4 2953
Here is your console

Start Menu Programs Microsoft SQL Server 2005 Configuration
Tools >

Change it to SQL authentication

On Apr 13, 9:14 am, "RichGK" <Ric...@hotmail.co.ukwrote:
How do I actually setup what users have access in SQL Express?

Please note that I am a SQL Server administrator so am comfortable
with creating id's etc in the full product. I cannot however find out
how to do this with Express.

In my windows application I have created the SQLE database and it's
settings are as the following.

Integrated security = true;
It is using windows authentication. (I'd use SQL authentication but
cannot find the server administration console - I expect because this
is express?)

My NT user id is being passed as the login which for arguments sake is
XYZ\mylogin

The database owner is XYZ\mylogin

The error is Login failed for user 'XYZ\mylogin

Thanks,
Rich.

Apr 13 '07 #2
On 13 Apr, 15:24, "Karim" <jimmy00...@gmail.comwrote:
Here is your console

Start Menu Programs Microsoft SQL Server 2005 Configuration
Tools >

Change it to SQL authentication

On Apr 13, 9:14 am, "RichGK" <Ric...@hotmail.co.ukwrote:
How do I actually setup what users have access in SQL Express?
Please note that I am a SQL Server administrator so am comfortable
with creating id's etc in the full product. I cannot however find out
how to do this with Express.
In my windows application I have created the SQLE database and it's
settings are as the following.
Integrated security = true;
It is using windows authentication. (I'd use SQL authentication but
cannot find the server administration console - I expect because this
is express?)
My NT user id is being passed as the login which for arguments sake is
XYZ\mylogin
The database owner is XYZ\mylogin
The error is Login failed for user 'XYZ\mylogin
Thanks,
Rich.
The problem with that is that I cannot find out how you create users
in SQL Express.

Thanks,
Rich.

Apr 13 '07 #3
On Apr 13, 10:46 am, "RichGK" <Ric...@hotmail.co.ukwrote:
The problem with that is that I cannot find out how you create users
in SQL Express.
The same was you would in an version of Sql 2005; express is a real
version of the server.

If you want a GUI, you need to download Sql Server Management Studio
Express, which is a seperate installation.

Apr 13 '07 #4
"RichGK" <Ri****@hotmail.co.ukwrote in message
news:11**********************@w1g2000hsg.googlegro ups.com...
Please note that I am a SQL Server administrator so am comfortable
with creating id's etc in the full product. I cannot however find out
how to do this with Express.
The express version does not come with and administrative tool, but if
you need it you can download from Microsoft the Sql Server Management Studio
Express, which contains most of the functionality in SSMS:
http://www.microsoft.com/downloads/d...DisplayLang=en

If you need to grant access programatically, you can send a command
similar to "create login [xyz\mylogin] from windows", and then a "create
user ..." to create the user uin the database, and also "grant all to..." or
whatever grants you wish to do to give permissions to the user. All of these
can be sent by means of the ExecuteNonQuery() of a SqlCommand. To send this
commands you will need to login into windows briefly as Administrator so
that integrated security grants you access to the server.

Apr 13 '07 #5

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

Similar topics

2
by: Blake Versiga | last post by:
I am pulling my hair out..... I am trying to put a bound data grid on a webform... I have 4 data connections in my server explorer, all of which connect successfully. But when I run the web...
3
by: Mr.KisS | last post by:
Hello all, I'm working with Windows XP PRO SP1, ASP.NET v2 (with Visual Web Dev) and, MS SQL 2005 with a database with Windows Authentication mode. I've an aspx page which must send a query to...
4
by: Sylvan | last post by:
I am new with this personalization stuff. Everything was working fine, however, now I always get the Login failed for user ''. The user is not associated with a trusted SQL Server connection....
10
by: musosdev | last post by:
Wonder if someone can help! We're getting the following error on our Intranet system as soon as we login.. ------------------ Exception Details: System.Data.SqlClient.SqlException: Login...
0
by: Freddie | last post by:
this is surely the wrong group, but you guys have been so helpful in the past ... i want to use the new forms authentication in asp.net 2.0 with sql server 2005 dev edition so i created a...
0
by: Jean | last post by:
Hi, I have a question about logins and sql server express and an ASP.NET aplication. I put this question in sql server newsgroup, but without real answer sofar. I created a login 'Network...
2
by: sangam56 | last post by:
Hi all. I have a web application developed in ASP.NET. I have my data file aspnetdb.mdf kept in App_Data folder. I have also created msi windows installer and I also installed it. It is installed...
8
by: =?Utf-8?B?U2hlcndvb2Q=?= | last post by:
Greetings, I am attempting to use the following code to establish a connection to a SQL Server database. However, when I execute the code, I receive the following error: "Login failed for...
4
by: RN1 | last post by:
I am working on WinXP Pro SP3, .NET 2.0 & SQL Server 2005 (Windows Authentication). When I run a ASPX page that connects to SQL Server, the following error gets generated: Login failed for user...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.