Should I Use SQL Express Or Compact???

Feb 11, 2007

Hi,

I have an application where I need a desktop Application to manage the data and I have PDA application which talks to RFID and gathers the data. I am a bit confused if i can have only one database which can work both on PDA and Desktop. Can you please help me decide if i should use compact or express for this purpose. Also I might have to use both compact and Express but is there a way to have common database for both where they can be replication and easily synchronised.

Help is much appreciated.

Regards
Trushar

View 3 Replies


ADVERTISEMENT

SQL Compact And Express

Mar 1, 2007

Can SQL Server Compact Edition do RDA with SQL Express? or I need to have SQL Server 2005(standard) instead of SQL Express? I will use RDA to synchronize the Compact Edition database on the phone and SQL Server database on desktop.


Thanks!

View 1 Replies View Related

SQL Server 2005 Express - Compact Database ?

Mar 3, 2007

Every time I modify my SQL Server database, it grows by about 1 MB.  I haven't added any data, in fact have reduced column sizes. Is there a utility that will compact the database and return it to a more manageable size? 

View 2 Replies View Related

SS Compact Edition 3.1 And Visual Studio Express.

Jan 20, 2008

Hello,

I have a SQL Server CE 3.1 database, which I want to connect to.
Browsing through the documentation, It's not clear to me which tools to use for this.
I have installed VS 2005 express edition (with sp1), but it can't connect to .sdf and
version VS 2008 only connects to SS CE 3.5.
The tools installation file ssce31vstools-ENU.exe file doesn't install on express edition
it seems, as I get an error message, that the patch is not valide.
I also installed the SS Management studio, but it doesn't seem to be able to handle .sdf.

Am I missing something obvious here? I am simply trying to access and modify a SS CE 3.1
databse...
Thanks for the help
Christophe Bouhier

View 1 Replies View Related

Add Data Connection To SQL Server Compact 3.5 From C# Express 2008

Apr 25, 2008



Well, what I want is to be able to do some tooling on a database (.sdf) on my WM5 device using C# Express 2008.

The problem is that when I select the "Tools/Connect to database" option, I choose my data source to be "Sql Server Compact 3.5" in the next screen, and when I press Continue, I am taken to the next screen, and here I cannot select the "ActiveSync connected device" in the "Data Source" section...it is disabled. The only option is selecting "My computer"...but I do not need that.

Is there something I need to install in order to activate that option?

Thanks,

Adrian

View 4 Replies View Related

Setting Up Code Library To Run Either SQL Server Express Or Compact 3.5

Feb 21, 2008

I am not sure if this should go here it is a bit of a mixed bag, sorry if it's in the wrong spot.

I am interested to know what ideas people might have in relation to the best way to structure/setup up an app that can connect to either an SQL Server Express DB or a Compact 3.5 DB. I have a small app that can be networked but a lot of people wont want a networkable version so I dont want them downloading an app that is 4mb but requires a 35mb SQL Express install just to get it to attach to what amounts to a local DB.


