SQL Server 2005 Everywhere Edition: Replication With MS Access?

Jun 30, 2006

Hello @all,

does anyone know whether a SQL Server 2005 Everywhere database can be replicated with a common MS Access database? Is there any possibility to synch a database on a mobile device (SQL Everywhere) with a central database on a server computer (like MS Access or SQL Express) without having to use a full version of SQL Server? Replication is just needed for merging a small database (4-5 tables) so I think the full version of SQL Server is a little bit oversized for this issue (and too expensive, too).

Thank you very much in advance,

Tim

View 11 Replies


ADVERTISEMENT

Help Needed In Merge Replication, SQL Server 2005 Mobile Edition And VC# 2005

Apr 10, 2008

I have written following code in my application

I just want to display all the data of a Single table into a Data Grid, I know that we can drag and drop the table on to a form and datagrid is generated, but here I want to retrive those values through my code, how should i do that

I am getting following errors while running the program
Error 1) Error No. 28037, MS SQL Server 2005 Evrywhere Edition
Error: A request to send data to the computer running IIS has failed. For more information see HRESULT
Error 2) Error No. 0, SQL Server 2005 Evrywhere Edition ADO.Net Data Provider
Error: The specified table does not exist [ JobLists ].

Can anybody please tell me, where I went wrong ??? In this code anywhere else????

Note: While adding a Data Source of SQL Server 2005 Mobile Edition, I have added that .sdf file into my project, thats why I have written the Data Source as : .DbFile.sdf



@"Data Source = .DbDotNetCF.sdf";


The code is as follows:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlServerCe;

namespace DeviceApplication1
{
public partial class Form1 : Form
{
string filename = @".DbDotNetCF.sdf";

private DataSet dsJobLists;

public Form1()
{
InitializeComponent();
}

private void DeleteDB()
{
if (System.IO.File.Exists(filename))
{
System.IO.File.Delete(filename);
}
}

private void Sync()
{
SqlCeReplication repl = new SqlCeReplication();

repl.InternetUrl = @"http://localhost/WebsiteDotNetCF/sqlcesa30.dll";
repl.Publisher = @"RAHU";
repl.PublisherDatabase = @"DotNetCF";
repl.PublisherSecurityMode = SecurityType.NTAuthentication;
repl.Publication = @"PubDotNetCF";
repl.Subscriber = @"SubDotNetCF";
repl.SubscriberConnectionString = @"Data Source='" + filename + "';Max Database Size=128;Default Lock Escalation =100;";
try
{
if (!System.IO.File.Exists(filename))
{
repl.AddSubscription(AddOption.CreateDatabase);
}
repl.Synchronize();
}
catch (SqlCeException ex)
{
DisplaySQLCEErrors(ex);
}
finally
{
repl.Dispose();
}


// Display Same Data In Another DataGrid : dataGrid1
SqlCeConnection cn = new SqlCeConnection(@"Data Source='" + filename + "'");

SqlCeDataAdapter daJobLists = new SqlCeDataAdapter("SELECT JobListsID, JobID, PersonID FROM JobLists", cn);
if (dsJobLists == null)
{
dsJobLists = new DataSet();
}
try
{
dsJobLists.Clear();
daJobLists.Fill(dsJobLists, "JobLists");
dataGrid1.DataSource = dsJobLists.Tables["JobLists"];
}
catch (SqlCeException ex)
{
DisplaySQLCEErrors(ex);
}
}

private void DisplaySQLCEErrors(SqlCeException ex)
{
for (int i = 0; i < ex.Errors.Count; i++)
{
MessageBox.Show("Index #" + i.ToString() + ""
+ ex.Errors.Source + ""
+ "Error: " + ex.Errors.Message,
"Error No. " + ex.Errors.NativeError.ToString());
}
}

private void Form1_Load(object sender, EventArgs e)
{
Sync();
DeleteDB();

if (DbDotNetCFDataSetUtil.DesignerUtil.IsRunTime())
{
// TODO: Delete this line of code to remove the default AutoFill for 'dbDotNetCFDataSet.JobLists'.
this.jobListsTableAdapter.Fill(this.dbDotNetCFDataSet.JobLists);
}
}
}
}



