I just started using my home business application in window forms for convenience. I am currently using Visual C # Express 2010 / SQL Server 2008 R2 Express to develop it. I got the same problem as OP where I need to connect to an instance of SQL server. I will skip the details here, but this database will be a unified database, synchronized between 2-3 computers, which will also use the application that I am currently developing.
I found a quick workaround, at least I think I did, because now I can use my stored procedures in tables without any problems.
I copied the attached SQL connection that I used in another project at work (VS2010 Premium) in app.config, and changed everything I needed there. When I returned to Settings.settings, I just needed to confirm that I want what was in the app.config file. The only drawbacks that I see are that you cannot “test” the connection, because when you enter the connection string configuration you cannot find anywhere, because “SQL Server” is not an option. Another disadvantage is that you need to enter everything manually, since you cannot use any wizards to make it work.
I don't know if I should do this, but at least I can connect to my SQL server now :).
EDIT:
It only works with instances of SQL Server 2008 R2 Express. If you try to work with a SQL Server 2008 R2 workgroup or later, you will receive an unpleasant warning from Visual C # 2010 Express stating that "you cannot use this connection with the current version of Visual Studio." I got this when I tried to modify some of my tables. I switched to an instance of SQL Express for development, and it works fine again.
Tribalinius Aug 15 2018-11-18T00: 00Z
source share