Showing posts with label desktop. Show all posts
Showing posts with label desktop. Show all posts

Wednesday, March 28, 2012

How to transfer database to mobile device?

Hi all, I'm new to mobile devices.

I have a desktop application that uses SQL Server Compact Edition. I will soon have a mobile application that will use the same database. How can I (at runtime of the desktop app, say when the user clicks a button) transfer the sdf file to the mobile device? I'm not necessarily interested in synchronizing the databases, simply overwriting the database on the mobile device with the one on the desktop would suffice.

Is something like this possible?

Thanks!

You can copy the SDF file from the desktop to the device using RAPI.|||Thanks, I'll check that out.

Friday, March 23, 2012

How to tell which service pack of SQLCE is installed on the desktop

The title about says it all. For merge replication, I need to make sure the
service packs match up between SQL2000 and SQLCE. How do I tell which SQLCE
version is in?
IIRC check the folder C:\Program Files\Microsoft SQL Server CE
2.0\Redist\Server, the latest one should be there.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Earl" <brikshoe@.newsgroups.nospam> wrote in message
news:esst%23$86FHA.1864@.TK2MSFTNGP12.phx.gbl...
> The title about says it all. For merge replication, I need to make sure
> the service packs match up between SQL2000 and SQLCE. How do I tell which
> SQLCE version is in?
>
|||actually this is good up to sp2. After sp 2 you need to check the versions
of the binaries in C:\Program Files\Microsoft SQL Server CE 2.0\Server\
For sp 4 they are
sscesa20.dll 2.00.7331.0
sscerp20.dll 2.00.7331.0
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Earl" <brikshoe@.newsgroups.nospam> wrote in message
news:esst%23$86FHA.1864@.TK2MSFTNGP12.phx.gbl...
> The title about says it all. For merge replication, I need to make sure
> the service packs match up between SQL2000 and SQLCE. How do I tell which
> SQLCE version is in?
>
|||Thanks Hilary; that's helpful.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uLeiiSD7FHA.1032@.TK2MSFTNGP11.phx.gbl...
> actually this is good up to sp2. After sp 2 you need to check the versions
> of the binaries in C:\Program Files\Microsoft SQL Server CE 2.0\Server\
> For sp 4 they are
> sscesa20.dll 2.00.7331.0
> sscerp20.dll 2.00.7331.0
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Earl" <brikshoe@.newsgroups.nospam> wrote in message
> news:esst%23$86FHA.1864@.TK2MSFTNGP12.phx.gbl...
>

Monday, March 19, 2012

How to take the database online/ bring it offline by command prompt?

Hi,
I now using MS SQL SERVER Desktop Edition, as I know there is no enterpirse
belongs with this edition. I would like to perform a task that is provided
in the enterprise manager.
The task is "select a database--rightclick->All Tasks-->Taks Offline/Bring
Online"
The database file will then disconnect and connect to the server.
Anybody know how to perform the same task by command prompt as there is no
enterprise manager?
Thanks
RC
Hi,
From OSQL use the below commands:-
For Offline
ALTER DATABASE <DBNAME> SET OFFLINE
For Online
ALTER DATABASE <DBNAME> SET ONLINE
Note:
You have many options in ALTER DATABASE command, refer books online for more
information.
THanks
Hari
SQL Server MVP
"RC" <rc@.gmail.com> wrote in message
news:u2q2ST%23PFHA.3560@.TK2MSFTNGP14.phx.gbl...
> Hi,
> I now using MS SQL SERVER Desktop Edition, as I know there is no
> enterpirse
> belongs with this edition. I would like to perform a task that is provided
> in the enterprise manager.
> The task is "select a database--rightclick->All Tasks-->Taks Offline/Bring
> Online"
> The database file will then disconnect and connect to the server.
> Anybody know how to perform the same task by command prompt as there is no
> enterprise manager?
> Thanks
> RC
>

Monday, March 12, 2012

how to sync mobile database and ms-access database?

Hi,
i am working with windows mobile Cf 2.0 and desktop. i got problem when i were trying to synd mobile database and ms-access database.
my requirement is online i want to transfar data records from mobile to desktop vice versa.
but how? i dont knwo any body would like to guide me.
i am ready to accepting yours valuable views.
waiting
bye
Rajat.maybe you should have a look at the ADS Wizard http://www.microsoft.com/downloads/details.aspx?FamilyId=B967347A-5DD0-445C-8A9F-AEA3DB9EC4BC&displaylang=en|||Hi,
i make more clear, what actualy i want to do.
i want to access mobile databse (.sdf) from desktop application which is build in .net.
or
i want to access desktop access databse (.mdb) from mobile application which is build in .net.
mobile may be pocket or smart phone.
thanks for all efforts
bye
Rajat|||

Access device database from desktop:

1. Copy SDF file from device to desktop using, say, RAPI.

2. Access this copy from desktop application.

3. Copy changed database back to device.

Access Jet database (which you call “Access”) from device:

