|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
moving data between SQL Mobile and SQL server DBsI have connected to both a SQL Server Mobile and a SQL Server DB in
management studio. How can I write a query that selects rows from a table in the Mobile DB and inserts them into the server DB. (TigerFanInAtla***@gmail.com) writes:
> I have connected to both a SQL Server Mobile and a SQL Server DB in You would set up a linked server and the use four-part notation:> management studio. How can I write a query that selects rows from a > table in the Mobile DB and inserts them into the server DB. INSERT localtbl(....) SELECT ... FROM MOBILE.db.sch.tbl WHERE ... Here I have assumed that you have called the linked server MOBILE. You use sp_addlinkedserver to set up a linked server. Sorry, I don't have any examples on how to this for SQL Mobile, but there may be examples in Books Online. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx thanks Erland
I had tried that and should have said so in my post, but there doesn't seem to be a way to create a linked server to an SQL Mobile database. It's weird that I can connect to both the SQL Mobile DB and SQL2005 DB in Management Studio, but can't move data from one to the other. There must be a way. (TigerFanInAtla***@gmail.com) writes:
> I had tried that and should have said so in my post, but there doesn't I've never tried it myself, but there is definitely en OLE DB provider> seem to be a way to create a linked server to an SQL Mobile database. for SQL Server Mobile, and an OLE DB provider is what it takes to set up a linked server. I was reading Books Online to find out what the name of the provider is, but it was not really clear. It may be SQLSERVERCE, but I am not sure. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx |
|||||||||||||||||||||||