I have created a merge replication correctlly( I suppose, there were no errros)
Please help

Your help will be appriciated

View 1 Replies View Related

Help - SQL Server 2005-&>Compact Edition Replication

Jan 30, 2007

Hi All ...I
have been following the MS on-line tutorials to get replication setup
between SQL Server 2005 and SQL Server Compact Edition. I get to the
point where I run the Configure Web Synchronization and it is running
through the process where it is doing the automated configuration of
the shared directory - assigning users etc.I have attempted
this step with a user account that I expressly created for snapshots
and with the Administrator account and get the following error message:* The operation completed successfully. (Exception from HRESULT: 0x80070000)At
first, I thought this was a rights issue due to the fact that I was
using an account that I manually created. However, by using the
Administrator account (test only until I can figure this out) that
should have removed any rights issues associated with accessing the
shared directory where the snapshot will reside.Any help in getting this figured out will be greatly appreciated.David L. Collison Any day above ground is a good day!

View 9 Replies View Related

SQL Server 2005 Express Edition Performance And Replication

Feb 25, 2008

Wondering if anyone has any experience with SQL Server Express Edition (SSEXP). We're looking at a mobile sales force type model, so a local database on a laptop with no real time network connection. So the users would collect data locally, then connect up to the network every few days to replicate the data to a central server.
So questions.. Has anyone tried anything similar? How stable/mature is SSEXP? Any other thoughts, alternatives or gotchas anyone can think of?

Thanks for the input.

View 1 Replies View Related

Replication Between SQL 2005 Express Edition And SQL 2005 Standard Edition

May 10, 2007

Hello everybody,



I got a problem in my development phase. I'm developing a web-application system that running merge database technology which is centralized database and distributed database. This is because my customer want a highly optimum system standby.



My centralized database running SQL Server 2005 Standard Edition and the distributed database running SQL Server 2005 Express Edition (because it is free). Each of these database, the users can change the data on its database. So, every database must have the same data. from my understanding, each server must act as Publisher and Subscriber. Can SQL Server 2005 Express Edition be a Publisher?



If not, what the solution you all may suggest, because cost is the first factor. If my architecture is not correct, so what you all suggest to me to resolve the problem.



Thanks so much. Any suggestion and opinion is highly appreciate and I'm highly thanks to you all.

View 3 Replies View Related

Convert Access Database To Sql Server 2005 Compact Edition

Nov 7, 2007



Is there any way to convert an Access or SQL server 2005 database to SQL server 2005 compact edition database??



Thank you very much!!

View 8 Replies View Related

Moving : Access---SQL Server 2005(Enterprise Edition) VB6—VB.Net

Jun 10, 2007


I am a new in .Net Environment. I am moving from VB to VB.Net and Access DB to SQL Server 2005. Please reply me the following questions bellow.





Access Works

SQL SERVER (SS)?


When I create .MSI file it include ADO library in that executable file and my client install software and don€™t need any kind of file to install and wherever my program install it can be accessed by using following connection string.
Con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "dbPAYROLL_DB.mdb;Persist Security Info=False" Con.Open

What file needed on client€™s PC to access SS on server.
What about connection string change dynamically in client sides


I create relation on Access Relationship Diagram.

Where to create these diagrams either on VB.Net Server Explorer or on Management Studio? And how?


Please answers me this basic questions further I have more question in mind but please first answers me these questions€¦

View 1 Replies View Related

Upsizing Access 2000 DB To SQL Server 2005 Express Edition

Jul 26, 2006

Hi

I have an Access 2000 Database which I am upsizing to SQL Server 2005 Express Edition. The Database has 29 tables and 60 stored queries. Each time I upsize to SQL Server the tables come in fine but non of the queries are imported.

