Windows CE 6.0 And SQL Server Compact

Oct 9, 2007

I work with a Development board with an armv4 processor for a Windows CE 6.0 application and tried to install there an SQL Server Compact. But it doesn't work. My information from Google and other sites is that the Compact edition of SQL server does not work on a Win CE 6.0 platform.

Does someone can give me to this subject further information€™s? Is there an alternative?

Stefan

View 10 Replies


ADVERTISEMENT

SQL Server Compact Running In Windows Service

Nov 17, 2006

Hi,

On the page http://www.microsoft.com/sql/editions/compact/default.mspx it is recomended that you dont use SQL Server Compact Edition if "you want to run as a service" - is this refering to the host application or to the fact the SQL Server Compact Edition is an embedded database rather than the more traditional SQL Server client/server architecture?

If its the former is this likely to change at any point in the future? Also what sort of problems are likely to occur if we did run it from within a windows service?

Many thanks,

- James 

 *EDIT [Changed capitalization]

View 4 Replies View Related

Sql Server Compact Edition With Windows 2000 SP3

Jul 4, 2007

Hi to everybody,

can Sql Server Compact Edition run on Windows 2000 SP3?

Thanks,

Emanuele



View 3 Replies View Related

Deploying SQL Server Compact 3.5 On Windows Mobile Problems

Dec 24, 2007

I've been trying to create an installer for a little .NET CF 3.5 app I've written for Windows Mobile. It uses SQL Server Compact 3.5.
I've got the .NET CF and my program to deploy on the device using ini files and ceappmgr.exe, but when I try to do the same for SQLCE 3.5, it doesn't work (more on this in a sec).

I need my installer to install across lots of different CPU architectures, so I created an ceappmgr INI file that includes all the different cabs for the different CPU architectures.
I'm trying to test the installer by making it install on my smartphone (ARM CPU). The problem is, when I install it I get an error message on the device "The installation file is not intended for this device.". I reckon this means ceappmgr is picking the wrong cab file and trying to make my phone install it!

I did a bit of testing and found out if I remove all the cabs from my ceappmgr INI file EXCEPT for the one that is appropriate for my smartphone, then it works fine! But as soon as I include a cab file that is not appropriate for my device (eg a different cpu architecture, or the ARM PPC cab file), it stops working and I get that "not intended for this device" message.

My INI file looks like this:


[CEAppManager]
Version = 1.0
Component = SQL Server Compact 3.5

[SQL Server Compact 3.5]
Description = Microsoft SQL Server Compact 3.5
CabFiles = sqlce.phone.wce5.armv4i.CAB,sqlce.wce5.armv4i.CAB,sqlce.ppc.wce5.armv4i.CAB,sqlce.wce5.mipsii.CAB,sqlce.wce5.mipsii_fp.CAB,sqlce.wce5.mipsiv.CAB,sqlce.wce5.mipsiv_fp.CAB,sqlce.wce5.sh4.CAB,sqlce.wce5.x86.CAB


Any idea why ceappmgr would be (seemingly) picking the wrong cab file and trying to make my device install it?
Btw, my smartphone uses the "sqlce.phone.wce5.armv4i.CAB" cab file.

Cheers in advance.

View 3 Replies View Related

Use VB2005 With Windows CE 5.0 With SQL Server 2005 Compact Edition With XML Error

Jul 24, 2007

I am using VB2005 , Windows CE 5.0 , SQL server 2005 compact edition

and using XML reader, but it will show the empty SQLCeException ,

why does it occur?



The source it show at the follow :

-----------------------------------------------------------------------------------------------------------------

Imports System.Data.SqlServerCe
Imports System.Xml

Public Class Form1



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim DBPath As String

Dim mydr As XmlTextReader = New XmlTextReader(m_sXMLFileName)
mydr.WhitespaceHandling = WhitespaceHandling.None

While mydr.Read()
' Look for the <configuration> section
' This lets us add several peices in the config file
If mydr.Name = "DBPath" Then
DBPath = mydr.Name
End If
End While
mydr.Close()