1. Create Web Service to expose Jet database remotely.

2. Access this web service from device.

|||Hi thanks for concering,
i have tryed copying approch from device to desktop but i thing it is not systematic work.
i send u a link there say it can possible which we are discusing but i can not able to understand.
please take a look the link;

Pocket PC with SQL CE - The Code Project - .NET Compact Framework

may be it will help u to make that which i want and i am tring reqularly.
good luck you and myself also.
bye|||Ilya, do you have any tips on how to do this? I have an existing program that worked this way using cdb files and DESKTOPTODEVICE/DEVICETODESKTOP APIs. With our latest batch of iPAQs that come preloaded with Windows Mobile 5, I am unable to use our existing system and must rewrite our program. I'd like to keep the webservice as is and only change the local desktop calls to the mobile device.

Are there any links that you can provide (or sample code) for Steps 1, 2 & 3 when using sdf files and I assume SqlServerCe ?

Thank you,
David
|||hi,
i have made a dll which makes connection between M to D/ D to M.
but i dont know how to send it.
give me right way to send the file to you by the mail.
bye
keep connecting.|||you can zip & email it to

rocndav at hotmail dot com

Thank you,
David
|||Well I was able to get mine to work by using RAPI commands to copy the sdf file to my desktop and then use CE31 runtime to be able to read the sdf file. I was able to communicate with my existing web service.

These links really helps me out, hopefully this saves the next person some time:

Rapi sample:
http://msdn2.microsoft.com/en-us/library/ms837846.aspx

SQLCE 3.1:
http://blogs.msdn.com/mgaur/archive/2007/01/16/sql-server-compact-edition-3-1-launched.aspx

how to sync mobile database and ms-access database?

Hi,
i am working with windows mobile Cf 2.0 and desktop. i got problem when i were trying to synd mobile database and ms-access database.
my requirement is online i want to transfar data records from mobile to desktop vice versa.
but how? i dont knwo any body would like to guide me.
i am ready to accepting yours valuable views.
waiting
bye
Rajat.maybe you should have a look at the ADS Wizard http://www.microsoft.com/downloads/details.aspx?FamilyId=B967347A-5DD0-445C-8A9F-AEA3DB9EC4BC&displaylang=en|||Hi,
i make more clear, what actualy i want to do.
i want to access mobile databse (.sdf) from desktop application which is build in .net.
or
i want to access desktop access databse (.mdb) from mobile application which is build in .net.
mobile may be pocket or smart phone.
thanks for all efforts
bye
Rajat|||

Access device database from desktop:

1. Copy SDF file from device to desktop using, say, RAPI.

2. Access this copy from desktop application.

3. Copy changed database back to device.

Access Jet database (which you call “Access”) from device:

1. Create Web Service to expose Jet database remotely.

2. Access this web service from device.

|||Hi thanks for concering,
i have tryed copying approch from device to desktop but i thing it is not systematic work.
i send u a link there say it can possible which we are discusing but i can not able to understand.
please take a look the link;

Pocket PC with SQL CE - The Code Project - .NET Compact Framework

may be it will help u to make that which i want and i am tring reqularly.
good luck you and myself also.
bye|||Ilya, do you have any tips on how to do this? I have an existing program that worked this way using cdb files and DESKTOPTODEVICE/DEVICETODESKTOP APIs. With our latest batch of iPAQs that come preloaded with Windows Mobile 5, I am unable to use our existing system and must rewrite our program. I'd like to keep the webservice as is and only change the local desktop calls to the mobile device.

Are there any links that you can provide (or sample code) for Steps 1, 2 & 3 when using sdf files and I assume SqlServerCe ?

Thank you,
David
|||hi,
i have made a dll which makes connection between M to D/ D to M.
but i dont know how to send it.
give me right way to send the file to you by the mail.
bye
keep connecting.|||you can zip & email it to

rocndav at hotmail dot com

Thank you,
David
|||Well I was able to get mine to work by using RAPI commands to copy the sdf file to my desktop and then use CE31 runtime to be able to read the sdf file. I was able to communicate with my existing web service.

These links really helps me out, hopefully this saves the next person some time:

Rapi sample:
http://msdn2.microsoft.com/en-us/library/ms837846.aspx

SQLCE 3.1:
http://blogs.msdn.com/mgaur/archive/2007/01/16/sql-server-compact-edition-3-1-launched.aspx

How to sync data in multiple instances of a database?