All of the queries are very simple Select, Insert, Update and Delete Queries with nothing special in them.

I have tried using the upsizing wizard in Access 2003 and also the SQL Server 2005 Migration Assistant for Access.

Is there anything special I need to do in the migration assistant to ensure that the queries are imported as well.

Cheers

Redav

View 4 Replies View Related

Need Help Regarding Replication Between SQL Server 2005 And SQL Server Mobie Edition!

Mar 20, 2006

Dear support,

I am working on my graduation project that has a wide section of PC Pocket application to merge data between the SQL Mobile Edition and the SQL Server 2005. So, i had done most of the steps mentioned in the Books Online for the SQL Mobile Edition, till i had reached the step of creating a subscription for the Mobile Database, it is known that at the end of this step there would be a code generated in order to use it in developing the application and after clicking finish the wizard will start Synchronization. Here this step fails with a message informing me that the snapshot agent is not started yet or the publisher didnt generate the snapshot yet !!

So looking forward to getting your advice soonly!

Thank you for your attention,

Kindly Regards;

View 3 Replies View Related

SQL Server 2005, MS Access Merge Replication?

Feb 13, 2006

Hey there!



In a nutshell, I want to do a merge replication with a SQL Server and
several Access databases. I haven't been able to find anything in the
documentation or 3rd party books.



Is this possible?



Thanks!

- Erik

View 7 Replies View Related

Windows CE 5 Device With SQL Server 2005 Compact Edition Sync With SQL Server 2005 Express Edition

Oct 25, 2007

I have:

A server computer running SQL Server 2005 Enterprise Edition.

A industrial computer running SQL Server 2005 Express Edition.

And now also a Psion WorkAboutPro with CE 5 that should run SQL Server Compact Edition.



The industrial computer syncs its data with the server, basically saying "this has happened".

Now I want the Psion to sync with the industrial computer, but this sync must two-way.



I have tried to find a guide or something that can tell me "do this to sync" but the information i have found is sketchy at best.



If someone could point me in the right direction of a guide or something else it would be much appreciated.

Regards,
Björn

View 9 Replies View Related

Replicating From SQL Server 2005 Standard Edition To Remote SQL Server 2005 Express Edition

Aug 13, 2007

Hello,

I have been unable to create a replication from an SQL Server 2005 standard edition database to remote SQL Server 2005 Express Edition. The remote express edition is on a Virtual Private Server we are leasing from a hosting company. The name of the remote DB is similar to vs572.si-vs572.com. I can connect to this with SQL server authentication through Management Studio and also with SSIS. But, I have been unable to create a push subscription (I have tried a test push subscription with the same publication to a local SQL Express server here in our office and this works fine).


Here is the error message: SQL Server Replication requires the actual server name to make a connection to the server. Connections through server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'VS572SQLEXPRESS'.

The hosting company had originally installed a shared SQL server which would not support replication. They then installed SQL Express edition and I was hoping this would allow us to run a replication.

I tried to connect to VS572SQLEXPRESS with out any luck. I check the remote connections, made sure replication was installed, etc., but no luck.

Any help would be greatly appreciated!

Thank you,
Albert

View 6 Replies View Related

SSRS On 2005 Enterprise Edition Connecting To A Db On SQL Server 2005 Developer's Edition, Possible?

Apr 8, 2008



Is it possible to connect SSRS running on SQL Server 2005 enterprise edition (our production system) to a database running on SQL Server 2005 Developer's edition (our test system)

thanks!

View 1 Replies View Related

Help - Replication SQL 2005 -&> Compact Edition

Jan 30, 2007

Hi All ...

I have been following the MS on-line tutorials to get replication setup between SQL Server 2005 and SQL Server Compact Edition. I get to the point where I run the Configure Web Synchronization and it is running through the process where it is doing the automated configuration of the shared directory - assigning users etc.