Me.MobileDataTableAdapter.Connection.ConnectionString = "Data Source =""Program FilesCEdatabaseMobileDatabase.sdf"";"
Try
If MobileDatabaseDataSetUtil.DesignerUtil.IsRunTime Then
'TODO: Delete this line of code to remove the default AutoFill for 'MobileDatabaseDataSet.MobileData'.
Me.MobileDataTableAdapter.Fill(Me.MobileDatabaseDataSet.MobileData)
End If

Catch ex As SqlCeException
MessageBox.Show(ex.Message)
End Try
End Sub

End Class

View 4 Replies View Related

I Can't Seem To Find Which SQL Server Compact Edition Version Is Pre-installed On Windows Mobile 6

Dec 9, 2007

Hi,
I can't seem to find which SQL Server Compact Edition version is pre-installed on the Windows Mobile 6 rom.
I guess it is 3.0, but I'm not sure about it.
Another question is, if I use SQL Server Compact Edition 3.5 by deploying the .dll files as part of my application's CAB installer, will this be a problem for Windows Mobile 5 or Windows Mobile 6?
Thank you in advance,

View 4 Replies View Related

SQL Server Compact Tool 3.5 On Windows Server 2008

Apr 21, 2008

Im trying to install the SQL Server Compact Tools in Windows Server 2008, but the installation program won´t let me continue since it says that I must install the IIS Backward Compatibility Tools. The problem is that I can´t find where I do that.

I know that Windows Server 2008 is not listed as a supported os for the server tools, but surely I must at least be able to install them?

View 9 Replies View Related

SQL Server Compact 3.5 - I've A Sdf File Created In A .NET Windows Desktop Command Line Program. How To Now Consume The Data?

Sep 17, 2007



SQL Server Compact 3.5 - I've a sdf file created in a .NET windows desktop command line program. How to now consume the data in MS Excel?

I can see that under

C:Program FilesMicrosoft SQL Server Compact Editionv3.5

I've one DLL called


sqlceoledb35.dll

But I don't have any oledb driver listed when creating an UDL file?

How can I consume the data in other apps that are not .NET and developed in house them?


Thanks, AM.

View 13 Replies View Related

Compact Edition Database In Object Store On Windows CE 4.2

Oct 10, 2007

The device I'm working on has a filesystem on compact flash, but we're concerned about burning it up with excessive writes. One solution might be to keep the SQL database in the the object store, perhaps dumping a copy out to the CF as backup. Any pointers as to how to accomplish this? If we were to keep the db in a file on the CF, what's the SQL Server CE behavior for writing to the file? Does it write every time a record is created/updated, or is there any ability to control when the data is flushed to the file?

Thanks from an SQL newbie.

View 2 Replies View Related

How Can I Get My Desktop App To Talk To My Windows CE Device In Vb.net Compact Framework?

May 9, 2008

HI all,

Que 1.

M doing PDA Project in Vb.net Compact framework [ CF ]. In tht I need to do synchronization My PDA's database with Desktop Computer's database manually.
So Plz Suggest me some options .....
One of them I know & Its RAPI..
--> "RAPI allows desktop based applications to talk with CE devices while they're connected to the desktop via ActiveSync".

but M confused regarding ActiveSync Bcoz i want to do it Manually.

Thnx & Regards

Amit B. Master

View 3 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

How To Connect ADODB With Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider For Microsoft SQL Server Compact 3.5)

Sep 12, 2007

Hi
We are checking VB 9 (Orcas).

we connected to database created under with sql server 7. with this code

Public cn As New ADODB.Connection

Public Sub OpenDB()


cn.Open("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial catalog=Reservation;Data Source=.")

End Sub
this code worked well.
we know sql7 is not compatiable with vista. please tell us how to connect it wiith sql2005 . we downloaded orcas express edition beta. we created a database also. please let u know how to connect with Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider for Microsoft SQL Server Compact 3.5).

Rgds
Pramod

View 7 Replies View Related

