I write an application for a Windows CE 5 device with VB.NET. It has installed .NET CF 3.5, SQL Client 2.0 and SQLServerCompact 3.5 Core.
I wrote the application and now I have to connect to the SQL Server 2012 Express on my computer. The device is connected via USB to the laptop and I use Visual Studio 2008 Professional to run the programm on the device.
Here is what I have written:
Imports System.Data.SqlClient
Dim conn As SqlConnection = Nothing
conn = New SqlConnection("Data Source=aigaiosPC\SQLEXPRESS;Initial Catalog=DataBaseName;Integrated Security=SSPI;User ID=aigaiosPC\Aigaios;Password=myPassword;)
conn.Open()
But I always get an exception when it tries to open:
The given computer with SQL Server couldn't be found: aigaiosPC\SQLEXPRESS
I found the connection string on connectionsstrings.com
How can I connect? Do I have to change the SQL Server Settings or the Norton Firewall?