On my development computer, I have MS SQL Server / Visual Studio 2005. My program can correctly connect to my local database and use it. However, my other computer (non-dev) does not have MS SQL Server / Visual Studio 2005 and does not connect to the database. He spits out the following:
"An error occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure can be caused by the fact that at default settings SQL Server does not allow remote connections ..." (Error: 26).
Does this mean that I have to install SQL Server 2005 on my computers other than dev? Is there another way?
My connection string:
"Data source =. \ SQLEXPRESS; AttachDbFilename = \" "+ Directory.GetCurrentDirectory () +" \ DB.mdf \ "; Integrated Security = True, User Instance = True";
source
share