Sqlceoledb35.dll - Error 25123 - A SQL Server Compact Edition DLL Could Not Be Loaded. Reinstall SQL Server Compact Edition.

May 5, 2008

Hello,

we've got a SQL Server 2005 which replicates with an SQL Server Compact 3.5. Every 10 to 20 synchronisations we're getting the error mentioned above. A Soft reset of the device helps to make the synchronization working again.

Why is this error happening and how can we resolve this?

BTW, we've also running system that replicates with an SQL Server Compact 3.0 without having this problems.

Thanks,
Markus

View 1 Replies View Related

A Sql Server Compact Edition DLL Could Ot Be Loaded Reinstall SQL Server Compact Edition [ DLL Name = Sqlceca30.dll]

Mar 11, 2008



Hi there,

everything is ok for first run. but i leave the program relogin
than that error occured ppc2003 second edition devices. Windows mobile 5.0 device works fine.
can anybody help me?


VS2005 ver 8.0.50727
SSCE31VSTools-ENU.exe loaded
SSCE31SDK-ENU.msi loaded

machine 1
SQL 2005 loaded

machine 2
http://192.168.20.22/ssce/sqlcesa30.dll
"Microsoft SQL Server Compact Edition Server Agent" looks fine

pocket pc side
C:Program FilesMicrosoft SQL Server Compact Editionv3.1SDKinwce400armv4

.net cf 2.0 sp2
sqlce30.dev.ENU.ppc.wce4.armv4.CAB
sqlce30.ppc.wce4.armv4.CAB
sqlce30.repl.ppc.wce4.armv4.CAB installed too.

my code
---------------------------------------------

Dim RdaStr As String = "Provider=SQLOLEDB; Data Source=" + Server + ";Initial Catalog=" + DataBase + ";Integrated Security=SSPI"

Dim rda As SqlCeRemoteDataAccess

Try

rda = New SqlCeRemoteDataAccess "THIS LINE GIVES ME THAT ERROR
Catch ex As Exception

MsgBox(ex.ToString)

Application.Exit()

End Try

Try

rda.InternetLogin = [String].Empty

rda.InternetPassword = [String].Empty

rda.InternetUrl = "http://" + IP_no + "/ssce/sqlcesa30.dll"

rda.LocalConnectionString = ConnectString

Catch ex As Exception

MsgBox("Bağlantı hatası..")

Application.Exit()

End Try
------------------------------------------------------------------------------
i added the following code to very beginning of my code too.
that code lock my device


Declare Function LoadLibrary Lib "coredll" Alias "LoadLibrary" (ByVal lpLibFileName As String) As IntPtr


Dim pt As IntPtr

pt = LoadLibrary("\windowssqlceca30.dll")

pt = LoadLibrary("\windowssqlceoledb30.dll")

pt = LoadLibrary(\windowssqlcecompact30.dll)


-----------------------------------------------------------------------------

View 4 Replies View Related

Is It Possible Adding Windows (activi Directry Users) From SQL Server Which Is Running Windows Authotication.

Dec 12, 2007



Is it Possible adding Windows (activi directry users) from SQL Server which is running Windows authotication.?

View 4 Replies View Related

Unable To Connect To SQL SERVER 2005 Database Engine Using Windows Authentication Under Windows Vista...

Mar 26, 2008

Hallo there,

I just upgraded from Windows XP Pro to Windows Vista Bussiness and tried to reinstall SQL Server 2005 Developers Edition. After the installation i downloaded (using microsoft windows update) and installed all the service packs for sql and vista available.

My problem is when i open sql server management studio and try to connect to my default instance using windows authentication and database engine, an 18456 error occurs.

I enabled all the protocols and all the ports
I disabled windows firewall and antivirus (eset nod32)
I installed all service packs available
I have also installed Visual Studio 2005 without installing sqlexpress

But nothing happens!

Please i am very desperate, any information will be gratefully accepted.

This is my installation Information



Code Snippet

Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 6.0.6001.18000 (longhorn_rtm.080118-1840)
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 7.0.6001.18000
Microsoft .NET Framework 2.0.50727.1434
Operating System 6.0.6001


