Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi to all.
I am using SQL server 2005.
it is installed by system admin login, it works properly on admin login.
But when i login my system with my id It gives error.

CSS
TITLE: Connect to Server
------------------------------

Cannot connect to OMXHO11SFD0885.

------------------------------
ADDITIONAL INFORMATION:

Login failed for user 'OMAXE\shubhamanand'. (Microsoft SQL Server, Error: 18456)


how can i connect it with database engine?
Posted

1 solution

In SQL Server, you can create a SQL User login or use Windows authentication.
Do the simple test. Create a SQL User account "shubhamanand" and assign correct rights to that user.

And then use the correct connection string[^].

Example:

Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=shubhamanandmyUsername;Password=myPassword;

---
How to: Create a SQL Server Login[^]
 
Share this answer
 
v3
Comments
uspatel 28-Jul-11 2:39am    
how to create SQL User account "shubhamanand"
Kim Togo 28-Jul-11 3:00am    
See updated answer. "How to:..."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900