Getting Started With SQL Server Mobile
Feb 28, 2006
I have recently upgraded to VS 2005, .NET 2.0, and SQL Server 2005 and am trying to upgrade some of my older Pocket PC 2003 apps. I am trying to educate myself but have become a bit confused about how to proceed and was hoping some of the knowledgable people in this group could point me in the right direction.
I have developed several data collection applications that used Pocket Access on the device and very easily sychronized with a custom MS Access database via Active Sync. I am slowly coming to the realization that using SQL Server Mobile will NEVER be that easy (which is a shame). My questions are......
1. If I want to upgrade to SQL Server Mobile, is there any way that I can continue to easily "synchronize" my data with a MS Access database? If so, any suggestion/links as to how to do this would be greatly appreciated!
2. If the above scenario is not possible, what is the best solution for me to create a distributable application that synchronizes into a local database on a computer that DOES NOT have SQL Server installed?
3.) Related to above, is creating a distributable SQL Server Express database the answer? Can I use the built in SQL Server synchronization tools via this scenario?
Thanks in advance!
Mike
View 1 Replies
ADVERTISEMENT
Aug 8, 2006
Dear ppl,
I am writing an application for a device (MDA Pro T-Mobile) having Windows Mobile 5.0 using
-MS .NET Compact Framework 2.0 SP-1
-SQL Mobile 2005.
-VS 2005 .NET
The application uses Merge Replication. The error occurs in the Synchronise() Method of the SqlCeReplication object.
"SQL Server Mobile encountered problems when opening the database."
repl.AddSubscription(AddOption.CreateDatabase);
repl.Synchronize();
I don't understand why I am having this error. It does create the database on AddSubscription() method but it is failing opening the database on Synchronise(). I have also tried uninstalling and then reinstalling all the SQL Mobile components in the following order.
-sqlce30.wce5.armv4i.cab
-sqlce30.repl.wce5.armv4i.cab
-sqlce30.dev.ENU.wce5.armv4i.cab
However, when i run this application on a device(Dell X50 AXIM) with Pocket PC 2003, it runs fine creating the database and sysnchronising it.
The target platform for the project is Windows Mobile 5.0 Pocket PC SDK.
Does any one have any clue what could be the problem ?
Regards
Nabeel
View 6 Replies
View Related
Mar 23, 2006
Hello,
I am developping a non-managed C++ application for PocketPC using a SQL Server mobile database.
The application is compiled for PocketPC 2003 and uses SQL Server Mobile v2. I use Visual Studio 2005. But I need to compile the application for Windows Mobile 5.0 devices. So I installed the WM5 SDK and had the WM5 into my project configuration.
The "ssceoledb.h" which I include incluses the "transact.h" file. But my problem is that this file is only provided with the PocketPC 2003 SDK and not in the WM5 SDK.
So I cannot use the WM5 configuration project with SQL Server. I also tried with the last SQL Server Mobile 2005 (ie v3.0) and the "ssceoledb30.h" also includes "transact.h".
Did I miss something to install ?
Do you know how I can resolve the problem ?
By advance, thank you for any answer.
--
Gregoire
View 9 Replies
View Related
May 18, 2006
Using MS VS 2005 (incl SQL Server Mobile)
MS Pocket PC 2005 SDK
I am working on a project that builds for Pocket PC on both Mobile 2003 and Mobile 5. The project uses/will use SQL Server Mobile to store local data.
Project created from new with support for both platforms. I include required header files ssceerr30.h and ssceoledb30.h.
Project builds fine in WM2003 configuration, release and debug.
When I build for WM5 the compiler cannot find the header file transact.h. This is included from within ssceoledb30.h. Same as under WM2003.
In WM2003 configuration if I highlight the ssceoledb30.h include in Visual Studio and open the header, it takes me to <Visual Studio dir>SmartDevicesSDKSQL ServerMobilev3.0. I then locate the include for transact.h and do the same, which takes me <Visual Studio dir>SDKPocketPC2003include. The file exists.
If I repeat the above 'browsing' under the WM5 configuration, ssceoledb30.h takes me to a different copy in the WM5 SDK directory. There is no diff between the file here and the other copy used by WM2003. If I attempt to open transact.h - file does not exist.
Fix (which I'm not too sure about, i.e. is it OK?) - If I copy transact.h to the WM5 SDK directory, the project builds.
Why has transact.h disappeared from WM5 SDK?
I can find no ref's to this problem anywhere. Is my installation of the WM5 SDK corrupt? What else could I be missing?
Is there a sample for SQL Server mobile (like the NorthwindOLEDB sample) that comes configured to build for WM5?
View 1 Replies
View Related
Apr 24, 2006
Hi folks, I'm new to Windows Mobile progamming, and new to this forum. Apologies in advance if I'm asking a boneheaded question, but I've done searches and can't find anything directly applicable to my problem.
I'm currently walking through the published MS tutorial in setting up an SQL Server 2005 Mobile application that subscribes to a publication on SQL Server 2005 to exchange information.
I've gotten almost all the way through... successfully set up the server components, creating the publication, etc. On the mobile side, I've been able run the cab files to install the SQL Mobile components and to create the project, add the reference to the dll, and instantiate an engine object. It compiles.
The step in the tutorial after that, though, where you specify the data source from the "data" menu, I've got a problem. When I try to use the "new connection" dialog from choosing the data connection, "MS SQL Server Mobile Edition" doesn't show up as a choice. I've tried choosing any of the other combinations, and in teh subsequent "Connection properties" section my database, SQLMobile (as in their sample) is available, but I get an error when I choose it and click OK. Clicking on "Test Connection" gives me a connection successful message.
My guess is that something about the Mobile server side components is not installed correctly on my development machine, but honestly I have no idea how to begin to fix it. Has anyone seen this problem before and know how to resolve it?
Your time and any knowledge sharing is greatly appreciated.
Thank you,
-Dana
View 8 Replies
View Related
Sep 16, 2007
Hi:
When I try and connecto to SQL CE I always get an invalid operation exception. I"m afraid that I did not follow the proper install for Orcas Beta 2. I can't remember if I was supposed to uninstall SQL Mobile 2005 first or not.
All I know is when I try and use my SQL CE I can't connecto to a DB / sdf file ?
Any help would be appreciated I"m just starting to use SQL CE.
thanks
mark
View 2 Replies
View Related
Jul 21, 2006
This is a great tutorial and it's a shame one of the more important steps was missed.
In the €œCreate the snapshot user€? section you you find the steps to create the snapshot_agent account. Then in the €œCreate the snapshot folder€? section you find the share and folder permissions. However, at no point do the instructions advise you about adding the snapshot_agent to the SQL Server Logins. The result is that agent cannot perform the initial snapshot but you won't find this out until 50 steps later after Step 10 in the section €œCreate a new subscription".
To get back on track, openthe Object Explorer's Security section and add the snapshot_agent to your logins. Then using the "User Mappings", set an appropriate level for the SQLMobile database role. Once completed you then need to run the agent.
Right-click the SQLMobile publication you created and select "View Snapshot Agent status". From that dialog you can select "Start" to run the agent. When it completes, you can return to the tutorial section "Create a new subscription" and continue with the tutorial.
View 4 Replies
View Related
Nov 3, 2007
I am studying the tutorial in SQL Server 2005 Mobile Edition Books Online, and the topic is Creating a Mobile Application with SQL Server Mobile. I have got a problem when creating a new subscription after created a new SQL Server Mobile database. And the problem is shown below:
New Subscription Wizard
- Beginning Synchronization (Success)
- Synchronizing Data (100%) (Error)
Messages
* Failure to connect to SQL Server with provided connection information. SQL Server does not exist, access is denied because the IIS user is not a valid user on the SQL Server, or the password is incorrect.
HRESULT 0x80004005 (29061)
* 無法完æˆ?作æ¥ã€‚
- Finalizing Synchronization (Stopped)
- Saving Subscription Properties (Stopped)
Before I have met this problem, I have finished all the task. And I can browse the localhost web site by using anonymous account even I use internet explorer or browse the directly in IIS.
Does anyone can solve it?? Thank you very much~~~
View 3 Replies
View Related
Apr 19, 2007
We got a cluster server with Win2K3 sp1 with SQL 2K sp4, the server just re-start without failover, can see the following on the application log:
[sqsrvres] CheckQueryProcessorAlive: sqlexecdirect failed
[sqsrvres] printODBCError: sqlstate = 01000; native error = 2746; message = [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()).
It cause both instances on the server get restarted itself, did a search on the net and not much luck with it. Got some people saying its because of the clsuter admin can't query SQL and it just fail itself. And its using Name pipe rather then TCP/IP, so by putting an alias there will get the problem solved. But I would like to be sure. Does anyone have that issue before? And found a solution?
Thanks
View 3 Replies
View Related
Dec 12, 2006
I need some help please. My MSDE database won't start after a reboot. This is a SurfControl MSDE database. It wasn't too healthy yesterday when the log on the SurfControl MSDE database filled so I truncated it and shrunk the file. Everything was cool until I rebooted the server today:-(
Trying to start the service it says "the system cannot find the file specified" - ok to that and it says "An error 2 (the system cannot find the file specified" occured while performing this service operation on the mssqlserver service "
sqlserver.exe -c -f gets this result
2005-11-26 20:00:03.28 server Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003 Microsoft Corporation
Desktop Engine on Windows NT 5.0 (Build 2195: Service Pack 4)
2005-11-26 20:00:03.30 server Copyright (C) 1988-2002 Microsoft Corporation.
2005-11-26 20:00:03.32 server All rights reserved.
2005-11-26 20:00:03.32 server Server Process ID is 3636.
2005-11-26 20:00:03.32 server Logging SQL Server messages in file 'D:Program FilesMicrosoft SQL ServerMSSQLLOGERRORLOG'.
2005-11-26 20:00:03.35 server Warning: -f command line flag used...minimal server configured.
2005-11-26 20:00:03.35 server SQL Server is starting at priority class 'normal'(2 CPUs detected).
2005-11-26 20:00:03.46 server SQL Server configured for thread mode processing.
2005-11-26 20:00:03.46 server Using dynamic lock allocation. [500] Lock Blocks, [1000] Lock Owner Blocks.
2005-11-26 20:00:03.60 server MS DTC initialization skipped because of start up option.
2005-11-26 20:00:03.60 server ksconsole: Could not initialize console operation.
2005-11-26 20:00:03.61 server Error: 17822, Severity: 16, State: 1
2005-11-26 20:00:03.61 server Could not load Net-Library 'SSNETLIB'..
2005-11-26 20:00:03.61 spid4 Warning ******************
2005-11-26 20:00:03.61 server Error: 17059, Severity: 18, State: 0
2005-11-26 20:00:03.61 server Operating system error 0: The operation completed successfully...
2005-11-26 20:00:03.61 spid4 SQL Server started in single user mode. Updates allowed to system catalogs.
2005-11-26 20:00:03.63 server Unable to load any NETLIBs. Server shutting down.2005-11-26 20:00:03.63 spid4 Starting up database 'master'.
Any ideas? I reall need to get it working. I don't think there are any backups
View 1 Replies
View Related
Jan 6, 2007
I'm at a complete loss as to how to use databases in ASP.NET.
Everything seems to be set up for SQL Express, but I need to use SQL Server 2005. The SQL Server is not located on the same machine as the website. Then there are the databases I can create through Visual Studio 2005, what exactly are these? Are these local, are these via SQL Express, or do these somehow link to the database server? What does it mean to attach and detach?
There are a lot of pieces here, and I don't know how they fit together.
First, can someone help me with an overview of how all this fits together?
Second, how can I use SQL Server 2005, and not SQL Server Express for my data and for membership, personalization, profiles, etc.?
Finally, should I be able to connect to the remote SQL Server database from my home development machine? Do I need to use IIS to do this?
Thanks in advance for your help,
Diane
View 11 Replies
View Related
Jun 1, 2001
Hi there,
Can anyone suggest me any other way to start NT servies like starting the services from command prompt.
Problem faced: We have Oracle running under Windows NT. Some times when we stop the Oracle server, we need to start the server twice through window menu. However, we are able to start the server only once through command prompt. Is this known problem? Any permanent solutions to this? Any recommendations/suggestions..
thank you.
regards,
Nana
View 1 Replies
View Related
Jul 11, 2007
How can I check whether Report Server is running or stopped with some of ReportService2005/ReportExecution2005 web services API?
View 3 Replies
View Related
Mar 19, 2008
Well, its a bit embarrasing to have to ask such ignorant questions, but......
I've been using Oracle for a long time. And VERY occasionally I dabbled just a bit into SQL Server 2000.......
I now would like to create a database driven web application, so I downloaded the Express set. And the books online, in the hope they'd be well organized and provide simple straightforward information on how to do things.... If its there, I'm not finding it.
First question: Is there SOMEWHERE online tutorial/information on specifically how to do things? Something for a user familiar with relational databases and design and such, but needing to understand specifically how THIS database product works?
For example, I managed to get the management studio express open. And in "Registered Servers" there's something called Database Engine, within which there's serversqlexpress.
Can I create an instance (or whatever it is in the MS world) OTHER than sqlexpress, and do I need to? I ask because it appears sqlexpress is on my "C" drive, and I don't want it there... There appear to be system databases within sqlexpress, and I presume they'll grow... SO, do I need to get all this off to another disk? And, if so, how? Feel free to point me to the right documentation - I tried the SQL Server 2005 Tutorials, but after going through the "lesson" on SQL Server Management Studio I realized it was geared toward "how to open a window" rather than how to actually do anything... I found another topic in here that pointed to the "Getting Started White Paper", but that doesn't appear to be valid any more. It also pointed to the "Management Studio Express Primer" but that link just throws a 404 error...
And what on earth does the SQL Server Configuration Manager do? I've gotta be missing something that's obvious to the informed observer...
View 2 Replies
View Related
Jan 16, 2004
get a prompt up (in a program like telnet / msdos window) so that I can run sql commands on my webmatrix accounts sql server. I've been trying to connect using telnet but i think maybe I've got the wrong end of the stick or I'm doing something wrong.
here's a link where you click through "how to connect" on the "myserver page" I searched the page for "connect" and found 0 occurances.
http://europe.webmatrixhosting.net/text.aspx?tmpl=qa#3.7
View 5 Replies
View Related
Nov 4, 2005
I am looking for a resource that will speak to the process of how to create a SQL Express database within VS 2005 - create relationships within the Database Diagrams (right now it complains that it does not have a valid dbo user and that I do not have permission impersonate the dbo user - if i tel it to grant me access it gives me the same message) - what security issues need to be considered as far as the SQL Express stuff is concerned. I am also wanting to know what pieces I need to have on my Internet and Intranet web servers so that when I delpoy my .net 2.0 app that the servers will be able to deal with the SQL Express database that gets copied out there? Should SQL Express on the web server be set to windows auth or mixed mode auth? If I choose windows auth does that mean that the ISP (internet server) has to have an NT account created for my web app so that I can connect to the SQL mdf?
I guess I am just kinda struggling with the process from creation of the database to making sure that when I deploy the application that it will be available.
Any help would be appreciated!Thanks,Derek
View 1 Replies
View Related
Mar 2, 2015
SQL Browser could not be started. Reason: SQL Browser could not be started. Reason:Service 'SQLBROWSER' start request failed.
SQL Server Browser configuration for feature 'SQL_Browser_Redist_SqlBrowser_Cpu32' was cancelled by user after a previous installation failure. The last attempted step: Starting the SQL Server Browser service 'SQLBrowser', and waiting for up to '900' seconds for the process to complete.
View 1 Replies
View Related
Sep 21, 2006
I downloaded VS studio express, and created a personal website using the wizard to test drive the thing. When I hit ctr + f5 to run the sample provided, then I get this message:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) "
I tried disabling the firewall (Norton's firewall because Windows is disable always). Any suggestions? This is a brand-new machine, running XP sp2, just downloaded the VS studio express.
I really appreciate your inputs.
Regards,
Carlos
info@paesano.com
View 4 Replies
View Related
May 6, 2008
Hi,
Newbee here.
Can somebody help me just get started is SSRS?
Where do I go to start it up? etc...
Steve
View 4 Replies
View Related
Oct 16, 2006
I have been running SQL Server 2005 Express with the Management Studio Express. I just downloaded and installed the Eval (Trial) version of SQL Server 2005 but have not been able to get it working. Here are a couple of questions:1. Is there a potential confict with having both versions on my machine. I don't want to uninstall express since I may have to do back to it in 180 days.2. Is there a program comparable to the Management Studio for the Eval version of SQL Server 2005?3. How do I access the Eval version? I found the folder where it installed on my C drive but don't know what to do with it.Thanks for any help you can provide.
View 3 Replies
View Related
Jan 9, 2007
Hi all
I'm a newbie with Visual studio 2005 .Recently i installed it ,AFAIK sqlServer 2005
also is shiped with vs2005.after installing vs2005 i have the following entries in my
StartMenu/All Programms/
1) Microsoft Sql Server 2005
Configuration Tools
sql Server Configuration Manager
Sql Server Error and usage Reporting
SQL Server Surface Area Configuration
2) Microsoft Visual studio 2005
.....
........
Apparently there isn't any ENTERPRISE MANAGER and query analyzer.?
By the way in Visual studio IDE i noticed "Server Explorer" nexed to "Solution Explorer"
but i didn't find any Database entry or "Create New Database" or some thing like this.!!!
Could any one help me.? i want to Create Database, Tables,....
Thanks in advance.
Regards.
View 2 Replies
View Related
Apr 26, 2004
Hi!
I have a small problem , but it's still a problem.
I have a SQL Server Agent job that runs a .cmd file. This CMD is logged to a textfile.
This process is locked, waiting for me to type a password, but I have nowhere to type that pass.
What I want to do is kill the process that i locking the logfile, because since the logfile is locked, the job cannot be started again (and it's a scheduled job).
The jobs status is 'Not Running'.
I have solved the problem by making the cmd write to another logfile, so the schedule will work, but the file is still locked, and I don't want to restart the server since it's a productionserver.
How to I find the process that is initialized from SQL Agent, and kill it?
Thanks!
Bix
View 4 Replies
View Related
Jun 15, 2006
I am migrating a pocket PC application from VS 2003 to VS 2005 and a few weeks ago I hit the following problem when replicating
A SQL Mobile DLL could not be loaded. Reinstall SQL Mobile. [ DLL Name=sqlceca30.dll]
Scanning forums for help I saw that other people had had this problem and one
http://www.eggheadcafe.com/aspnet_answers/NETFrameworkCompactFramework/Feb2006/post25814466.asp
suggested that this problem could be circumvented by getting the replication object early and then continuously using the same object for subsequent replications.
I did this and it works a lot better now but ever so often I get another error which is
Native Error 28559 SQL Mobile encountered problems when opening the database
My only option at this point is to stop and start the application which cures the problem.
View 4 Replies
View Related
Apr 25, 2007
Hello all,
We have noticed in our environment slowness when starting SSIS packages from SQL Server jobs. I did a quite detailed study on when the slowness actually occurs and what are the consequences. Here are the results.
The SSIS package execution is slow if all the following is true:
The package is started from a job. If started directly as a SSIS package, the execution is fast.
The job is running on a 64 bit Windows Server (SQL Server 2005 SP2). The SSIS package and the job are either on the same server or on different servers (the second server is SQL Server 2005 SP1). If the job is run on a 32-bit workstation (Windows XP SP2) the execution is fast (the SSIS package still being on the server).
The package contains tasks.
§ If there are no tasks, just an empty sequence container, the execution is fast.
§ If a package that has no tasks has logging into the database configured, the execution is fast.
§ Slowness has been verified with A) a package having a single Execute SQL statement and B) a package having a Send Mail task.
It doesn't seem to matter which user account is used on when running the job.
The slowness happens in several locations, e.g. (there are also others, at least the following have been verified)
There is exactly 30 seconds lag between starting the job (as seen from job history) and when PreValidate (as seen in the sysdtslog90 table) of the package appears in the log.
The validation of the package takes 15 seconds (the time difference in the log betwen PreValidate and PackageStart)
The problem is really affecting our production environment. Currently the only solution we have come up is to put all the jobs on a workstation and use the workstation as a production server for the jobs.
I haven't heard anyone else having the same problem.
View 26 Replies
View Related
Sep 13, 2006
Hi,
Was trying to open AdventureWorks when i got this error: "There is no editor available "C: Program Flies.....AdventureWorksDW_Log.LDF'
Make sure the application for the file type(.LDF) is installed.
How can this error be corrected? I also have some error on mdf not installed.May i know how should be the initally steps to be done inorder for me to view this database.
And if i do have a database from microsoft access, what are the steps that i need to do inorder to get it export to Microsoft SQL Server Management Studio Express. Please advise as i really new to it. Thanks!
View 6 Replies
View Related
May 18, 2015
while failover from one node to another node in cluster environment. cluster node is moving to another node but my SQL server services are not started.in event viewer i am getting bellow errorr event id 19019
[sqsrvres] StartResourceService: StartService (MSSQLSERVER) failed. Error: 42d
[sqsrvres] OnlineThread: Error 42d bringing resource online.
View 2 Replies
View Related
Mar 6, 2006
It is possible to access a Sql Server 2005 Mobile database in a VS2003 application (compact framework) ?
Thanks
Robson
View 4 Replies
View Related
Sep 8, 2007
I receive error 25123 on my PPC (audiovox 6600) in a reproducable way (usually) with .net 2.0 application that is using SQL CE that I wrote:
Open the application
Connect to the database
Close the applicaton
Re-Open the application
Connect to the database <-- Error occurs
I will also receive the error if my application isn't the first application launched (or very close to the first to launch).
I don't believe it's a memory issue as according to the memory manager I have plenty of memory:
At boot up only start screen items loaded: 18.46 Used 49.89 Free
Launch Resco File Explorer to click EXE: 19.18 Used 49.18 Free
Launch my application (no DB connection): 23.64 Used 44.71 Free
Connect to the DB and do select count(*) from a table with 0 rows: 26.27 Used 42.08 Free
Close the application (this.Close() on the form: 19.38 Used 48.97 Free
Relaunch App and connect to DB receive error: around 38 Used around 30 free
I was unable to reproduce the issue right now while typing this message, the last sets of numbers are from memory, and include other applications that are currently running.
The only way I have to get SQL CE to load again is to soft reset the PPC. If the application is able to connect to SQL CE at least once it is fine up till I close it and re-open the application. So it either connects and runs great, or it can't connect at all.
Any help in resolving this issue would be greatly appreciated.
Wayne
View 1 Replies
View Related
Feb 12, 2014
I would like to find Query to retrieve User DataBase Startup Time from SQL server that we see in the Sql Server Log.
I was able to find the Server Startup Time but not the individual Databases .
View 1 Replies
View Related
May 12, 2006
command in principal server
ALTER DATABASE database name
SET PARTNER = 'TCP://<mirror_server_name>:5022'
return:
Msg 1413, Level 16, State 1, Line 1
Communications to the remote server instance 'TCP://<mirror_server_neme>:5022' failed before database mirroring was fully started. The ALTER DATABASE command failed. Retry the command when the remote database is started.
This problem is only in production database any testing database include adventureworks mirroring sucessfuly. Why is problem:?
size? database > 9GB
slow HW? Principal database Intel D 3Ghz,4GB RAM, 4x 15k RPM HDD RAID 5 / Mirror database 2x Xeon 3Ghz,4GB RAM,6x HDD 10k RPM RAID 10
Slow LAN? both servers connect 1Gb/s
please help me
THX
View 17 Replies
View Related
Sep 4, 2007
Hello,
I'm new to SQL server 2005. I installed SQL server 2005 and had some problems with the original install. I therefore uninstalled SQL server 2005. Rebooted and than installed SQL server 2005 again. Everything appears to have installed correctly except for the fact that when I start SQL Server Management Suite I get 2 copies running in the foreground. The last copy of the SQL Server Management Suite shows a dialogue box that contain a warning sign (yellow triangle) with no text but an OK button is in the dialogue box. When I press the OK button, this instance of SQL Server Management Suite kills itself. The first instance is now given window focus and it brings up the "Connect to Server" dialogue box. I can connect to my local server and run a script to add columns to the database. But everytime I bring up SQL Server Management Suite, I always end up with 2 copies running and I have to hit the OK button to get rid of the second copy. Can anyone help me get ride of this annoying problem?
View 1 Replies
View Related