Thank you in advance,
Patonios


View 3 Replies View Related

Moving SQL Servr 2000 From Windows 2K Server To Windows 2K3

Apr 17, 2008



Does any one come across any difficulty in the following migration?
OS: Wondows Server 2K
DB: SQL Server 2K Standard Edition


Migrating to
OS: Wondows Server 2K3
DB: SQL Server 2K Standard Edition


Thank you,
Gish

View 4 Replies View Related

Visual Studio 2008;SQL Server 2005;SQL Server Compact Edition 3.5 Question

Aug 26, 2007

I have a question about a problem that I cannot seem to tackle. I have installed the following programs on Windows Vista:

- SQL Server 2005
- Visual Studio 2008
- SQL Server Compact Edition 3.5
- SQL Server Compact Edition 3.5 Server Tools

I want to do the following:

1. I want to create a SQL Server Compact Edition 3.5 database in the SQL Server Management Studio
2. I want my SQL Express server in SQL Server 2005 to be a distributor and publisher

About 1. In SQL Server Management Studio I cannot choose SQL Server Compact Edition 3.5 .
ABout 2. I tried to setup my server to be a distrubutor by running a stored procedure with the following name: sp_adddistributor. I get the following error: This edition of SQL Server cannot act as a Publisher or Distributor for replication.

Does anyone have a solution to both problems.

View 1 Replies View Related

Sql Server Compact Edition Data Source Missing In Server Explorer

Apr 3, 2007

Trying to learn how to use Sql Server CE, Tutorial says to open server explorer, add connection, new connection, select data source as .net sql ce (words to that effect). On my visual studio, it ain't there and I can't figure out how to get it there. I have uninstall all of the Sql Ce stuff and reinstalled it. So I'm missing some key link. What are the magic incantations to get to first base?



Ed Warren

View 4 Replies View Related

SQL Server Compact Edition Server Tools Setup Error On Vista

Oct 21, 2007

SQL Server 2005 SP2 Replication


I am having problems installing the SQL Server Compact Server Tools on my
Vista laptop to allow me to connect my Mobile Device running SQL Server
Compact directly to my SQL Server 2005 database through IIS.


I have done this successfully with an XP machine so I'm not sure if it is
Vista problem or not.


I have installed SQL Server 2005 SP2. When I try to install the replication
server tools (Sqlce30setupen.msi), in "System Configuration Check" window I get a failure on "SQL Server requirement" that says: "You must first install the Replication Components for SQL Server 2000 SP 3a
or higher or the SQL Server 2005 Replication Components" and the client components are full instaled in my computer.



I need help for detect and correct the problem.


Sincereously,
Alonso Junior

View 4 Replies View Related

How Can I Access SQL Server Compact Edition With SQL Server Management Studio Express?

Jul 26, 2007

Hello,

I just installed SQL Server Compact Edition, since I am considering using it instead of SQL Server Express for a local database in my application. The documentation mentioned that I could use SQL Server Management Studio Express to connect to the Compact Edition and create and manipulate databases.

To try to connect, I run Management Studio and bring up the "Connect to Server" dialog. Unfortunately, the pull-down list of "Server name"s does not include the SQL Server Compact Edition server. I do not know how to type in the server name manually, so I cannot connect.

To install Compact Edition, I downloaded it and ran "SQLServerCE31-EN.msi". This installed, and I assume registered, a number of DLLs in "C:Program FilesMicrosoft SQL Server Compact Editionv3.1".

Is there perhaps an additional step that I left out to complete the installation?

Might I need an upgrade to some other components? My Management Studio Version is:

- Microsoft SQL Server Management Studio Express 9.00.2047.00

I would appreciate any help you can provide.

Thank you,

WTW

View 7 Replies View Related

SQL Server Management Studio Express Won't Open SQL Server Compact 3.5 Databases

May 7, 2008

Hi all

Which tool can I use for structure editing of SQL Server Compact 3.5 databases? I'm installed SQL Server Compact 3.5. I have SQL Server Management Studio Express which was installed with SQL Server 2005 Express. Unfortunately this SSMS can create and open only 3.1 databases.

