Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
SQL Server 2000/2005/2008, Express, Access, MySQL, Oracle
Connessione diretta ad SQL SERVER 2005 da pocket pc
lunedì 14 maggio 2007 - 12.49
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
dream
Profilo
| Newbie
36
messaggi | Data Invio:
lun 14 mag 2007 - 12:49
Ciao a tutti
Vorrei connettermi ad SQL SERVER 2005 da un dispositivo pocket pc.
Sul desktop, oltre ad SQL SERVER 2005 ,ho istallato sql ce.
Utilizzo visual basic di vs 2005 ed utilizzo l'emulatore pocket pc 2003 SE.
Dopo aver aggiunto i riferimenti a System.Data.SqlClient e System.Data.SqlServerCe, li ho importati nel progetto.
Try
Dim cn As New SqlConnection
Dim cs As String
cs = String.Format("Provider= Microsoft.SQLSERVER.OLEDB.CE.1.0;Password=myPW;Integrated Security=false;User ID=sa; Data Source=FRANCE********\SQLEXPRESS; Initial Catalog=prova")
cn.Open()
Catch ex As Exception
MessageBox.Show(ex.Message & ex.ToString)
End Try
Qualcuno sa darmi la connection string giusta? ho provato ache SQLOLEDB al posto di Microsoft.SQLSERVER.OLEDB.CE.1.0 ma il risultato è sempre la stessa eccezione:
Vi posto anche i seguenti warning in esecuzione:
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.SqlClient.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.SqlClient.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.SqlClient.dll
Grazie
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !