Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paradox Front End, SQL Server Back End

Status
Not open for further replies.

SuperG

Programmer
Mar 24, 2000
37
CA
I am having trouble keeping the SQL Server database open.

I open the session and database in my startup script, which opens my main navigation form.

When I move to a data entry form with SQL Server data in the data model the database information box pops up waiting for input before continuing to open the form.

Is there any way to keep the database connection open until I exit the application.

Startup script

ses.open()

dynAlias["Database"] = "ISAS"
dynAlias["User Name"] = GetNetUserName()
dynAlias["Password"] =""

if not dbSQL.open(":INACDATA:", ses, dynAlias) then
MsgStop("Login Error", "User not registered for ISAS Database")
endIf

Thank you.

Glenn
 
Glenn,

Have you tried to use a global Session variable in your application? The Database type has an alternate open() declaration that lets you specify a specific session and the Session type may surface additional properties you can change.

Also, see if any of the MSSQL driver settings in BDE Admin affects this. I don't see any that might be possible, but your connection may be closing prematurely.

It's a guess, but one I hope helps at least a little...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top