I have problem setting up a new user on my local ms sql express.
- I have my sql server instance configured to SQL Server and Windows authentication mode - I create a new login, with SQL Server authentication, choose a password and unmark 'enforce password policy'. And also specify a default database. - I then go to my database (in management studio) and create a new user with the same name as my just created login, select also the later, and choose db_owner for database role. - And specify my connectionstring like: <add name="TestConnection" connectionString="Data Source=(Local)\SQLEXPRESS;Initial Catalog=MyDatabase;User ID=username;Password=pwd;" providerName="System.Data.SqlClient"/>
Thanks, I missed to restart my server for configuration changes to take place.
So now I am able to set up a login-user on my local sql instance.
But when I try to connect to my remote server I got this error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I am able to login with my user to SSMS, have enabled named pipes and TCP/IP and allowed remote connections. In Configuration Manager I see that SQL Server Agent and SQL Server Browser are stopped, with start mode: Other(... don't know if that could be the causes.