Ciao,
ho un& applicazione in .net su un dispositivo wince con un archivio .sdf a cui mi collego tranquillamente localmente con la stringa di connessione:
cnnDB.ConnectionString ="Data Source =" & pathapplicazione & "\db.sdf"
La mia esigenza è quella di connettermi all'archivio da un altro dispositivo.
ditemi ke è possibile!!!
avevo pensato ad una stringa del tipo:
cnnDB.ConnectionString = "Data Source=192.168.0.151\SQLEXPRESS;Initial Catalog=\Program files\db.sdf;Integrated Security=True;User Instance=True";
dove 192.168.0.151 è il dispotivo dove risiede il db. Ma restituisce un errore su Initial catalog
UPDATE Sandeep Mewara & CP: Google & Carlo gave this...
Hello,
I have a .NET application. on a WinCE device with a datadase file .sdf. I can connect locally, without problems, using the following connection string:
cnnDB.ConnectionString = "Data Source =" & pathapplicazione & "\ db.sdf"
Now I need to connect to the database from another device.
Please tell me if it is possible.
I tried the following connection string:
cnnDB.ConnectionString = "Data Source = 192.168.0.151 \ SQLEXPRESS, Initial Catalog = \ Program Files \ db.sdf; Integrated Security = True; User Instance = True";
where
192.168.0.151
is the IP address of the machine where the database resides. But returns an error on initial catalog.