Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

powerbuilder connection

$
0
0

i am using PB11.5 build 3050

my question is about datasources for connecting to a database. I have been told if I put all my information in the connectstring that I don't need to define a datasource. It seems with powerbuilder I need my datasource.

 

Currently this is what I have to connect:

I have a datasource set up named MAXTEST

[Profile MAXTEST]

DBMS=ODBC

Database=MAXTEST

UserId=

DatabasePassword=

LogId=

LogPassword=

ServerName=

DBParm=ConnectString='DSN=MAXTEST;UID=user;PWD=pwd'

Lock=

Prompt=FALSE

AutoCommit=FALSE

 

 

I have tried this using this:

*NO datasource named MAXTEST_CAROL

[Profile MAXTEST_CAROL]

DBMS=

Database=

UserId=

DatabasePassword=

LogId=

LogPassword=

ServerName=

DBParm="ConnectString='ODBC;Driver={SQL Server};ServerName=CS-SQL-04;Database=MAXTEST;UID=user;PWD=pwd"

Lock=

Prompt=FALSE

AutoCommit=FALSE

 

when I use this i get a dialog box to choose my datasource.

 

Is it powerbuilder that requires the datasource or am I doing something incorrect?

hopefully this is enough information to help me or point me in the right direction.

 

Thanks.

 

CarolD


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>