Hi,
I have a question about how to keep the data in multiple instances of a
database in sync.
Our application is a stand alone desktop application, being used in all
of our branches - the exact same app running on the exact same
database, the only difference being the data in the database. The
backend is a SQL Server 2000 database, which is relatively small with
about 50 tables. Each branch would have its own data, and they would
generate reports at regular intervals and send it across to the main
office, and everything was going great. Now, a requirement that the
data of all branches be available to all other branches has come up.
One central database, though very much preferred, is ruled out because
of various reasons - operational, financial... but more importantly to
us developers, the application was designed to talk to the database
very frequently, so remoting will slow down the app which is not
acceptable to the accounting guys who use the app.
I would like to know the options available to us for getting the data
in one database to another. PK columns are all made of UUIDs, so the
problem of duplicate PKs won't be there while importing data of one
branch into another.
I read about publishing/subscription, but can't quite figure out how to
implement: each database needs to be a publisher as well as a
subscriber...
I also thought of using the bcp utility to export the data from each
branch and send it to all other branches, where we could use bcp to
import the data from all other branches, but some problems there: can
only new data be exported, or if not, can bcp be adviced to not copy
duplicate rows while importing? And then there's the question of
getting the exported file across to all the branches automatically...
Any ideas, suggestions are greatly appreciated. Additional info:
branches are quite far away from one another, worst case is about 2100
kms! And there's not a great deal of data: I would guess about a few
hundred rows of data a day.
- RameshThis sounds like a merge replication scenario. Each branch could be a
publisher to the central DB. The central DB could then re-publish to the
branches. You'd have a filter to ensure that a branch is not subscribing to
its own data.
You may want to post this in the .replication newsgroup. Ask for Hilary.
;-)
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
.
"Ramesh" <dramesh@.rushmorent.com> wrote in message
news:1141154664.627611.186750@.v46g2000cwv.googlegroups.com...
Hi,
I have a question about how to keep the data in multiple instances of a
database in sync.
Our application is a stand alone desktop application, being used in all
of our branches - the exact same app running on the exact same
database, the only difference being the data in the database. The
backend is a SQL Server 2000 database, which is relatively small with
about 50 tables. Each branch would have its own data, and they would
generate reports at regular intervals and send it across to the main
office, and everything was going great. Now, a requirement that the
data of all branches be available to all other branches has come up.
One central database, though very much preferred, is ruled out because
of various reasons - operational, financial... but more importantly to
us developers, the application was designed to talk to the database
very frequently, so remoting will slow down the app which is not
acceptable to the accounting guys who use the app.
I would like to know the options available to us for getting the data
in one database to another. PK columns are all made of UUIDs, so the
problem of duplicate PKs won't be there while importing data of one
branch into another.
I read about publishing/subscription, but can't quite figure out how to
implement: each database needs to be a publisher as well as a
subscriber...
I also thought of using the bcp utility to export the data from each
branch and send it to all other branches, where we could use bcp to
import the data from all other branches, but some problems there: can
only new data be exported, or if not, can bcp be adviced to not copy
duplicate rows while importing? And then there's the question of
getting the exported file across to all the branches automatically...
Any ideas, suggestions are greatly appreciated. Additional info:
branches are quite far away from one another, worst case is about 2100
kms! And there's not a great deal of data: I would guess about a few
hundred rows of data a day.
- Ramesh|||Does each brach really need a complete copy of transactional data from all
other branches, or do they simply need summary data for inclusion in
soncolidated reports?
"Ramesh" <dramesh@.rushmorent.com> wrote in message
news:1141154664.627611.186750@.v46g2000cwv.googlegroups.com...
> Hi,
> I have a question about how to keep the data in multiple instances of a
> database in sync.
> Our application is a stand alone desktop application, being used in all
> of our branches - the exact same app running on the exact same
> database, the only difference being the data in the database. The
> backend is a SQL Server 2000 database, which is relatively small with
> about 50 tables. Each branch would have its own data, and they would
> generate reports at regular intervals and send it across to the main
> office, and everything was going great. Now, a requirement that the
> data of all branches be available to all other branches has come up.
> One central database, though very much preferred, is ruled out because
> of various reasons - operational, financial... but more importantly to
> us developers, the application was designed to talk to the database
> very frequently, so remoting will slow down the app which is not
> acceptable to the accounting guys who use the app.
> I would like to know the options available to us for getting the data
> in one database to another. PK columns are all made of UUIDs, so the
> problem of duplicate PKs won't be there while importing data of one
> branch into another.
> I read about publishing/subscription, but can't quite figure out how to
> implement: each database needs to be a publisher as well as a
> subscriber...
> I also thought of using the bcp utility to export the data from each
> branch and send it to all other branches, where we could use bcp to
> import the data from all other branches, but some problems there: can
> only new data be exported, or if not, can bcp be adviced to not copy
> duplicate rows while importing? And then there's the question of
> getting the exported file across to all the branches automatically...
> Any ideas, suggestions are greatly appreciated. Additional info:
> branches are quite far away from one another, worst case is about 2100
> kms! And there's not a great deal of data: I would guess about a few
> hundred rows of data a day.
> - Ramesh
>|||Hi JT,
Each branch needs a complete copy of all the data from all the
branches, please don't ask me why. It is as if there is one central
database and every branch is connected to it, except that there are
multiple copies of the data, one at each branch. (:
- Ramesh|||Hi Tom,
May be you are right; I should post this question in the other group.
Let me read about merge replication a bit before posting it there.
Thanks anyway.
- Ramesh