I have attempted this step with a user account that I expressly created for snapshots and with the Administrator account and get the following error message:

* The operation completed successfully. (Exception from HRESULT: 0x80070000)

At first, I thought this was a rights issue due to the fact that I was using an account that I manually created. However, by using the Administrator account (test only until I can figure this out) that should have removed any rights issues associated with accessing the shared directory where the snapshot will reside.

Any help in getting this figured out will be greatly appreciated.


David L. Collison
Any day above ground is a good day!

View 5 Replies View Related

Partitioning And Replication To Non-enterprise SQL 2005 Edition

Aug 24, 2007

We currently want to move towards partitioning tables on a master server which is running SQL 2005 Enterprise Edition. However, we have transactional replication as well as log-shipping set-up against that server. The log-ship destination is also running Enterprise Edition, but the subscription server(s) are all Standard Edition only. Will there be any problems or special steps required in creating data partitions on some of these replicated tables if we don't upgrade our license?

View 1 Replies View Related

Configuring Replication Sql 2005 Express Edition

Aug 27, 2007

Hello all,

We have 2 sites . each one has sql 2005 express edition .

is it possible to configure replication between those 2 sql servers for failover purposes ?


Thanks

View 1 Replies View Related

SQL Server 2005 Developer Edition And SQL Server 2005 Express Edition On Same Machine?

May 9, 2006

I am currently downloading the mega-sized files for SQL Server 2005 Express Edition and was wondering if I was going to be able to install it onto my workstation alongside the SQL Server 2005 Developer Edition? Was hoping someone could advise. I did browse for an answer, but have not come across it yet. I know I'll find out once my download is complete, but that could be awhile :)

Thanks,

-Neil

View 5 Replies View Related

Upgrading SQL Server 2000 Enterprise Edition To SQL Server 2005 Standard Edition

Nov 9, 2007



Hi,

I would like to find out if there is any way to upgrade SQL Server 2000 (Ent) to 2005 (STD)

The Instance has many logins and jobs etc and I dont want to loose those

A document or some advice on how to go about it would help

Thanks

View 10 Replies View Related

Installing SQL Server 2005 Enterprise Trial Edition And Standard Edition On Same Machine

Jan 22, 2008



Hi
-I have istalled sql server 2005 standard edition , I want to install sql server 2005 enterprise edition on the same machine.
Is it possible? I have Microsoft windows server 2003 SP2 and 1GB RAM.
I want to use partition function with the enterprise edition, will the trial version of sql server work for me?
-If I have already created a database and tables using the standard edition, will I be able to access and use the database using the installed trial version or will I have to start a fresh creating a new database?
- Is it possible to access the same database with any of the installed versions?

BTW, I am prety new to sql server and databases , I am trying to learn by myself

Thanks



View 9 Replies View Related

Wots The Difference B/w SQL Server 2005 Standard Edition And Express Edition

Sep 23, 2006

Hello!M a newbie.. I just want to know, that wots the difference b/w SQL Server Standard Edition and Express Edition.?And can I use Visual Studio 2005 (Professional Edition) with SQL Server Express Edition.?

View 1 Replies View Related

Performance Difference Between SQL Server 2005 Standard Edition And Enterprise Edition

Dec 15, 2006

Dear All,We have a database which contains many tables which have millions ofrecords. When We attach the database with MS SQL Server 2005 StandardEdition Server and run some queries (having joins, filters etc.) thenthey take very long time to execute while when We execute same querieson Enterprise Edition then they run 10 times faster than on standardedition.Our database does not use any features which are present in EnterpriseEdition and not present in Standard Edition. We want to know what arethe differences between Standard Edition and Enterprise Edition forperformance. Why should we go for Enterprise Edition when StandardEdition has all the features required.We are presently using evaluation versions of SQL Server 2005 Standardand Enterprise Editions.Thanks and regards,Nishant Sainihttp://www.simplyjava.com

View 23 Replies View Related

