I know this is an answered question , however I have tried all the steps mentioned
like:
- In SQL Configuration manager have Enabled TCP/IP,Shared Memory and Named Pipes.
- Restarted the SQLSERVER
- In Services.msc I have restarted SQLSERVER and SQL Server Agent
- Added port 1433 in firewall's Inbound rule
- Restarted PC number of times
- Even Registered Local Server in SQL Server Management tools
I can open SQL Server Management tools
It was working fine and now its not. However I am able to login , then I cannot do any work on it, it gives me an error as :
Tried all the steps mentioned in the accepted answer HERE
I have some other application accessing same SQL Server and they are working fine.
My Connection string :
public SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Database=RMS_EXPRESS;Integrated Security=True;User Id=sa;Password=xxxxxx");
I also tried with the following connection string
Data Source=.;Database=RMS_TS1;Integrated Security=False;User Id=sa;Password=xxxxxxx
It gave me an error. "Login Failed for User 'sa'"
My application and Database are on the same PC
So , please help. Thanks