Both the System.Data.SQLClient and System.Data.sqlce namespaces include classes that share at least some (I haven't checked them all) classes that inherit from the same base class i.e. SQLConnection and SQLCeConnection both inherit DBConnection from System.Data.Common. so I am wondering if there is a tricky way that I can reduce my overall code overhead (mainly things like if statements to check which DB connection we want) by up casting both connections and managing them as DBConnections but at this stage I cant come up with one.

An in important point with this is that I intend to write SQL statements that are compatable with both SQL Express and SQL Compact, my DV structure is sufficiently simple enough that I can put up with the odd "wordy" SQL statement in favour of trying to use stored procedures and views in Express and then not being able to use them in Compact.

Cheers
Rob

View 1 Replies View Related

View Data From A Compact Database With The Management Studio Express ?

Jan 23, 2007

Hi there, after some hours of installing and experiments i can now open and sql server compact database (sdf) iam also able to create a new database and add tables and columns. (everything with the ms sql server management studio express)

i can also open the northwind database. but iam not able to view the data .

if i rightclick on a normal database table i can choose ->open table and see its content.

but on a compact table i have at rightclick only

edit table
properties
delete

refresh



how can i see the data in the table or add new content ?

thanks

View 8 Replies View Related

Microsoft SQL Server Management Studio Express Version To Use For SQL Compact

Jan 18, 2007

Hello,

i don't know if it was mentioned before, but i solved the issue that Microsoft SQL Server Management Studio Express won't show the option to create/modify a sql compact database by installing not this Version:

Microsoft SQL Server Management Studio Express
Date: 19.04.2006
http://www.microsoft.com/downloads/details.aspx?FamilyID=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&DisplayLang=en

but this one:

SQL Server Management Studio Express Service Pack 2 €“ CTP-Version
Date: 19.12.2006
http://www.microsoft.com/downloads/details.aspx?FamilyID=ccbda432-8ecf-4c82-bdef-b575eaf07f55&DisplayLang=en

hope this helps.

Nihat

P.S. i'm curious if anybody else had the same issue, caused of using the wrong Version of  SSMSe?

View 1 Replies View Related

Relationships In Management Studio Express Connected To SQL Server Compact Edition

Jan 16, 2007

Hello ,
Is possible to specify reationships between tables on SQL Server Compact Edition database in Management Studio Express ?

I can connect to database file , add tables, add data , but I dont't found the right methot to specify reationships as with SQL Server Express.

Any ideas?

View 5 Replies View Related

How To Convert SLQ Server Express Database File To SQL Compact Edition File?

May 29, 2007

Hi all,



I have a database name MyDatabase (SQL Server Express Dabase File). Is there anyway that I could convert it to SQL Server Compact Edition File?



By the way does anyone here got any problem with programming in SQL Server Compact Edition? It troubles me.



Thanks,

bombie

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

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

Install SQL Server 2005 Express After SQL Server Compact 3.5

Apr 8, 2008



Hello,
I am a SQL novice and I installed SQL Server Compact 3.5 and wanted SQL Server 2005 Express instead. I uninstalled the Compact version, but when I try to install Express, it still just installs the regular SQL Server 2005 Configuration tools. I have went so far as to uninstall all my Visual Studio Express apps and SDKs and even the .NET 3.5 framework, but it WILL NOT install the SQL Server 2005 Express. I am running 32-bit Windows Vista Home edition.

Please help.

Thanks.

View 1 Replies View Related

Move Data Between The SQL Compact Edition And SQL Express Edition, Is This Possible??

Nov 14, 2007

Hello everybody,

Wrote before but did not go any answer , try again.

I have two question about SQL compact edition (SQLCE) (.sdf) and SQL Express edition (SQLED) (.mdf).

I have been testing SQLED and have many tables and data in it.

I want know to test SQLCD and hopefully be able to communicate with the SQLED.
For this reason I was wondering the following:

1. IIs it possible to move all the tables and it constratints into the SQLCE from the SQED ?

2. Another possibility I was thinking about was to use some tables in the SQLED in the SQLCE and move data between these two databases through RDA .


However, does this two versions aloud this kind of communciation...between them....?

Thanks in forehand,

Matilde

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

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

Compact

Jul 20, 2005

No one answered in another group, please help.Using access 2000 /msdeI know how to compact the access project file (.adp), there's a menu choicefor that.How do I compact the tables and stored procedures on the server? ( The .MDFfile)I only have the DOS promp OSQL utility to work with.thanks

View 1 Replies View Related

Add SQL Compact To CE 6.0

Aug 20, 2007

I'm trying to add an SQL Compact Edition database to my application running on a CE 6.0 platform that I am also developing. Unlike PB 5.0, I don't see sql CE listed as an option in the catalog and when I try to run my application I get a pInvoke sqlceme30.dll error. I have found a number of references to this same issue elsewhere but no real good solutions. Most seem to point to the cab files not being deployed. I am thinking that I should have the necessary support files deployed in the CE image and I have downloaded and installed every sql CE version/update that I can find but none of them seem to add support to PB 6.0.

I am trying to add the cab files manually but I would appreciate any suggestions if there is a better solution............ Thanks

View 1 Replies View Related

SQL Compact For CE 6.0

Jul 5, 2007

Hi,



Is SQL Server Compact Editon 3.1 supported on Windows CE 6.0?



When I install the cab file sqlce30.wce5.armv4i.CAB in CE 6.0 it says that it might not be compatible. If I continue anyway it seems to work fine, but only the first time the application starts and accesses the database. When restaring the application it fails to connect to the database until I have reinstalled the cab file.



Any clues about this?



Thanks!



/ Joel

View 1 Replies View Related

Database Compact?

Feb 11, 2007

Hi,
I am wondering why a database that was 2Gb in size would come down to just 300Mb when I copy all the data from the origional database into a blank new one.
I ran a database shrink on the origional database but that only reduced it from 2.1 Gb to 2Gb.
I was shocked to see the size difference when I copied the data.
As far as I can tell the copied database still contains all the records of the origional.

I remember that MSAccess had a Compact function that literally copied all the data from one databse into a new empty one - is there the equivalent for SQL?

Any thoughts?

Thanks

View 8 Replies View Related

Compact And Repair In An Adp

Apr 5, 2007

Hi,I just deleted about 1 million records from a SQL Server 2000 database. Iaccess it using Access 2000.I have Compact and Repair available in the adp under Tools. Should I do thatfrom Access? Will it not mess anything up?Thanks!J~

View 2 Replies View Related

Compact Database

Jul 20, 2005

Is there a stored procedure that allow the compact database programmaticallyin SQL Server?

View 2 Replies View Related

SMO And Compact Edition

Feb 12, 2007

I am trying to make a simple example like sql management studio but stuck in the get table names part :) in first step. are there any easy way to get just table names from sdf file ?

