R
Ron W
I have a buckets full of data that I have to regularly move across the
Internet in a mostly unattended manner. The data is gathered locally
by scanning barcodes (lots of em). Data then gets moved from the
barcode scanner to a table in local Access database. We have done this
errorlessly many thousands of times. Now I'd like to automate the
aggregation of this data to our Sql Server back at Intergalactic HQ.
We have set up a Web Service for this and it seems to be working just
fine. However I am concerned about the possibility that some of the
data might get corrupted or
lost during the transfer.
So I am looking for some sort of simple test I can run on both sides
(Access and Sql) that would Lickety Split generate a check sum or hash
value that would reduce the possibility of a data transfer error to
really low probability's. I have been fooling around with a Sum of the
Digits method using a query on Sql that I am unable to duplicate on
the Access Side. Here is the Sql Query
SELECT
sum(CAST(SUBSTRING(Cast(tblScan.AttID AS nvarchar(12)), n, 1) AS INT))
AS
Asset_sum
FROM (
SELECT 1 UNION ALL
SELECT 2 UNION ALL
SELECT 3 UNION ALL
SELECT 4 UNION ALL
SELECT 5 UNION ALL
SELECT 6 UNION ALL
SELECT 7 UNION ALL
SELECT 8 UNION ALL
SELECT 9 UNION ALL
SELECT 10 UNION ALL
SELECT 11 UNION ALL
SELECT 12) AS I(n)
CROSS JOIN
tblScan
On our server this produces a result in less than a second summing
10,000 rows. The table structure on the Access and Sql Sides are
identical. I am now trying to AccessIZE it but have not been
successful. Here is a non working AccessIZEd version
SELECT
sum(Clng(mid(cstr(tblScan.AttID), n, 1) )) AS Asset_sum
FROM (
SELECT 1 UNION ALL
SELECT 2 UNION ALL
SELECT 3 UNION ALL
SELECT 4 UNION ALL
SELECT 5 UNION ALL
SELECT 6 UNION ALL
SELECT 7 UNION ALL
SELECT 8 UNION ALL
SELECT 9 UNION ALL
SELECT 10 UNION ALL
SELECT 11 UNION ALL
SELECT 12) AS I(n)
CROSS JOIN
tblScan
The above query when run in Access dies with an "Syntax error in FROM
Clause" and the cursor sitting between the "I(" and the "n)"
Any help would be most appreciated, INCLUDING alternate methods for
performing data integrity checking. I am wide open to all suggestions/
solutions. Many thanks in advance
Ron W
Internet in a mostly unattended manner. The data is gathered locally
by scanning barcodes (lots of em). Data then gets moved from the
barcode scanner to a table in local Access database. We have done this
errorlessly many thousands of times. Now I'd like to automate the
aggregation of this data to our Sql Server back at Intergalactic HQ.
We have set up a Web Service for this and it seems to be working just
fine. However I am concerned about the possibility that some of the
data might get corrupted or
lost during the transfer.
So I am looking for some sort of simple test I can run on both sides
(Access and Sql) that would Lickety Split generate a check sum or hash
value that would reduce the possibility of a data transfer error to
really low probability's. I have been fooling around with a Sum of the
Digits method using a query on Sql that I am unable to duplicate on
the Access Side. Here is the Sql Query
SELECT
sum(CAST(SUBSTRING(Cast(tblScan.AttID AS nvarchar(12)), n, 1) AS INT))
AS
Asset_sum
FROM (
SELECT 1 UNION ALL
SELECT 2 UNION ALL
SELECT 3 UNION ALL
SELECT 4 UNION ALL
SELECT 5 UNION ALL
SELECT 6 UNION ALL
SELECT 7 UNION ALL
SELECT 8 UNION ALL
SELECT 9 UNION ALL
SELECT 10 UNION ALL
SELECT 11 UNION ALL
SELECT 12) AS I(n)
CROSS JOIN
tblScan
On our server this produces a result in less than a second summing
10,000 rows. The table structure on the Access and Sql Sides are
identical. I am now trying to AccessIZE it but have not been
successful. Here is a non working AccessIZEd version
SELECT
sum(Clng(mid(cstr(tblScan.AttID), n, 1) )) AS Asset_sum
FROM (
SELECT 1 UNION ALL
SELECT 2 UNION ALL
SELECT 3 UNION ALL
SELECT 4 UNION ALL
SELECT 5 UNION ALL
SELECT 6 UNION ALL
SELECT 7 UNION ALL
SELECT 8 UNION ALL
SELECT 9 UNION ALL
SELECT 10 UNION ALL
SELECT 11 UNION ALL
SELECT 12) AS I(n)
CROSS JOIN
tblScan
The above query when run in Access dies with an "Syntax error in FROM
Clause" and the cursor sitting between the "I(" and the "n)"
Any help would be most appreciated, INCLUDING alternate methods for
performing data integrity checking. I am wide open to all suggestions/
solutions. Many thanks in advance
Ron W