Connection to SQL Server Database inside Visual Studio 2012 C#
问题 Forgive me if this is easy and I have seen similar posts but I am new-ish to C# and have been struggling on this, so any help would be much appreciated. I am trying to connect to a local DB SQL Server in Visual Studio 2012 but so far have had no luck. I got my connection string from the properties of my local DB which in the picture is in the left hand pane. public void connection() { string connectionString = "Data Source=(localdb)\v11.0;Integrated Security=True;Connect Timeout=15;Encrypt