I have connection string, but it isn't working. Why?
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Connection string:
<add name="CompanyEventConnectionString"
connectionString="database=db;server=PETLITSKY-R\SQLEXP;user id=sas; password=P@ssword1; MultipleActiveResultSets=True;" />
SQLEXP?? If you have Express but a default installation - usePETLITSKY-R\SQLEXPRESSas the server name - marc_s