View 5 Replies View Related

Does Sql Server Compact Edition 3.5 Support RDA Synchronization With Sql Server 2000 Database?

Jan 21, 2008

Does Sql Server Compact Edition 3.5 support RDA synchronization with Sql Server 2000 database?

View 4 Replies View Related

Which SQL Server 2005 Compact Edition Server Tools Installation Package Do I Use?

May 26, 2007

Hi,



I am using SQL Express 2005 server and sql compact edition for my PDA. For synchronization, which SQL Server 2005 Compact Edition Server Tools installation package do I use?



Is it Sqlce30setupen.msi or sql2kensp4.msi or sql2kensp3a.msi? I know for sql server 2005 its Sqlce30setupen.msi. Is it the same for the SQL Express 2005?



Thanks

View 4 Replies View Related

SQL Server Management Studio Express 2005 Can't See SQL Server Compact

Feb 13, 2007

Hi,

I am very new to SQL Compact. I am trying to create one database which can work on the desktop application and also on a pda application. I want to create the database but I am unable to start without Management Studio. Can you guide me to the right tools so that I can create database, view it and manage it use something like Management Studio Express.

Also one more question is if my database needs to be at both places on the desktop and on pda how can i synchronise them. PDA will take using c# application data from RFID scans and then i need to sync that database on the desktop so that reports and other info can be generated from the desktop c# application. How to do this?

Please can you guide me to any webcasts or labs so i can clarify my doubts about the design.

Regards

Trushar

View 5 Replies View Related

Error While Connecting To SQL Server Compact 3.5 Database With SQL Server Management

Mar 11, 2008

Hello,

i tried to connect to a SQL Server Compact Database (version 3.5) with SQL Server Management Studio Express (Version 9.00.3042.00).

