Home > database >  Invalid id problem
Invalid id problem

Time:10-03

String sys
Sys="dsmis. Ini"
If not FileExists (sys) then
Messagebox (" warning!" , "initialization file not found!" , stopsign!)
The halt close
End the if
Sqlca. DBMS=ProfileString (" dsmis. Ini ", "database", "DBMS", "")
The sqlca. Servername=ProfileString (" dsmis. Ini ", "database", "servername", "")
The sqlca. Database=ProfileString (" dsmis. Ini ", "Database", "Database", "")
The sqlca. Dbparm=ProfileString (" dsmis ", "database", "Dbparm", "")
The sqlca. Logid=ProfileString (" dsmis ", "database", "Logid", "")
The sqlca. Logpass=ProfileString (" dsmis ", "database", "LogPassWord", "")
The sqlca. Userid=ProfileString (" dsmis ", "database", "Userid", "")
The sqlca. DBPass=ProfileString (" dsmis ", "database", "DBPass", "")
The sqlca. The AutoCommit=False
Connect using the sqlca;
If the sqlca. Sqlcode & lt;> 0 then
Messagebox (" database connection ", the sqlca sqlerrtext)
Return
The else
Open (w_mian)

/*=================================*/
/* File: dsmis. Ini */
/* Desc: this file for the system configuration file, please do not */
/* modify, otherwise may cause system */
/* system can not work normally, */
/*=================================*/
(Database)
The DBMS=MSS Microsoft SQL Server
The Database=1
UserId=
DBPass=
The Lock=
LogID=sa
LogPassword=
ServerName=.
//desksoft
DBParm=
The AutoCommit=false



Run time prompt invalid login id rose
SQL query analyzer is to use the sa password is 123456
Everybody to help me see, how to solve,

CodePudding user response:

Database validation to blend mode, and test again

CodePudding user response:

LogPassword='123456'
In your ini file LogPassword=no assignment,

CodePudding user response:

A little difficulty oh

CodePudding user response:

No, for the top
  • Related