Home > database >  Pb to do application background database SQL starting the database service program to open it
Pb to do application background database SQL starting the database service program to open it

Time:09-22

Pb made a program, the background is SQL2000 database,
Have been writing database connection code
//Profile Shop
The SQLCA. DBMS="MSS Microsoft SQL Server"
The SQLCA. Database="Shop"
The SQLCA. LogPass="1234567890"
The SQLCA. ServerName=". "
The SQLCA. LogId="sa"
The SQLCA. The AutoCommit=false
The SQLCA. DBParm=""
The connect.
If the sqlca. Sqlcode<> 0 then
Messagebox (" Warning!" , "connect lost!" , stopsign!)
The halt close;
End the if
Open (shop_login)
Under the PB environment, after starting the database service (MSSQLSERVER) program to open, even at the run test, also want to start the SQL service, otherwise it appears: the connect lost! ,
After packaged into exe, also, only the SQL service manager point run service (or start MSSQLSERVER) in the task manager, can open the shop_login
Note: cannot be launched SQL, not unable to connect to the database
Find a warrior to 19 DLL, in the application directory, nor is there any change
Who know is how to return a responsibility?

CodePudding user response:

Is to start first,

CodePudding user response:

This should be used to start setting (I'm not familiar with), the problem of version to essentially ask to know.
(you ask, "used to monitor service never will start automatically with WINDOWS", probably is this meaning)

CodePudding user response:

And for others, not to install SQL2000 too?
  • Related