C
Chris Voon
I use the following code to connect to SQL server 2000
from a connected PPC device. My pocket explorer is able
to view the ssce. I execute the code on real pocketpc
2002 device and emulator and both throws an exception
when i execute the Open() method. An
PlatformNotSupportedException thrown. Any idea what's
wrong? I'm using SQL server 2000 with sp3 and sp3a sql ce
server tools
----------------------------------------
Public Sub GetResultSets()
Dim conNwindCE As SqlConnection
Dim cmdData As SqlCommand
Dim connString As String
Dim dr As SqlDataReader
Try
' Create and open a connection
connString
= "server=10.1.12.72;database=NWind_SQLCE;"
connString &= "user id=sa;pwd=pwd;"
conNwindCE = New SqlConnection(connString)
conNwindCE.Open()
......
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
dr.Close()
conNwindCE.Close()
End Try
End Sub
------------------------------------------------------
from a connected PPC device. My pocket explorer is able
to view the ssce. I execute the code on real pocketpc
2002 device and emulator and both throws an exception
when i execute the Open() method. An
PlatformNotSupportedException thrown. Any idea what's
wrong? I'm using SQL server 2000 with sp3 and sp3a sql ce
server tools
----------------------------------------
Public Sub GetResultSets()
Dim conNwindCE As SqlConnection
Dim cmdData As SqlCommand
Dim connString As String
Dim dr As SqlDataReader
Try
' Create and open a connection
connString
= "server=10.1.12.72;database=NWind_SQLCE;"
connString &= "user id=sa;pwd=pwd;"
conNwindCE = New SqlConnection(connString)
conNwindCE.Open()
......
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
dr.Close()
conNwindCE.Close()
End Try
End Sub
------------------------------------------------------