Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server CE / June 2008

Tip: Looking for answers? Try searching our database.

SQL Server CE and Delphi 5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paweł Łaziński - 26 Jun 2008 07:26 GMT
Hello everyone,

I'm searching to answer for the question: is exists some posibilities to
connect sql server 2005 compact edition from Delphi 5, by using a ado
connection (ole db) ?
At this moment, one what I done, is only message: "Unknown error".
My connection string looking like that:
"Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data
Source=d:\\mydatabase.sdf;Persist Security Info=False".
If You are solve this problem or have some sugestions, please write.

Thanks.
Pawel
ErikEJ - 26 Jun 2008 09:59 GMT
I have made some sample VBA code that you might be able to use:
http://forums.microsoft.com/msdn/showpost.aspx?postid=3146645&siteid=1&sb=0&d=1&
at=7&ft=11&tf=0&pageid=1


http://erikej.blogspot.com/2008/04/import-sql-compact-data-to-excel.html

Signature

Erik Ejlskov Jensen - MCTS: Mobile App Dev

> Hello everyone,
>
[quoted text clipped - 9 lines]
> Thanks.
> Pawel
ErikEJ - 26 Jun 2008 10:00 GMT
I have made some sample VBA code that you might be able to use:
http://forums.microsoft.com/msdn/showpost.aspx?postid=3146645&siteid=1&sb=0&d=1&
at=7&ft=11&tf=0&pageid=1


http://erikej.blogspot.com/2008/04/import-sql-compact-data-to-excel.html

Signature

Erik Ejlskov Jensen - MCTS: Mobile App Dev

> Hello everyone,
>
[quoted text clipped - 9 lines]
> Thanks.
> Pawel
mibainfo - 28 Jun 2008 11:08 GMT
For Delphi 7.0:

//-----
...
 uses
   .. , ADODB_TLB, ssce35_tlb;
...
const
c_SSCE35 = 'Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=%s;Persist
Security Info=False';
var
 s:String;
 connSDF      : _Connection;
begin
 connSDF    := CoConnection.Create;
 s:= Format(c_SSCE, [sFileName] );
 connSDF.Open( s, '', '', Integer (adConnectUnspecified ) );
...
end;
//-----

Miro

"Pawe³ £aziñski" <p.lazinski@orcom.pl> napísal v správe
news:8327611E-219B-4E1A-9434-057AF5EF84CF@microsoft.com...
> Hello everyone,
>
[quoted text clipped - 9 lines]
> Thanks.
> Pawel
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.