I wrote a program, on my computer it works correctly because SQL Server us running on my computer, but another computer in the network can't use the database.
Here is the definition of the connection string in my program :
string cs = @"server=tcp:shiva-pc,49172;database=mydb;User ID = as; Password = 123;";
and when I run the program on another computer this is the 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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"
I read some articles about "connecting from another computer" or "choosing a network protocol" and I did whatever they did, however, it did not work and I still have the problem.