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

@"Login failed for user '\'."

I have a .NET 1.1 component trying to connect to a database but I keep
getting the following message when the exception is thrown:

@"Login failed for user '\'."

It appears that no user and role are being passed to the connection object,
otherwise it would surely give the name of the user who was being denied.

Has anyone come up against this before? A search told me to set both SQL
and Windows authorisation on the SQL Server, but that was already in place.
I have ensured that the user is valid in SQL server and cannot think of where
to go from here.

Any help would be much appreciated.
Mar 13 '07 #1
2 1888
VJ
If you are sure the name/password is being passed, then the user may be
valid SQL User, but does the user have access to the specific Database you
are trying to access?

Also use ISQLW and see if you can login with same name/password to the
specified DB.. that is a cross - check

VJ

"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:FE**********************************@microsof t.com...
>I have a .NET 1.1 component trying to connect to a database but I keep
getting the following message when the exception is thrown:

@"Login failed for user '\'."

It appears that no user and role are being passed to the connection
object,
otherwise it would surely give the name of the user who was being denied.

Has anyone come up against this before? A search told me to set both SQL
and Windows authorisation on the SQL Server, but that was already in
place.
I have ensured that the user is valid in SQL server and cannot think of
where
to go from here.

Any help would be much appreciated.

Mar 13 '07 #2
you really should just use the sa username and a blank password

-Todos
Mar 13 '07 #3

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

Similar topics

2
by: jissay | last post by:
Hi, I use the following scrit in an Intranet with the user name = "" and the password = "" : <?php $ftp_server = "192.168.25.25"; $ftp_user = ""; $ftp_pass = "";
2
by: Metior | last post by:
Hi, The error i get is as follows: Microsoft OLE DB Provider for ODBC Drivers error '80040e4d' Login failed for user 'webuser'.
1
by: VC | last post by:
Hello, I have an issue here. Hope someone can help me. Issue: Developer is using a web application from one server (IIS) (say Server A). A second server (say Server B, which is SQL Server...
4
by: John Phelan | last post by:
I have created a front-end application and back-end database. I have code that automatically links the front-end application to the back-end database for whenever I provide a patch or upgrade....
4
by: John Phelan | last post by:
Continue to get error message. Here is an update of my problem and everything that I have done to correct it. I have created a front-end application and back-end database. I have code that...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
1
by: fl | last post by:
I am running ASPNET on my local machine. I have a problem when I try to connect to a SQL server database table. The data looks good when I right click SqlDataAdapter1 to preview the data. When F5...
11
by: Wiinie | last post by:
Can you give me a hint that how to print out the 2d array package DataLayer; sub nextWords { my $lang_size = languages(); for my $id(1 .. $lang_size ){ my ($id, $offset) = @_; my @array...
3
by: Wiinie | last post by:
Hi, I have this error when i try to insert some values into the database via perl script. there is my code sub addWords { my $self = shift; my $wordsRef = shift; my @words = \$wordsRef;...
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
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: 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...
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...

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.