Home > database >  Pb9 development program in Windows 7 64 - bit 32-bit XP running problem
Pb9 development program in Windows 7 64 - bit 32-bit XP running problem

Time:09-18

I've been pb9 + 32-bit XP environment under development program, now want to run the program under Windows 7 64, found themselves unable to connect to the database, the sqlca. Sqlcode=1, is the database connection code need to be written on a 64 - bit system alone? Or what needs to be under configuration in Windows 7 64 - bit environment parameters? Or must use pb9 + Windows 7 64 - bit development environment to just go? If using pb9 + Windows 7 64 - bit development environment, will have other problems?
Trouble under bosses do to help, thank you,

//connect to the database
Sqlca. DBMS=ProfileString (ls_PBINI, "database", "DBMS", "")
The sqlca. Database=ProfileString (ls_PBINI, "database", "database", "")
The sqlca. Userid=ProfileString (ls_PBINI, "database", "userid", "")
The sqlca. Dbpass=ProfileString (ls_PBINI, "database", "dbpass", "")
The sqlca. Logid=ProfileString (ls_PBINI, "database", "logid", "")
The sqlca. Logpass=ProfileString (ls_PBINI, "database", "LogPassword", "")
The sqlca. Servername=ProfileString (ls_PBINI, "database", "servername", "")
The sqlca. Dbparm=ProfileString (ls_PBINI, "database", "dbparm", "")
Connect using the sqlca;

If the sqlca. Sqlcode=0 then
//
The else
Messagebox (' sqlcode ', 'database connection fails, the error code:' + string (sqlca. Sqlcode))
Return
End the if
//connect to the database
  • Related