Hi all, im getting started on Windows mobile, i have worked with win forms
What im trying to do is:
Connect to sql 2000 server on my desktop pc from my mobile device
(emulator), populate a dataset and then save it as an xml file in my mobile
device to work with it offline. (I dont want to install sql mobile on the
device)
I have a code to connect to sql and populate a datatable wich is not working
from my mobile app, but IT WORKS ON WIN FORMS
Dim T As New DataTable("Alumnos")
'For the Data Source Ive tried: PCName and 127.0.0.1 (All of them work with
win forms but not with mobile app)
Dim conn As New SqlConnection("Data Source=127.0.0.1,1433;Initial
Catalog=alumnos;Integrated Security=True")
Dim da As New SqlDataAdapter("Select * from Alumnos", conn)
Try
conn.Open()
da.Fill(T)
Catch ex As SqlException
MsgBox(ex.ToString)
Finally
conn.Close()
End Try
The error i get is: "SQl server does not exist or access denied"
As I told you, the server exist and i get acces from Win Forms code
Ive read that some people who has had this problem was because they were not
using the ip address, ive havent been able to connect
Any suggestions?? Do i have to set iny parameters on the emulator??
I know my emulator is cradled and i still get an error
Alexei Rodriguez