Solved

DSN-Less connection in PB 7.0 w/SQL Server

Posted on 2004-09-17
2
566 Views
Last Modified: 2013-12-26
All,

The title says it all.  I want to connect my Powerbuilder application to SQL Server 2000, DSN-less and using Windows authentication.  Can this be done and if so, how is it done?

Here is what I have tried...
SQLCA.DBMS = 'MSS MS SQL Server 6.x'
SQLCA.AutoCommit = TRUE
SQLCA.DBParm = "ConnectOption='SQL_INTEGRATED_SECURITY,SQL_IS_ON'"
SQLCA.logid = <myusername>
SQLCA.Database = <mydatabase>
SQLCA.ServerName = <myservername>

When I debug through this, it gives me the error, "login incorrect".  My username is in the SQL Server logins.  

Please advise!

Thanks!
0
Comment
Question by:colettim
2 Comments
 
LVL 8

Expert Comment

by:Vikas_Dixit
ID: 12091851
Please refer this post :

http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_21006549.html

May be of some help..
regards
Vikas
0
 
LVL 4

Accepted Solution

by:
falvaro3 earned 175 total points
ID: 12098791
My comes across liike this (note the DBParm option) in PB7:

// Profile local_auth
SQLCA.DBMS = "MSS Microsoft SQL Server 6.x"
SQLCA.Database = "local_dev"
SQLCA.LogPass = <*********>
SQLCA.ServerName = "DevServer"
SQLCA.LogId = "MYDOMAIN\My_Logon"
SQLCA.AutoCommit = True
SQLCA.DBParm = "Secure=1"

Also note, I'm using a domain logon for this SQL Server.
And also make sure that your username has been given access to the db [sorry, had to ;)  ]
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NetBeans and configurationfiles 2 63
What is an NDK ? 3 103
regex. How to include lines between 10 93
Software tool to depict the structure of a Visual Studio solution/project 6 107
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question