Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Password defined as SQL_Latin1_General_CP1_CS_AS but not being recognized when entered

Posted on 2014-04-04
10
Medium Priority
?
222 Views
Last Modified: 2014-04-15
A table has been created that has two fields (i.e., UserId, UserPswd) defined to be SQL_Latin1_General_CP1_CS_AS.

When I enter the user id that is not in its proper case, my program issues the correct message indicating that the user id is not correct.

However, when I enter the user password that is not in its proper case, the program accepts the password as being correct.

Can someone tell me why the SQL_Latin1_General_CP1_CS_AS works for one field but not for the other?  Do I need to do something else to get it to be recognized.

Thank you.
0
Comment
Question by:CarmenMTorres
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
10 Comments
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39979773
Is this for your code?  Are you sure you don't have code that converts the password to all upper or lower case or ignores case?
0
 

Author Comment

by:CarmenMTorres
ID: 39980687
The passwords are encrypted, but when accessing or reading the passwords, they are decrypted.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39981938
Please post the schema for your table.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:CarmenMTorres
ID: 39986130
I was able to determine the issue.  I needed to append the clause "COLLATE SQL_Latin1_General_CP1_CS_AS " to the password after it was decrypted.  Once I appended the clause, the function was performing properly.

Thank you all for your input.
0
 

Accepted Solution

by:
CarmenMTorres earned 0 total points
ID: 39991364
Since I was able to resolve this issue myself by appending the clause "COLLATE SQL_Latin1_General_CP1_CS_AS " to my query statement , Administrator can you please close this question.  Thank you.
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39991445
Just accept your own answer.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39991632
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39991676
On that comment, click "Accept as Solution". You will be redirected to the Award Points and Grade page for your question.
0
 

Author Closing Comment

by:CarmenMTorres
ID: 40001125
I was able to determine the answer to my problem before a solution was suggested by the experts.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question