473,387 Members | 1,455 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,387 software developers and data experts.

Can't connect to SQL Server, using Windows Authentication users of SQL server? help

Hello

I tried this friday, but didn't get anywhere so trying again
Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the Users can be created only with Windows authentication in SQL Server - with SQL server authentication have no problem
So every time I try to connect get the error message, "Login failed for user, 'username'.
I have also tried windows authentication of .net with different setting, but still the same problem

A help would be greatly apreciated since I am stuck because of this

Thanks in advance
Reza
Nov 18 '05 #1
3 4593
I tested the user with domain and without domain, using osql, but same problem

----- Reza wrote: ----

Hello

I tried this friday, but didn't get anywhere so trying again
Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the Users can be created only with Windows authentication in SQL Server - with SQL server authentication have no problem
So every time I try to connect get the error message, "Login failed for user, 'username'.
I have also tried windows authentication of .net with different setting, but still the same problem

A help would be greatly apreciated since I am stuck because of this

Thanks in advance
Reza
Nov 18 '05 #2
I apologize if I am getting too simple, but the background theory is
important.

There are two ways of connecting to SQL Server

1. Windows auth, which uses windows built-in security
2. Mixed mode, which uses a name/password combo in SQL Server

It sounds like you wish to use Windows auth, which is fine. The problem,
however, is the user logs into a web app as an anon user unless you force
authentication. The easiest way to do this is open the Internet Services
Manager and remove anonymous access. Now, you know who the user is and
everything works fine. Of course, this will also bring up a dialog box for a
user to log into windows for the web app.

ADDED INFO:
----------------
I just saw your OSql info in your followup. While it does not "change" the
above advice, there is one more component to consider and that is network
libraries. It is possible you are trying to connect with named pipes (top of
connection stack on both client and server). You may not even have the
TCP/IP network library installed (while not absolutely necessary, it
simplifies things tremendously).

You can check network libraries on the SQL Server machine by opening the
server network library tools. If you do not see TCP/IP, you should
"re-install" SQL Server and add the components. The installer should only
add the library, but I advise database backup any time you are tinking with
the server install utility. I have never had a problem here, but an ounce of
prevention is worth a pound of cure.

On the client, if you have SQL tools installed, you can check the network
libs as well. On both server and client, move TCP/IP to the top of the
stack.

If this still does not work, follow up with another post.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Reza" <uw******@hotmail.com> wrote in message
news:4E**********************************@microsof t.com...
Hello,

I tried this friday, but didn't get anywhere so trying again.
Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the Users can be created
only with Windows authentication in SQL Server - with SQL server
authentication have no problem. So every time I try to connect get the error message, "Login failed for user, 'username'." I have also tried windows authentication of .net with different setting, but still the same problem.
A help would be greatly apreciated since I am stuck because of this,

Thanks in advance,
Reza


Nov 18 '05 #3
How are you doing the access rights to the users accounts?
Try to organize all the users accounts in one Global Group, and then give
SQL access to this group.

Carlos Barini.
MCP, MCSA, MCSE, MCDBA
"Reza" <uw******@hotmail.com> wrote in message
news:4E**********************************@microsof t.com...
Hello,

I tried this friday, but didn't get anywhere so trying again.
Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the Users can be created
only with Windows authentication in SQL Server - with SQL server
authentication have no problem. So every time I try to connect get the error message, "Login failed for user, 'username'." I have also tried windows authentication of .net with different setting, but still the same problem.
A help would be greatly apreciated since I am stuck because of this,

Thanks in advance,
Reza

Nov 18 '05 #4

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

Similar topics

4
by: Jeremy | last post by:
In my ASP.NET web applications I would like to use "integrated security=SSPI" instead of supplying a SQL Server account credentials. From what I understand there are security policy settings...
5
by: John | last post by:
I am creating an application that I would like to have the user type in their User ID, password and domain, and it do Windows Authentication to verify they are a valid user. Can someone provide...
1
by: Marlon | last post by:
I got the error message below when I try to open a connection with code: Dim connection As New OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=C:\Inetpub\aesd")...
9
by: Doug | last post by:
Simple question, hoping for a quick answer: Using Visual Studio .NET 2003 and Crystal Reports 10, is it possible to connect to a SQL Server 2000 database using Windows Authentication/Integrated...
3
by: ATS | last post by:
HOWTO Post to a URL from Server Side ASP script. Please help, I'm trying to make a simple ASP page post to a URL on a seperate web site, and then get the returned HTML into a string which on...
6
by: Matt Adamson | last post by:
Guys, I'm unsure how to use windows authentication in an intranet application. I'd like to user existing windows account to identify users however the issue I have is how to then add settings to...
3
by: =?Utf-8?B?QnJpYW4gTmljaG9sc29u?= | last post by:
I'm building a test web application that, when run, will launch calc.exe on my computer. It seems to work as it appears in Windows Task Manager; however, the process doesn't actually pop up...
1
by: DK | last post by:
I have an intranet application I've built using asp.net 3.5 / running on IIS6 I want to use BUILTIN groups on the server that contain domain users. So I set up my web.config like so for example:...
2
by: fairbanj | last post by:
I am using Windows Authentication and I am trying to determine how to swap users (like when a supervisor needs to temporarily boost the priviledges of a session by logging into his own account and...
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: 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
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,...
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
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,...
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...

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.