A
Andy
I have a web service that collects data.
However the service is hosted on a machine that it is difficult for me to
access and administer ...
As the database is small, I have added a web service method that returns the
entire database as a DataSet.
What I would like to do is create a local copy of the database from my
dataset so that I can back it up and perform any other admin/maintenance
tasks that I may want to do?
However I am finding this difficult.
I could write the whole lot out as an XML file but I want to view/query in
Enterprise manager just like any other database and so don't really want to
use the XML serialization methods if I can help it.
What I would like to do is just point the dataset at a newly created
database and say "save yourself there please" - metadata, relations and all.
Is there a "reasonably simple" idiomatic way to do that - or do I have to
naviagation my way all around the DataSet pulling out tables, columns, rows
and reconstructing the database bit by bit on my local machine?
Ideally I would like to be able to save the database to any of MSDE, SQL
Express, SQL2000, SQL2005 but if I could just get it working for one of
those initially, I would be happy.
Alternatively if this approach is completely flawed from start to finish and
there is a better way to achieve the same objective I would welcome
suggestions.
TIA
However the service is hosted on a machine that it is difficult for me to
access and administer ...
As the database is small, I have added a web service method that returns the
entire database as a DataSet.
What I would like to do is create a local copy of the database from my
dataset so that I can back it up and perform any other admin/maintenance
tasks that I may want to do?
However I am finding this difficult.
I could write the whole lot out as an XML file but I want to view/query in
Enterprise manager just like any other database and so don't really want to
use the XML serialization methods if I can help it.
What I would like to do is just point the dataset at a newly created
database and say "save yourself there please" - metadata, relations and all.
Is there a "reasonably simple" idiomatic way to do that - or do I have to
naviagation my way all around the DataSet pulling out tables, columns, rows
and reconstructing the database bit by bit on my local machine?
Ideally I would like to be able to save the database to any of MSDE, SQL
Express, SQL2000, SQL2005 but if I could just get it working for one of
those initially, I would be happy.
Alternatively if this approach is completely flawed from start to finish and
there is a better way to achieve the same objective I would welcome
suggestions.
TIA