Ciao a tutti....
sono abbastanza disperato....![]()
Devo fare un applicazione per un poket pc in cui possa accedere ad un database SQL server. L'accesso avverra quando il palmare è nella culla, ovvero quando è collegato a pc.
Il programma che sto facendo è in vb.net
1. devo poter accedere al server e copiarmi una tabella anagrafica prodotti, su una tabella su palmare, per poterla poi successivamente interrogare.
2. devo fare una tabella su palmare e quando sono collegato a pc aggiornare una tabella su database sql server remoto
potete darmi una mano..
PLEASE...
per accedere al pc remoto ho la password, ip del server e il dominio...
ma non so bene come utilizzarle..
persavo un codice del genere
Try
rda = New SqlCeRemoteDataAccess
rda.InternetUrl = ""
rda.LocalConnectionString = _
"Provider=Microsoft.SQLSERVER.OLEDB.CE.2.0;Dat a Source=\My Documents\ssce.sdf"
rda.Pull("Module", "Select * from Module", rdaOleDbConnectString, RdaTrackOption.TrackingOnWithIndexes, "ErrorTable")
MsgBox("Pull operation completed", MsgBoxStyle.Information, "Pull")
txtStatus.Text = "Pull Data to SQLServerCE successfully"
Catch err As SqlCeException
ShowErrors(err)
Finally
rda.Dispose()
End Try
...e...
Dim rda As SqlCeRemoteDataAccess = Nothing
Try
rda = New SqlCeRemoteDataAccess
rda.InternetUrl = "http://home-pc/SQLCE/sscesa20.dll" rda.LocalConnectionString = _
"Provider=Microsoft.SQLSERVER." & _
"OLEDB.CE.2.0;Data Source=\My Documents\ssce.sdf"
rda.Push("Module", rdaOleDbConnectString, _RdaBatchOption.BatchingOn)
MsgBox("Push operation completed", _
MsgBoxStyle.Information, "Push")
txtStatus.Text = "Push Data to SQLServer2000 successfully"
Catch err As SqlCeException
ShowErrors(err)
Finally
rda.Dispose()
End Try
Potreste gentilmente darmi una mano...
grazie mille