Solved

SQL Password

Posted on 1997-06-22
1
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
CFantin earned 200 total points
ID: 1337461
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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