Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems connecting to SQL Server Compact with Powerbuilder

220 views
Skip to first unread message

loz...@hotmail.com

unread,
May 14, 2009, 9:58:49 PM5/14/09
to
Hi,

I am having difficulty connecting to SQL Server Compact using
Powerbuilder 9, 10.5 or 11.5

I have tried many ways but can't seem to connect.

Can you please post a sample SQLCA declaration so that I can see how
you connect.

Any help would be much appreciated

Thanks

Loz

Thomas Rundo

unread,
May 15, 2009, 10:49:18 AM5/15/09
to
I am using PB 11.5 and MS SQL Server 2000

Here is my connect string in PB 11.5

// Profile TX2000SQL1 HISTORY
SQLCA.DBMS = "SNC SQL Native Client(OLE DB)"
SQLCA.LogPass = <***>
SQLCA.ServerName = "TX2000SQL1"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Database='teoe_history',TrimSpaces=1,AppName='Powerbuilder
11.5.3127',Host='IT19 - Tom Rundo'"

You actually don't need the AppName or Host, we just use it to view on the
MS SQL Server monitor who is using what.


<loz...@hotmail.com> wrote in message
news:cef54ef2-d62b-4cfd...@p6g2000pre.googlegroups.com...

Laurenc...@hotmail.com

unread,
May 16, 2009, 12:36:45 AM5/16/09
to
Thanks Tom,

I have no problem connecting to regular SQL Server databases like SQL
Express/MSDE/SQL 2005, 2000 etc.

I only have problems connecting to SQL Server Compact.

This is my SQLCA declaration....

>> for SQL Server Compact (3.0)...

SQLCA.DBMS = "ADO.Net"
SQLCA.DBParm = "Namespace='System.Data.OleDb',DataSource='C:
\test35.sdf',Provider='Microsoft.SQLSERVER.CE.OLEDB.3.5'"

>> for SQL Server Compact (3.5)...

SQLCA.DBMS = "ADO.Net"
SQLCA.DBParm = "Namespace='System.Data.OleDb',DataSource='C:
\test.sdf',Provider='Microsoft.SQLSERVER.MOBILE.OLEDB.3.0'"

Any help on that would be appreciated

Loz

R. Pods

unread,
May 18, 2009, 4:24:25 AM5/18/09
to
Loz,

for me it looks like (at least in your posting) the code for 3.0 should
be swapped with that for 3.5.

Reimer

loz...@hotmail.com

unread,
May 18, 2009, 6:16:19 PM5/18/09
to
Sorry My mistake,

It should have read......

I have no problem connecting to regular SQL Server databases like SQL
Express/MSDE/SQL 2005, 2000 etc.

I only have problems connecting to SQL Server Compact.

This is my SQLCA declaration....

>> for SQL Server Compact (3.5)...

SQLCA.DBMS = "ADO.Net"
SQLCA.DBParm = "Namespace='System.Data.OleDb',DataSource='C:
\test35.sdf',Provider='Microsoft.SQLSERVER.CE.OLEDB.3.5'"

>> for SQL Server Compact (3.0)...

SQLCA.DBMS = "ADO.Net"
SQLCA.DBParm = "Namespace='System.Data.OleDb',DataSource='C:

\test.sdf',Provider='Microsoft.SQLSERVER.MOBILE.OLEDB.3.0'"

But I am still getting crashes when trying to connect.

server...@gmail.com

unread,
Aug 7, 2014, 10:18:57 PM8/7/14
to
hello could you connect with powerbuilder sql ce?

please help me

thanks

server...@gmail.com

unread,
Aug 7, 2014, 10:19:40 PM8/7/14
to
hello i am andres
0 new messages