Error Upgrading SQL Server 2005 From Standard Edition To Enterprise Edition (x64)

Apr 10, 2008

I am attempting to upgrade a 2005 Standard Edtion to Enterprise Edition. This is a default instance. All components are upgraded successfully except the Database Engine. I receive the following error:


SQL Server Setup has encountered the following problem: [Microsoft][SQL Native Client][SQL Server]The certificate cannot be dropped because one or more entities are either signed or encrypted using it.. To continue, correct the problem, and then run SQL Server Setup again.


This installation does not have encryption enabled, so I do not undersand the error or how to correct it.

After rebooting the SQL instance appears to be upgraded to Enterprise, but it cannot be upgraded to SP2.

Thanks,

View 3 Replies View Related

Can I Use Sql Server 2005 Developer Edition With Windows Xp Home Edition SP2 For MCTS Exam 70-431 Preparation?

Dec 21, 2007

Hi
I am interested in taking MCTS exam 70-431 for sql server 2005 implementation and maintainance.
I have been reading the hardware requirements for the instalation of sql server versions and realise that enterprise and developer editions have same minimum requirements for the operation system.
I understand that the Developer Edition includes all the functionality of SQL Server 2005 Enterprise Edition, but it is licensed for use as a development and test system, not as a production server.

Also I undestand that the developer edition supports the Windows XP Home Edition with SP2 or later but the enterprise edition does not support this operating system. The evaluation/trial version is for the enterprise edition. Can I use the developer version of sql server 2005 for my practice exercises instead of using the trial version?
I have all hardware requirements for the trial enterprise version except that I am using Microsoft windows Xp home edition version 2002 with SP2. I am trying to see if I can use the developer version of sql server 2005 as it is cheaper for me to buy this software than buying the new operating system for my computer.
According to the microsoft book for the MCTS exam 70-431 there is a section which states that before you begin you should have Microsoft Windows Server 2003 running on your computer on an NTFS file system
(NTFS) partition. Will I still be ok to use the book and be able to do all the tests in the book if i am using the developer version of sql server 2005 with my Microsoft windows Xp home edition than using the trial version which comes with the book?

Thanks

gifty

View 3 Replies View Related

SQL Server 2005 Workgroup Edition Upgrade To Standard Edition

Feb 8, 2008

I'd like to upgrade from my current SQL Server version: 09.00.3042 (Workgroup edition that comes with SBS upgrade) to the standard edition that I've just purchased. I've attempted to run setup.exe SKUUPGRADE=1 from the command prompt and it just tells me that there's nothing new to install.

I don't really want to uninstall the current installation just to do something that shouldn't be complicated to do, upgrading software versions should not be a difficult process.

Does anybody have any experience with this?

View 9 Replies View Related

Can I Run The SQL Server 2005 Developer Edition In Standard Edition Mode?

May 10, 2006

As an ISV, I want to certify my product on Standard Edition. I am using Developer Edition everywhere. Is there a way I can do the certification using the Developer Edition, or do I need to obtain/purchase a copy of the Standard Edition?

View 3 Replies View Related

Change From Developer Edition To Enterprise Edition Of SQL Server 2005 64 Bit

May 20, 2008

We have an existing installation of SQL Server 2005 Developer Edition (64bit) that we are ready to go live with and would like to change the edition to Enterprise Edition (64bit). We have purchased all the appropriate licenses. We would like to avoid UN-installing the Developer Edition and RE-installing the Enterprise Edition. There must be some way to change a registry key, provide your serial number via a command line utility or re-run the setup with the license key provided and direct it to just change the edition from Developer to Enterprise and not change any of the other settings like service account, sa account, collation, etc. Any help is most appreciated.


Thank you,

Matt

View 1 Replies View Related

Is 2005 Merge Replication Reliable For Compact Edition Subscribers On WinXP Tablets Over VPN?

Oct 24, 2007