But i get the follwing error message (sorry, it's a german message):

.....................................
Es kann keine Verbindung mit 'D:DocumentsVisual Studio 2008Projects\_ProduktivSuperkalibrator_PrototypenSuperkalibrator_PrototypenDatenbankDatabaseTest.sdf' hergestellt werden.

------------------------------
ZUSÄTZLICHE INFORMATIONEN:

Sie versuchen, auf eine ältere Version einer Datenbank von SQL Server Compact Edition zuzugreifen. Falls es sich um eine Datenbank von SQL Server CE 1.0 oder SQL Server CE 2.0 handelt, führen Sie 'upgrade.exe' aus. Falls es sich um eine Datenbank von SQL Server Compact Edition 3.0 oder höher handelt, führen Sie die Komprimierung und Reparatur aus. [ Db version = 3505053,Requested version = 3004180,File name = D:DocumentsVisual Studio 2008Projects\_ProduktivSuperkalibrator_PrototypenSuperkalibrator_PrototypenDatenbankDatabaseTest.sdf ] (SQL Server Compact Edition ADO.NET Data Provider)
.....................................

Is there a solution to manage Compact Databases in Version 3.5?

Thanks!
Stefan Wagner

View 4 Replies View Related

SQL Server Compact Edition Server/IIS7 &&amp; Vista Incompatibility

Mar 20, 2007

Hi,

We are currently having a problem with a client running Vista business for a mobile application that uses SQLCE RDA with the Web Synchronization on IIS7.

I have run through the Configure Web Synchronization Wizard and it doesn't create a virtual directory. I manually create the virtual dir and point it to the new folder the Configure Web Synchronization Wizard created.

Browsing to the url "http://localhost/sqlce/sqlcesa30.dll" gives a valid test string.

Here is the ?diag response...
SQL Server Mobile Server Agent Diagnostics
2007/03/20 15:39:49

General Information


Item
Value

Server Name
localhost

URL
/sqlce/sqlcesa30.dll

Authentication Type
Anonymous

Server Port
80

HTTPS
off

Server Software
Microsoft-IIS/7.0

Replication
Allowed

RDA
Allowed

Logging Level
3


Impersonation and Access Tests


Action
Status
ErrorCode

Impersonate User
SUCCESS
0x0

ReadWriteDeleteMessageFile
SUCCESS
0x0


SQL Server Mobile Modules Test


Module
Status
ErrorCode
Version

SQLCERP30.DLL
SUCCESS
0x0
3.0.5300.0

SQLCESA30.DLL
SUCCESS
0x0
3.0.5206.0


Reconciler Test


Reconciler
Status
ErrorCode

9.0 Database Reconciler
SUCCESS
0x0

8.0 Database Reconciler
SUCCESS
0x0


SQL Server Module Versions


Module
Version

sqloledb.dll
6.0.6000.16386

9.0 replrec.dll
2005.90.3042.0

9.0 replprov.dll
2005.90.3042.0

9.0 msgprox.dll
2005.90.3042.0

8.0 replrec.dll
2000.80.2039.0

8.0 replprov.dll
2000.80.2039.0

8.0 msgprox.dll
2000.80.2039.0
When a Windows Mobile or Pocket PC device tries to do a ServerExecute or Push or Pull it gets this error message with SQLOLEDB ...

HResult = -2147467259
Message = " [ 600 ]"
NativeError = 29022
numericErrorParameters = {600,0,0}
Source = "Microsoft SQL Server 2005 Mobile Edition"

Which roughly translates to from the header file ...

#define SSCE_M_INCORRECTPROVIDERVERSION 29022 // The version of the Microsoft OLE DB Provider for SQL Server is not correct. Install MDAC 2.8 or later. [,,,Version,,]

When a Windows Mobile or Pocket PC device tries to do a ServerExecute
or Push or Pull it gets this error message with SQLNCLI ...



HResult = -2147467259

Message = " [ 9 ]"

NativeError = 29022

numericErrorParameters = {9,0,0}

Source = "Microsoft SQL Server 2005 Mobile Edition"

A very similar error.

From this it seems that both SQLCE 2 and 3 seem to want MDAC 2.8+ drivers. The drivers installed with Vista for SQL Native client seem to be versioned 6.0.* and the required versioning would seem to need to be in line with MDAC 2.8.

Are there installable drivers to bump the versioning of SQLNCLI or SQLOLEDB upto MDAC 2.8+ levels?

Or is there an alternative that will make it possible to run SQLCE RDA apps with Vista as the SQLCE server (i.e. sqlcesa30.dll)?

Cheers,

Jonathan

View 5 Replies View Related

ASP.NET And SQL Server Compact Edition

Sep 25, 2007

I am writing an application that is designed for the desktop, or small group (3 or less) desktops.  The application is being deployed using the Cassini web server as a complete "embedded" solution.  I wanted to use SQL Server Compact because of its small footprint and because of the synchronization capabilities with SQLServer.  Also, it is very easy to deploy vs. SQL Server Express.  The idea behind this APP is that someone might use it locally and then decide to subscribe to the service and then connect the same application to  a web services application. 
 That being said, and with knowledge of Microsoft's stance on SQL Compact under ASP.NET, I have most everything working and it works great except for one thing.  When I add a SQLDataSource to the page and set the connection string to my file and the DataProvider to System.Data.SqlServerCe and then bind a data grid to the SQLDataSource, it runs fine on my development machine, but when I deploy to my clean test machine, I get an error when the page loads saying:
Unable to find the requested .Net Framework Data Provider.  It may not be installed.
I can create a dataset in code (in fact,in several other places I do) and it works fine.  It is just the SQLDataSource(s) that are throwing this error.  I have a copy of System.Data.SqlServerCe.dll in the bin folder and I have all of the compact DLL's in the bin folder as well.  I can't figure out what I need to do.  I also have a reference to the System.Data.SqlServerCe in the web.config file.
 Can anyone help?
 
 

View 3 Replies View Related

Sql Server Compact Edition3.5

Jan 2, 2008

Hi, 
We have just installed visual studio 2008 for a windows mobile application development. This application requires a database also. VS 2008 installs sql server 2005 express edition and the sql server compact edition 3.5. We installed sql server management studio but this is for the express edition only. Please let us know how to use a similar tool for compact edition, we could not find any suitable for the same.
 Regards

View 1 Replies View Related

Question About SQL Server Compact 3.5 ?

Jan 17, 2008

I want to develop an application for my company's user to use...I will use VS2005 C# for windows as development tools,
and then I will develop the pocket PC or smart Phone for same application.In the first,the database I want to use is
SQL Server 2005 Express Edition,but it's difficulity to deploy , because it's fat files ,so if I use SQL Server compact 3.5 ,means I just develop once and I can re-compile the code for user to use Pocket PC and mobile...etc...right?

View 4 Replies View Related

New SQL Server Compact Edition

Jan 9, 2007

Does the new SQL server Compact edition RC1 (release in Dec 2006) replace the Microsoft SQL Server 2005 Mobile Edition Device SDK?

OR is this an additional database for specific requirements.

Currently developing against MS SQL Server 2005 Mobile Edition Device SDK;; if I switch to the Compact edition; is there a migration wiarzrd or Upgrade wizard available?

-jawahar

View 1 Replies View Related

SQL Server Compact Database..

Jan 4, 2008

Hi,

I am new to SQL Mobile developement and trying to developing a small device appliction. My C# code is shown below. My code is executing correctly, but i am not able to see the inserted records in to my SQL Compact database. What i am doing here? Please help.

FYI, I have added the database in to my solution. My solution and database resides in E:\some directory, where as the my assembly code base represents the datasource as \ProgramFilesMobExpTrackerMobExpTracker.sdf.


SqlCeConnection connection

{

get

{

if (_connection == null)

{

_connection = new SqlCeConnection(ConnectionString);

_connection.Open();

}

return _connection;

}

}

string CurrentFolder

{

get {return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);

}

}

