Solved

SQL Password

Posted on 1997-06-22
1
161 Views
Last Modified: 2010-04-04
How can I pass an MS-SQL Login/Password from within a Delphi app so that the SQL login screen does not appear.

I want to have a program access a database and bypass security as it is not needded in this situation.
0
Comment
Question by:hughj
1 Comment
 
LVL 1

Accepted Solution

by:
CFantin earned 200 total points
Comment Utility
Put a database on your form, (It is found in the Data Access Tab)
Set LoginPrompt property to False,
Connect your database to an alias,
Give you database a DatabaseName,
You can give it any paramaters you need in the Params property
eg.
user name=PutUserNameHere
password=PutPasswordHere

You should be able to connect to the database.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now