I posted a more detailed technical question a couple of weeks ago
with Subject = "Compact Edition 2005 Subscribers - Merge Agent failed after detecting that retention-based cleanup has deleted metadata"
But I got no replies.

Now my question is simpler: Is SQL Server 2005 Merge Replication reliable with Compact Edition subscribers on WindowsXP tablets?

We deleted all users' local databases a couple of weeks ago, and republished two publications with retention = 60 days.
Now we have at least one user who can't sync with the server, and replication monitor shows the error below.
But if she e-mails her sdf file to a support person, they can successfully sync her database.
We're sure that it's not a permissions issue, which is a normal suspicion when one user can perform a task that another can not.
It doesn't seem like a retention problem, because she's well inside the retention period.
She can successfully sync with the publication with upload/download tablers, but not with the publication with download only tables. Both publications were created on the same day, by the same DBA, with nearly identical properties.

This problem user has operated in the past with no problem, and she's configured identically to all of the others. It just seems like random flakyness with merge replication for Compact Edition subscribers.

I feel stupid saying that, because it sounds like I believe in a magical ghost in the machine. So my question is - IS MERGE REPLICATION A LITTLE BIT FLAKY FOR COMPACT EDITION SUBSCRIBERS ON XP MACHINES?


We've applied SP2 to the server, but no subsequent HotFixes.

We're trying to sell users and management on developing a larger occasionally connected system with the same replication scheme, so we need to know if it deserves our confidence.


Error messages:

The Merge Agent failed after detecting that retention-based metadata cleanup has deleted metadata at the Publisher for changes not yet sent to the Subscriber. You must reinitialize the subscription (without upload). (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147199402)
Get help: http://help/MSSQL_REPL-2147199402

View 2 Replies View Related

How Can I Run SQL Server 2005 Developer Edition On Standard Edition

Mar 20, 2008



I tried to download PerformancePoint Server Trial Version to ther server today and I got to the configuration point of the Analysis Services Setting, and when I clicked next to proceed with the configuration I got a popup error message:
"Microsoft Analysis Server must be Evaluation, Developer or Enterprise Edition".

Now I have SQL Server 2005 Developer Edition Disc (Bought it with Visual Studio 2005) but on the server I have SQL Server 2005 Standard Edition, if I try to run the sql server developer Edition disc, I use the wizard download and it seems that the download is going through the SQL Server entire download, it's like I'm re-downloading SQL Server all over again.

Does that seem right?
what is the best approach to work around this probelm?

I appreciate any help

Thanks

View 6 Replies View Related

Sqlserver 2005 Standard Edition Unable To Start Mssqlserver Service (access Denied)

Aug 12, 2007

All,

I have installed sqlserver 2005 using the standard msdn universal installation discs on my laptop running vista business.

The mssqlserver service will not start automatically as the setup configures it
and I cannot start the service manually because I get the 'Access Denied' error message

I am logged on the the computer with adminstration privileges

Thank for all help received in advance,


Dave.....

View 2 Replies View Related

Sql Server 2005 Express Edition VS Visual Basic 2005 Express Edition

Dec 1, 2006



Hello..

I've installed Visual Basic 2005 express edition & tried to connect to SQL Server 2005 express edition. I noticed that VB2005 Express Edition doesn't have any OLEDB provider for SQL Server. The only OLEDB Provider is for M.Access. Is this correct? if so, what should i do if i want to connect SQL Server 2005 express edition with VB2005 express edition by using OLEDB connection type?

I really appreciate any respond from you guys.. Thank's and waiting for the good news..

Best regards,
VITRELLE

View 1 Replies View Related

Server Replication From Oracle With Standard Edition

Apr 25, 2007

Although clearly specified in the replication notes for SQL server 2005. I am wondering whether I still have some options for replication using the Standard Edition of SQL 2005. I see that subscriptions and publications are still a part of the menu. Am I still able to set up an oracle 8< database as a publisher which SQL can subscribe to???

