B4J Tutorial Using Sql Server 2008 with Advance Project Management of Saif

Hi Members.

This is continuation of below post

Trying to restore the given .bak file of below project, in my Sql Server 2008

I faced error as below and explanation I found,

B4X:
prob: Specified cast is not valid. (SqlManagerUI)

    solu: The Windows server version is irrelevant.  Your post sounded like you
    were trying to restore a SQL Server 2012 backup to SQL Server 2008, which
    won't work. IF you are trying to restore a native SQL Server 2008 backup, it
    should be okay.

Now without the tables the login screen will not proceed.

Never learnt to stop, I opened the mysql script given and pasted the create table sql in Query of Sql Server 2008. It gave error and I changed the sql till it created the table.
One by one I copied and pasted each table sql and made changes and created the tables. I have attached the changed sql file here, hoping it may benefit members who have lower version of Sql Server.

All tables are ready but login page does not proceed as the '[email protected]' data is not there.

I searched in .bas files and found the table and minimum columns required and inserted the data as below,
B4X:
insert into EmployeeInformation (EmpID, EmailAdd, EmpPassword, EmployeeName, EmployeeSalary, IsMale, EmpDeptID, IsAdmin) values (1, '[email protected]', 'admin', 'Admin', 1, 1, 1, 1)

Lo and Behold ! Advance Project Management is up and running like a smooth cake on my database.
Am I happy ? Oh come on ! My name is Anand which means 'Happy'.
And I am now confident with Sql Server setting too :D

I like to thanks Erel too here as this gave me chance to learn and use B4J and its database features.

Screenshot_2021-05-23-21-52-01-030_com.android.chrome.jpg Screenshot_2021-05-23-21-52-50-152_com.android.chrome.jpg Screenshot_2021-05-23-21-53-05-129_com.android.chrome.jpg b4a4.png b4a3.png

Regards,

Anand
 

Attachments

  • b4jpm_tables_2008_r2.sql.txt
    4.1 KB · Views: 240
Top