Hi All,
I would appreciate any help you are able to give.
My question is this: I have wriiten a telesales database for a company with 14 users. The front end is MS Access 2003 mdb with a SQL Server 2005 back end. The whole system works very well and has done for a number of years, but as the business increases in size, I now have an efficiency problem in one area.
The company buys leads from a source, sometimes 20,000 at a time. The database tables, currently have over 250,000 records in them. When new leads are supplied, the telephone number for each lead is checked against the existing telephone numbers in the database. If the telephone number of the new lead does not already exist in the database, it is then added to the table, together with other related data. If the telephone number already exists in the database, the telephone number and related data are added to a claim table, so that the cost of that lead can be reclaimed as they have already supplied that lead before.
The problem that I have is that the time it takes to check new leads with existing ones in the tables is becoming increasingly long as would be expected.
The checking is all done at present by running a query for each lead against the backend tables. Would this be better performed by a stored procedure on the sql server, and if so is it possible to pass the telephone number for each new lead to this stored procedure as a parameter, without sql server having to compile the query each time.
Many thanks
Eddie
I would appreciate any help you are able to give.
My question is this: I have wriiten a telesales database for a company with 14 users. The front end is MS Access 2003 mdb with a SQL Server 2005 back end. The whole system works very well and has done for a number of years, but as the business increases in size, I now have an efficiency problem in one area.
The company buys leads from a source, sometimes 20,000 at a time. The database tables, currently have over 250,000 records in them. When new leads are supplied, the telephone number for each lead is checked against the existing telephone numbers in the database. If the telephone number of the new lead does not already exist in the database, it is then added to the table, together with other related data. If the telephone number already exists in the database, the telephone number and related data are added to a claim table, so that the cost of that lead can be reclaimed as they have already supplied that lead before.
The problem that I have is that the time it takes to check new leads with existing ones in the tables is becoming increasingly long as would be expected.
The checking is all done at present by running a query for each lead against the backend tables. Would this be better performed by a stored procedure on the sql server, and if so is it possible to pass the telephone number for each new lead to this stored procedure as a parameter, without sql server having to compile the query each time.
Many thanks
Eddie