I have tried to use SMO but no success.

Regards.

View 3 Replies View Related

SQL Compact 3.5 With VS2008

Feb 8, 2008



I have VS2008 (9.0.21022.8 RTM) and I cannot get SQL Compact 3.5 to work with it. Whenever I attempt to open a compact edition database, I get a message that "The operation cannot complete, click OK on the "Package Load Failure" dialog, reinstall SQL Server Compact 3.5 and then from the command line run devenv /resetskippkgs. I've tried that twice and no joy. I can connect and work just fine with SSMS 2005, but I cannot get it to work in VS2008.

Also when in VS2008 and I go to Server Explorer | Data Connections | Add Connection, I do not have Microsoft SQL Server Compact 3.5 in the list.

Any suggestions? Thanks.

-John

View 10 Replies View Related

Getting Started With SQL Compact

Jul 27, 2007

I've downloaded and installed SQL Compact Edition. When I go to Access to set up a project (or to use the upsizing wizard) the software doesn't see the Server on my computer. No doubt I'm missing some very simple step. Although the compact server is installed, there's no program file to run, so I don't see how to get into the server software in order to set up a database or project that I can link to from Access.

I've also downloaded and installed Microsoft.net. As with server, the files are in place but there's no program file to execute.

View 1 Replies View Related

SQL Compact And |DataDirectory|

Jun 28, 2007

I am trying to make an asp.net application that will run from the SQL Compact database.

To deploy the application we changed from a full path Data Source="C:inetpubappasdf.sdf"
to
Data Source="|DataDirectory|asdf.sdf"

This returns:
Illegal Character in Path

So I switched to having VS make the path for me
Data Source=".App_Dataasdf.sdf"
and got
The path is not valid. Check the directory for the database. [ Path = .App_DataPDQ_Test_CE.sdf

Is there ANYWAY to use a relative path for the SQL Compact Connection string?

View 6 Replies View Related

SQL Compact Reporting

Oct 28, 2007

Im using SQL Compact 3.1 and have created a desktop application
Can anybody tell me if there are any reporting fearures compatable

View 2 Replies View Related

How Reliable SQL Compact 3.5 Is?

Jan 16, 2008

How reliable the SQL Compact 3.5 is?

What I need is to make sure that in case if my Windows CE based device lost power supply my SQL Compact 3.5 database will not be corrupted and I can read data from it.
Has anybody any experience in this area?

This is critical requirement for our project and I want to know it is feasible or not.

View 1 Replies View Related

Compact.database

Nov 20, 2007

Here's the Active X Script I'm trying to migrate into an SSIS task:


Function Main()
Dim Engine, dbPath

dbPath = "c:path..."
Set Engine = CreateObject("JRO.JetEngine")

Main = DTSTaskExecResult_Success
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath &

"database_UnCompress.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath &

"testdatabase.mdb"
End Function


I have problems in migrating. Here are the questions:
1. Is the ShrinkDatabase task the SSIS equivalent of this script? If so, I'm having problems creating a new connection since it is an mdb file stored on local computer and not on a server. Is there a workaround on this?
2. If I have to use the script task, I use this codes:

Set Engine = CreateObject("DAO.DBEngine.35")
Engine.CompactDatabase "C:.path...database_UnCompress.mdb", "C:path... estdatabase.mdb"
or

Set Engine = CreateObject("JRO.JetEngine")
Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=pathdatabase.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=pathcompacted_database.mdb"
Both produce the same error: Option Strict On disallows late binding. Any suggestions?

3. I also tried to use the Execute SQL Task, using dbcc shrinkdatabase. But I seem lost again in creating a connection. Should I consider "database_UnCompress.mdb" as flat file source?

Any help deeply appreciated. Thanks.

View 9 Replies View Related

IDENTITY_INSERT On/Off In Sql Compact

Dec 11, 2006

Hi,

Im working in a project that uses sql server compact. While migrating some data from another database I needed to "Turn off" the identity insert :

SET IDENTITY_INSERT <tablename> OFF

and set it back to "ON" after the migration was completed. Unfortunately SQL Server Compact is giving me the following error:

There was an error parsing the query. [ Token line number = 1,Token line offset = 5,Token in error = @@IDENTITY_INSERT ]

Im i doing something wrong or this instruction is not supported by the Compact edition.

Does anybody knows another way to do this?

Thank you

Alexander75



View 5 Replies View Related







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