O
olli
I am a VB6 programmer starting out in vb.net. I have been trying to
connect to a SQL Server database using SQLClient from a pocket pc, but
am unable to connect.
my code is:
cn = new System.Data.SqlClient.SqlConnection
cn.ConnectionString = "User
id=sa;password=password;database=test;server=192.168.0.2"
cn.Open()
However, the connection always fails with the error "SQL Server does
not exist or access denied". I am running the emulator on one PC, the
SQL Server is on another PC in my network. I am assuming that the
emulator can 'see' the other PC, since I can open a terminal server
client from the emulator to it. I wrote a 'normal' vb.net program with
the same code and that connected straightaway, so I am assuming the
connection string is okay. This ran on the same machine the emulator
is on. So I think it must be one of:
* the pocket pc can't use the same sort of connection string as a
normal pc?
* the link to sql server from the emulator is different to the link to
the same machine using terminal server client?
Does anyone have any ideas?
Olli
connect to a SQL Server database using SQLClient from a pocket pc, but
am unable to connect.
my code is:
cn = new System.Data.SqlClient.SqlConnection
cn.ConnectionString = "User
id=sa;password=password;database=test;server=192.168.0.2"
cn.Open()
However, the connection always fails with the error "SQL Server does
not exist or access denied". I am running the emulator on one PC, the
SQL Server is on another PC in my network. I am assuming that the
emulator can 'see' the other PC, since I can open a terminal server
client from the emulator to it. I wrote a 'normal' vb.net program with
the same code and that connected straightaway, so I am assuming the
connection string is okay. This ran on the same machine the emulator
is on. So I think it must be one of:
* the pocket pc can't use the same sort of connection string as a
normal pc?
* the link to sql server from the emulator is different to the link to
the same machine using terminal server client?
Does anyone have any ideas?
Olli