Register | Login  
 
 
 
Forums Minimize
SearchForum Home
     
  Products  Times for Pocket PC  Connection Issu...
 Connection Issues during Sync
 
 8/26/2006 12:48:24 AM
admin
31 posts


Connection Issues during Sync
 Modified By admin  on 3/18/2009 4:29:20 PM)

We have received reports from a few users who are having difficulty synchronising to their desktop. The error below is reported on the PDA after clicking the Sync icon

 

Error Code: 6

Message: Specified SQL Server not found: your server name/SQLExpress

Class    :20

Procedure: ConnectionOpen (Connect()).

Source  : .Net SQLCLient Data Provider.

 

This error means that a connection could not be made from the PDA to the SQLExpress database on your PC as defined in the PDA preferences. There are many possible causes for this, below is a list of things to check.

 

1.    Check you have installed the Times Desktop application and database

2. Ensure your PC is connected to a network or has a loopback network adapter installed

3.    Check that the SQL Server (SQLExpress) and SQL Browser Services are running on your desktop (use Start/Run and type SERVICES.MSC and ensure the status is Started for both services)

4.    Check that you have configured the server name and instance preferences on your PDA correctly. The server name can be the DNS name (fully qualified or partial) or IP address of your PC. To determine the IP address of your PC:

a.    Click Start/Run and type CMD and click OK

b.    In the command windows type IPCONFIG/ALL and press return/enter

c.    Scroll through the results and make a note of the IP Addresses. You may have multiple IP addresses, try each one as the server name preference on your PDA

5.    Ensure that a firewall is not blocking the connection from your PDA. Try turning all your PC firewalls off or adding the IP address of your PDA to your trusted list. If using Windows Firewall try turning protection off for Mobile Device. Open Windows Firewall from Control Panel, click Change Settings, Advanced tab and uncheck Mobile Device. Review the Microsoft help for Active sync network connections at http://www.microsoft.com/windowsmobile/help/activesync/default.mspx

6.    If using Active Sync to connect to your database (as apposed to WIFI or other direct network connection) you must be using Active Sync V4.0 or above. Also ensure you have set the connection type to Automatic in the Active Sync/File/Connection Settings and you are using the USB cradle to connect to your PC (not Bluetooth or Infrared). If using an IPaq or similar device check the Sync modus (Start / Settings / Connections). There are 2 options, RNDIS and USB/Serial, ensure that RNDIS is selected. If using a device other than an IPaq ensure you enabled advanced network functionality in the same location.

7.    Use vxUtil from www.cam.com to ping your server name from your PDA and check you get a response

8.    Check that SQLExpress is configured for TCP/IP connections and SQL Signons. By default the SQLExpress installation included with our setup is configured to use TCP/IP connections and SQL Signon. If you already have SQLExpress installed before installing Times then you may need to perform the following:

a.    Use the SQL Server Configuration Manager to enable the TCP/IP protocol for the SQLExpress instance (or the instance you are using for Times). Alternatively use regedit to change the value of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib\ Tcp\Enabled to 1. Note the 1 in MSSQL.1 may be different on your PC if you have multiple instances of SQL installed.

b.    Refer to the Times Desktop User Manual FAQ section User Not associated with a trusted SQL Server connection error message when you try to connect to SQL Server for details on enabling SQL Signon

c.    Restart the SQLExpress service for the changes to take effect

9.    Check you can access the internet or any other network resource from your PDA

 

We welcome any further comments or suggestions you have related to connection issues.

 11/9/2006 9:50:04 PM
admin
31 posts


Re: Connection Issues during Sync
 Modified By admin  on 11/9/2006 9:50:56 PM)

Fixing the SQL Server port

 

For the Pocket PC to connect to the desktop database it has to open a communication port on the desktop to communicate with SQL Server. To determine which port to use the PDA first connects with the SQL Browser service on the desktop which informs the PDA of the port which SQL Server database is listening on. If using the default install of SQL Express this can often lead to problems if either the SQL Browser service is stopped or a firewall blocks connection from the PDA to the SQL Browser service.

 

SQL Server can be configured to use the same port all the time and thus the PDA can be setup to always use this port. This bypasses the SQL Browser service and simplifies any firewall modifications. To configure SQL Server on a fixed port follow these steps:

 

  1. On the desktop start SQL Server Configuration Manager (Start / Programs / SQL Server 2005 / Configuration Tools/ SQL Server Configuration Manager)

    SQLServerConfigurationManager.JPG
  2. Click on the SQL Server 2005 Network Configuration  node on the left hand side
  3. Select the Protocols for SQLExpress node, a list of protocols will be displayed on the right
  4. Double click on TCP/IP on the right hand side, the TCP/IP properties window will be displayed

    TCPIPProperties.JPG
  5. Ensure that Enabled = True
  6. Click the IP Addresses tab
  7. Ensure that Active and Enabled are set to Yes for all IP1, IP2, IP3 etc. (you may have one or more IPx settings)
  8. In the IP All section clear the TCP Dynamic Ports setting
  9. In the IP All section enter a port for the TCP Port setting greater than 1000 and less that 65536. E.g. Enter 2385, this will be your fixed port for SQL Express. If you find you have a port conflict pick a different number.

    IPAddresses.JPG
  10. Click Apply and OK
  11. You need to restart SQL Express. Click the SQL Server 2005 Services node on the left hand side.
  12. Right click on SQL Server (SQLExpress) on the right hand side and select Restart. The new port settings will be activated
  13. If you run a firewall add the port entered in step 9 to the exclusion rules. E.g. for Windows firewall add an Exception port called SQL Express and enter the port number. For Zone alarm click Firewall, Custom and add the port the Allow incoming TCP ports list
  14. Open Times on your PDA
  15. Open the Options / Preferences form and select Server Settings
  16. Clear the text in the Instance field
  17. In the Server field place a comma at the end of the server name and add the port number entered in step 9, e.g. YourPCName,2385

    ServerSettings.JPG
  18. Click Save
  19. If you use Active sync to connect to your PC then start Active sync by cradling you PDA, otherwise start the WIFI or other external network connection on your PDA
  20. Start the Times sync on the PDA using the sync icon

 

If configured correctly the sync will start. Otherwise please make sure the network connection is available by using the vxUtil.

 

Once set up this synchronisation technique can be used for Active Sync, WIFI, Bluetooth or internet (though you will need to set up a port forwarding in your router)

  Products  Times for Pocket PC  Connection Issu...