const string databaseLocalFileName = "Northwind.sdf";

string DatabasePathName

{

get { return Path.Combine(CurrentFolder, databaseLocalFileName); }

}

const string BaseConnectionString = "Data Source=";

string ConnectionString

{

get { return BaseConnectionString + DatabasePathName; }

}


const string sql =

"INSERT INTO mobexptracker(ExpenseDt,ExpenseDescr,ExpenseAmt) VALUES (@ExpenseDt,@ExpenseDescr,@ExpenseAmt)";

const string sql1 =

"SELECT COUNT(1) FROM mobexptracker";



private void btnSave_Click(object sender, EventArgs e)

{

bool savesucess = Save();

if (savesucess)

{

MessageBox.Show("Expense Saved Sucessfully!");

}

else

{

MessageBox.Show("Error!");

}

}


bool Save ()

{

bool success= false;

using (SqlCeCommand cmd = new SqlCeCommand(sql,connection))

{

cmd.Parameters.Add("@ExpenseDt", txtDate.Text);

cmd.Parameters.Add("@ExpenseDescr",txtExpDesc.Text);

cmd.Parameters.Add("@ExpenseAmt",txtExpAmount.Text );

int cnt = (int)cmd.ExecuteNonQuery(); // ExecuteScalar();

cmd.

success = cnt > 0;

}



return success;

}



View 7 Replies View Related

Problem With SQL Server Compact 3.5

Apr 7, 2008



I am working with Visual Studio Team System 2008. I click File, New Project, Smart Device Project. I select Windows Mobile 6 Standard SDK for the platform, and .Net Compact Framework Version 3.5 for the framework version. When I click OK, I get the following message:

---------------------------------------
The operation cannot complete. To fix this problem, first copy these instructions into a separate file and then perform these steps in the order shown:

1. Click OK on this dialog box and the "Package Load Failure" dialog box which will appear after it, and then exit Visual Studio.
2. Reinstall Microsoft SQL Server Compact 3.5.
3. From the command line, run devenv /resetskippkgs.
------------------------------------


I did all of that, but the message still keeps coming up. Can someone explain how I can create a new project without this message coming up? Thanks.

View 8 Replies View Related







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