pmscraiova
Programmer
I have an old application that I used for control access based on bar code. Now I must move the databases to SQL Server. I must read from the employees table and write to the control access table. I am not sure what is the best way to read/write into SQL Server tables. I think that there are two possibilities:
1. at each code bar read to open a connection with SQL Server and read/write there through a remote view
2. periodically open a connection and make a local copy of the employees table, interrogate it and insert into a control access local table. After that I’ll update the SQL server control access table from the local table.
From employees table I must read the following records:
- employees Id
- first name
- last name
- birthdate
- parents name
- employee’s photo
Into control access table I must write the following records:
- employees Id
- datetime() of the record
- reason of pass through the control point
- kind of pass (input or output)
I have about 10 pass / minute through the control point.
1. at each code bar read to open a connection with SQL Server and read/write there through a remote view
2. periodically open a connection and make a local copy of the employees table, interrogate it and insert into a control access local table. After that I’ll update the SQL server control access table from the local table.
From employees table I must read the following records:
- employees Id
- first name
- last name
- birthdate
- parents name
- employee’s photo
Into control access table I must write the following records:
- employees Id
- datetime() of the record
- reason of pass through the control point
- kind of pass (input or output)
I have about 10 pass / minute through the control point.