The sqlca. Servername=ProfileString (" wang. Ini ", "database", "servername", "")
The sqlca. Database=ProfileString (" wang. Ini ", "Database", "Database", "")
The sqlca. Dbparm=ProfileString (" wang. Ini ", "database", "Dbparm", "")
The sqlca. Logid=ProfileString (" wang. Ini ", "database", "Logid", "")
The sqlca. Logpass=ProfileString (" wang. Ini ", "database", "LogPassWord", "")
The sqlca. Userid=ProfileString (" wang. Ini ", "database", "Userid", "")
The sqlca. DBPass=ProfileString (" wang. Ini ", "database", "DBPass", "")
Connect using the sqlca;
If the sqlca. Sqlcode & lt;> 0 then
Messagebox (" database connection ", the sqlca sqlerrtext)
Return
The else
Open (w_mian)
End the if
Wang. Ini file content is:
(Database)
The DBMS=MSS
Servername=.
Dbparm=
The Database=1
Logid=sa
Logpass=
FullName=Sybase Adaptive Server Anywhere 6. X
Userid=
Dbpass=
Run time messagebox tip first line near the "1" for grammar mistakes
Please help me to see what's wrong?
Wang. Ini files inside is there anything wrong?
CodePudding user response:
In the ini file DBMS=MSSThe DBMS=MSS Microsoft SQL Server
CodePudding user response:
Grammar not found errorYou, is a problem with the configuration file is
You unicom in profile, and the corresponding parameters and wang. The parameters in the ini file
CodePudding user response:
The DBMS=MSS MS SQL SERVER 6. XCodePudding user response:
The DBMS=MSS MS SQL SERVER 6. XUse this!
CodePudding user response:
Give you a common ini file(Database)
The DBMS=MSSQL SQL Server 2000
The Database=Database name
LogId=database user name
Password database LogPassword=
ServerName=server name
DbParm=
The Lock=
The AutoCommit=0
MSSQL SQL Server 2000 can be changed to MSS MS SQL Server 6. X
CodePudding user response:
A little difficulty oh