PC Review


Reply
Thread Tools Rate Thread

I can not connect SqlServer2000 with PocketPC with WIFI

 
 
=?Utf-8?B?RmxhdHRyb24=?=
Guest
Posts: n/a
 
      15th Aug 2004
Hello,
I am new guys here .
When I debug a application and connect sqlserver 2000 using PPC via
active sync, everything is OK,
After that ,I enable wireless Lan ,PPC can get a IP from wireless router,I
can ping the ppc from PC.But after run the PPC application,it can not
connect Sqlserver200 in the PC.
The SqlException message is server is not exist or can not access.I
change the server name to IP , the sympton is same

--
Hello, All CF programming fans
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RmxhdHRyb24=?=
Guest
Posts: n/a
 
      15th Aug 2004
I also find another problem:
When I use active sync to run my application from PPC ,I wirte 1000
line information to database use insert SQL,There always have sqlexception
happen :server is not exist or can not access.But there is very OK run in
simulator ,No any sqlexception happen!

The code is :

Dim i As Integer
For i = 1 To 1000
AddFeederIDMobileXX()
Next

Public Function AddFeederIDMobileXX() As Boolean

Dim scnnDB As SqlConnection
Dim sReader As SqlDataReader
Dim scmd As SqlCommand

scnnDB = New SqlConnection(SQL_CONNECTION_STRING)
scmd = New SqlCommand("INSERT INTO FeederID_Mobile
VALUES('asdf','asdf',34,'Nil')", scnnDB)
Try
scnnDB.Open()
scmd.ExecuteReader(CommandBehavior.CloseConnection)
scnnDB.Close()

Catch exp As SqlException

Dim i As Integer
For i = 0 To exp.Errors.Count - 1
MessageBox.Show("Index #" & i & ControlChars.NewLine & _
"Error: " & exp.Errors(i).ToString() &
ControlChars.NewLine)
Next i

Finally
End Try
End Function

The connection string is :
"User ID=sa;Password=sa;Initial Catalog=Northwind;Server=192.168.1.100;Data
Source=192.168.1.100"



"Flattron" wrote:

> Hello,
> I am new guys here .
> When I debug a application and connect sqlserver 2000 using PPC via
> active sync, everything is OK,
> After that ,I enable wireless Lan ,PPC can get a IP from wireless router,I
> can ping the ppc from PC.But after run the PPC application,it can not
> connect Sqlserver200 in the PC.


The connection string is :
"User ID=sa;Password=sa;Initial Catalog=Northwind;Server=192.168.1.100;Data
Source=192.168.1.100"


> The SqlException message is server is not exist or can not access.I
> change the server name to IP , the sympton is same
>
> --
> Hello, All CF programming fans

 
Reply With Quote
 
prakash
Guest
Posts: n/a
 
      16th Aug 2004
Are you set the IP Address in the Mobile Device

goto
Settings -> connections -> Modem
Click New Connection
give a connection name
click the Advanced tab -> TCP/IP
select:Use Specfic IP Address and give an IP Address (192.168.1.150)
--------
Regards
Praaksh





"Flattron" <(E-Mail Removed)> wrote in message news:<D913455D-82A8-4C98-80FA-(E-Mail Removed)>...
> I also find another problem:
> When I use active sync to run my application from PPC ,I wirte 1000
> line information to database use insert SQL,There always have sqlexception
> happen :server is not exist or can not access.But there is very OK run in
> simulator ,No any sqlexception happen!
>
> The code is :
>
> Dim i As Integer
> For i = 1 To 1000
> AddFeederIDMobileXX()
> Next
>
> Public Function AddFeederIDMobileXX() As Boolean
>
> Dim scnnDB As SqlConnection
> Dim sReader As SqlDataReader
> Dim scmd As SqlCommand
>
> scnnDB = New SqlConnection(SQL_CONNECTION_STRING)
> scmd = New SqlCommand("INSERT INTO FeederID_Mobile
> VALUES('asdf','asdf',34,'Nil')", scnnDB)
> Try
> scnnDB.Open()
> scmd.ExecuteReader(CommandBehavior.CloseConnection)
> scnnDB.Close()
>
> Catch exp As SqlException
>
> Dim i As Integer
> For i = 0 To exp.Errors.Count - 1
> MessageBox.Show("Index #" & i & ControlChars.NewLine & _
> "Error: " & exp.Errors(i).ToString() &
> ControlChars.NewLine)
> Next i
>
> Finally
> End Try
> End Function
>
> The connection string is :
> "User ID=sa;Password=sa;Initial Catalog=Northwind;Server=192.168.1.100;Data
> Source=192.168.1.100"
>

 
Reply With Quote
 
=?Utf-8?B?eW9uZ2Nob25n?=
Guest
Posts: n/a
 
      23rd Aug 2004
I encounter the same problem.. the ppc always got problem connecting to the
wireless router every few days... the IP is gone... for my application, I use
ppc 2003 to connect to access wireless via web service... check out at
www.doitech.com anyone knows how to fix the problem... even with fix ip at
2003, I also got problem to connect.... the password sometime is also reset...

"Flattron" wrote:

> The IP address in the mobile devce is get from Wireless Router .I think the
> USB active sync transfer is not very stable,some times the transfer will
> broken when mass data is transfer.
>
>
> "prakash" wrote:
>
> > Are you set the IP Address in the Mobile Device
> >
> > goto
> > Settings -> connections -> Modem
> > Click New Connection
> > give a connection name
> > click the Advanced tab -> TCP/IP
> > select:Use Specfic IP Address and give an IP Address (192.168.1.150)
> > --------
> > Regards
> > Praaksh
> >
> >
> >
> >
> >
> > "Flattron" <(E-Mail Removed)> wrote in message news:<D913455D-82A8-4C98-80FA-(E-Mail Removed)>...
> > > I also find another problem:
> > > When I use active sync to run my application from PPC ,I wirte 1000
> > > line information to database use insert SQL,There always have sqlexception
> > > happen :server is not exist or can not access.But there is very OK run in
> > > simulator ,No any sqlexception happen!
> > >
> > > The code is :
> > >
> > > Dim i As Integer
> > > For i = 1 To 1000
> > > AddFeederIDMobileXX()
> > > Next
> > >
> > > Public Function AddFeederIDMobileXX() As Boolean
> > >
> > > Dim scnnDB As SqlConnection
> > > Dim sReader As SqlDataReader
> > > Dim scmd As SqlCommand
> > >
> > > scnnDB = New SqlConnection(SQL_CONNECTION_STRING)
> > > scmd = New SqlCommand("INSERT INTO FeederID_Mobile
> > > VALUES('asdf','asdf',34,'Nil')", scnnDB)
> > > Try
> > > scnnDB.Open()
> > > scmd.ExecuteReader(CommandBehavior.CloseConnection)
> > > scnnDB.Close()
> > >
> > > Catch exp As SqlException
> > >
> > > Dim i As Integer
> > > For i = 0 To exp.Errors.Count - 1
> > > MessageBox.Show("Index #" & i & ControlChars.NewLine & _
> > > "Error: " & exp.Errors(i).ToString() &
> > > ControlChars.NewLine)
> > > Next i
> > >
> > > Finally
> > > End Try
> > > End Function
> > >
> > > The connection string is :
> > > "User ID=sa;Password=sa;Initial Catalog=Northwind;Server=192.168.1.100;Data
> > > Source=192.168.1.100"
> > >

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to local SQLServer2000 database Paul Robinson Microsoft ADO .NET 7 13th Dec 2005 04:46 PM
Connect to SqlServer2000 from the emulator Zanna Microsoft Dot NET Compact Framework 6 13th Jun 2005 10:55 PM
dhcp-superscope-wifi-pocketpc news.microsoft.com Microsoft Windows 2000 Networking 3 8th Mar 2004 09:18 PM
how to connect SQL CE database on PocketPC Microsoft Microsoft Dot NET Compact Framework 7 8th Mar 2004 02:22 PM
Can't connect to pocketpc? Dave Corun Microsoft Dot NET Compact Framework 8 28th Jul 2003 12:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:45 PM.