Sono riuscito ad impostare qualcosina, ma non va, mi dite cosa c'è di sbagliato in queste istruzioni?
Dim conn As New SqlConnection
Dim sconn As String = "data source = C:\Users\Utente\Documents\Visual Studio 2010\Projects\sql35\sql35\Database1.sdf"
Dim command As New SqlCommand
Dim reader As SqlDataReader = Nothing
Try
conn.ConnectionString = "data source = C:\Users\Utente\Documents\Visual Studio 2010\Projects\sql35\sql35\Database1.sdf"
command.Connection = conn
command.CommandText = "INSERT INTO Anagrafica (Codice, RagSoc, Iva) VALUES ('0011', 'Azienda', '11111111111')"
conn.Open()
command.ExecuteNonQuery()
MsgBox("Fatto")
Catch ex As Exception
MsgBox("Non posso connettermi")
Finally
conn.Close()
End Try