Advertisement

02.28.2008 at 08:24AM PST, ID: 23200795
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

RDA SQL Server CE (Windows Mobile 5.0) > SQL Server 2000

Hello,

I have a few applications that i wrote in VS 2000 that use RDA to connect to SQL Server 2000 and transfer data from a SQL Server CE 2.0 database to SQL Server 2000.

Recently, I upgraded to VS 2005 AND a new handheld device with Windows Mobile 5.0.  After upgrading the programs that use only a database on the handheld worked fine, but the RDA section was giving an error (i have gone through many diffrent errors with diffrent configurations).

When i have Windows Mobile SQL Mobile 2005 installed I get an error that the System.Data.SQLServerCe is not found or not working properly.  When I have Windows SQL Mobile 2005 AND SQL Server CE 2.0 installed I get an error message that says Cannot open database file, invalid format.

When i programmed these in VS 2000 I used Rob Tiffany's "SQL Server CE Database Development with the .NET Compact Framework".  I am looking for a similar guide.

Thanks

Here is a list of the installed, relivant programs on the handheld at the moment (sorry for the cut off on some of them, I don't know how to view the full name on the Add/Remove programs list on the handheld)...

Microsoft SQL Client 2.0 [EN]
Microsoft SQL Client 2.0
Microsoft SQL Server 2005 Compa...
Microsoft SQL Server 2005 Compa...
Microsoft SQL Server 2005 Compa...
Microsoft .NET CF 1.0 ENU-String...
Microsoft SQL Client
Microsoft SQLCE 2.0 Dev
Microsoft SQLCE 2.0
Microsoft .NET Compact Framework
Microsoft SQL Mobile 2005 Replicat...
Microsoft SQL Mobile 2005 [EN]
Microsoft SQL Mobile 2005


And here is the error im getting on Visual Studio 2005...

A first chance exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll

Here is what the "MsgBox(sqlError.Message)" is returning...

"SQL Server CE encountered problems in opening the SQL Server CE database.  [,,,Database name,,]"

AND

"The file is not a valid database file.  An internal error has occurred. [,,,Database name,,]"

And here is the code that I think is relivant in my VB program (I can post more if needed)...
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
Imports System.IO
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlServerCe
Imports System.Reflection
Imports System.Runtime.InteropServices
Imports System.Windows.Forms
 
Private Sub PushData(ByVal FileName As String)
       Dim rda As SqlCeRemoteDataAccess
       Dim username As String
       Dim password As String
       username = UsernameInput.Text
       password = PasswordInput.Text
       username = "xxxxx"
       password = "xxxxx"
       Try
           'Instantate the RDA object
           rda = New SqlCeRemoteDataAccess
 
           'Connection string to sql server
           Dim remoteConnectionString As String = "Provider=SQLOLEDB;Data Source=xxx.xxx.x.x;Initial Catalog=xxxxxx;User Id=sa;Password=xxxxxx"
           rda.InternetLogin = username
           rda.InternetPassword = password
           rda.InternetUrl = "http://xxx.xxx.x.x/NewHandheldRDA/sqlcesa30.dll"
           Dim TempString As String
           TempString = "Data Source=" & FileName & ";SSCE:Database Password="
           rda.LocalConnectionString = TempString
 
           rda.Push("RandomWeightsRDA", remoteConnectionString, RdaBatchOption.BatchingOn)
       Catch sqlex As SqlCeException
           Dim sqlError As SqlCeError
           For Each sqlError In sqlex.Errors
               MsgBox(sqlError.Message)
           Next
       Catch ex As Exception
           MsgBox(ex.Message)
       Finally
           rda = Nothing
       End Try
   End Sub
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: Navicerts
Solution Provided By: Navicerts
Participating Experts: 0
Solution Grade: A
Views: 106
Translate:
Loading Advertisement...
02.29.2008 at 10:31AM PST, ID: 21016116

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.01.2008 at 12:05PM PST, ID: 21023259

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.01.2008 at 07:57PM PST, ID: 21024872

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.04.2008 at 04:36AM PST, ID: 21040291

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.06.2008 at 10:51AM PST, ID: 21063445

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
02.29.2008 at 10:31AM PST, ID: 21016116
Navicerts,
We have sent a message to some of our more experienced Experts asking them to review your question, and will check back again to see if you are getting the help you need. I also added zones to your question.

Please do not respond to this comment or post another request; we are monitoring the notifications from your question for activity from the Experts.

Thank you for using Experts Exchange,

ForestDenizen
Community Support Moderator
http://www.experts-exchange.com/Q_23202957.html
 
03.01.2008 at 12:05PM PST, ID: 21023259
Navicerts
 
Another message has been sent to some of our more experienced Experts asking them to review your question.
 
I will check back again to see if you are getting the help you need.
 
Thank you for using Experts Exchange,
 
Vee_Mod
Experts Exchange Moderator
Link to CS-G post:
http://www.experts-exchange.com/Q_23202957.html
 
03.01.2008 at 07:57PM PST, ID: 21024872
I heard from a guy that talked to a guy in the hall (not kidding this is what he said on the phone), that i need SQL Server 2005 in order to get data off the hand held.  I am searched around for some sort of documentation on the internet regarding this claim but was unable to locate anything.  Still trying to find a definitive answer.

Thanks
 
03.04.2008 at 04:36AM PST, ID: 21040291
Navicerts,
 
We have made several attempts to bring special attention to your question, but they have not been successful.
 
At this point, you should delete this question and re-submit it.
 
You might consider using different, more appropriate zones for your question; please see http://www.experts-exchange.com/allTopics.jsp for a complete list.
 
Have you posted in your question in three different Zones? The more Zones (maximum of three) you post in, the more Experts will see your question.
 
Read through the advice here: (http://www.experts-exchange.com/questionTips.jsp?cid=616) from some of the top Experts at EE.
 
ACTUAL CLOSING PROCESS:
 
A "Delete Question" link is in the body of your question (the actual first post that is displayed). Clicking on that link should automatically delete the question.
 
There is a "Reason" textbox for you to complete and you can simply insert "No Solution" (or any other reason you like) and we will start the process.
 
Thank you for using Experts Exchange.
 
Vee_Mod
Community Support Moderator
Link to CS-G post:
http://www.experts-exchange.com/Q_23202957.html
 
03.06.2008 at 10:51AM PST, ID: 21063445
I figured out that it is possible to transfer data from the new handhelds (Windows Mobile 5.0) to SQL Server 2000 via RDA; I thought I would pass this info along.  Here are some tid-bits that I was hung up on as well as a MSDN article that got me started on the right path.

 

You need to set up two virtual directories in IIS (one with sscesa20.dll (for old handhelds) and one with sqlcesa30.dll (for new handhelds)).  

Also, you cant use the VS.NET 2005 Upgrade wizard as it breaks the program, you need to make a new project and import the VB files manually.  After making the new project when re-adding the references you need to make sure they are all for version 2.0.  I had to remove and re-add the references before it worked even in the new project.

You need to use the upgrade utility for SQL Server CE on any existing databases, it can be found at Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\platform\processor\Upgrade.exe 

Remove any Import statements that reference System.Data.Common as this does not exist in the 2.0 version.
 

MSDN article that got me started:  http://msdn2.microsoft.com/en-us/library/bb286906.aspx

Accepted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628