My experience so far...I can access Local Subscriptions from the replications menu. There I can attempt to find a publisher, an oracle publisher is given as an option. The message I get is as follows:
"To find an Oracle Publisher, you must first connect to the SQL Server Distributor that has been configured to work with that Publisher. In the following dialog box, specify the name and login for the Distributor."

Any help would be greatly appreciated!

View 3 Replies View Related

SQL Server Compact Edition Merge Replication Error

Feb 27, 2007

Hi
I am trying to complete sql server compact edition book online walkthrough "Creating a Mobile Application with SQL Server Compact Edition". I am successful to complete it as guided using all default settings (e.g. anonymous access, windows authenticaion etc.) and the sample run on both emulator and my pocket pc svc5000. I have following configuration..

Windows 2000 professional sp4
Sql server 2005 standard edition sp1
VS 2005 profesional edition (sp1 not installed)
Sql server compact edition
Sql server compact edition server tools

But the problem is that in production environment i will not be able to connect to the sql server using named instance (e.g machine_nameinstance_name). i have to use ip address in that situation. so i tried to modify the sample to use ip address in place of named instance and then the problem starts.. I have configued my sql server to allow remote connections using tcp/ip and named pipes using sql surface area config tool.

When using named instance i used following code to Synchronize with sqlserver 2005 with and it worked perfectly :

Dim filename As New String("Program FilesTestTest.sdf")
Dim repl As New SqlCeReplication()
repl.InternetUrl = http://machine_name/Test/sqlcesa30.dll
repl.Publisher = "machine_nameinstance_name"
repl.PublisherDatabase = "Test"
repl.PublisherSecurityMode = SecurityType.NTAuthentication
repl.Publication = "Test"
repl.Subscriber = "Test"
repl.SubscriberConnectionString = "Data Source='" + filename + "';Password='';Max Database Size='128';Default Lock Escalation ='100';"
Try
repl.AddSubscription(AddOption.CreateDatabase)
repl.Synchronize()
Catch err As SqlCeException
MessageBox.Show(err.ToString)
End Try

When i tried to do replication using ip address it shows following error:

System.Data.SqlServerCe.SqlCeException was unhandled
  HResult=-2147467259
  Message="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."
  NativeError=29061
  Source="Microsoft SQL Server Compact Edition"
  StackTrace:
       at System.Data.SqlServerCe.SqlCeReplication.Synchronize()
       at TEST.MainModule.Sync()
       at Test.MainModule.Main()

I am using following code to connect using ip address:

Dim repl As New SqlCeReplication()
repl.InternetUrl = http://XXX.XXX.XXX.XXX/test/sqlcesa30.dll
repl.PublisherNetwork = NetworkType.TcpIpSockets
repl.PublisherAddress = "XXX.XXX.XXX.XXX,XXXX"
repl.Publisher = "SQL2005"      'instance name of sql in sql2005
repl.PublisherSecurityMode = SecurityType.NTAuthentication
repl.PublisherDatabase = "Test"
repl.Publication = "Test"
repl.Subscriber = "Test"
repl.SubscriberConnectionString = "Data Source='" + filename + "';Password='';Max Database Size='128';Default Lock Escalation ='100';"
repl.AddSubscription(AddOption.CreateDatabase)
repl.Synchronize()


I have give rights to iuser_manchine_name in the public access list of publication and on database also.

I don't have any idea on where i am wrong... Please help soon..
Many thanks in advance..

View 1 Replies View Related

Access To SQL Server 3.5 Compact Edition

Apr 10, 2008

Is there a way to import the table definitions and data from an Access database into the 3.5 compact edition? I have no clue where to start. I have a .Net application that uses an Access database to store data. I want to create a windows mobile application for collecting the data and syncing with the PC application. Is the 3.5 compact edition the way to go? How do I get started? I don't even know how to open the interface for the database.


I'm certainly no newbie to programming, but the SQL Server and Windows Mobile stuff is like starting all over in some ways.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved