When you try to upsize to SQL Server 2000 from Access 2000 using the Upsizing Wizard you receive an "Overflow" error message.
For additional information about this issue, click the article number below
to view the article in the Microsoft Knowledge Base:
1. | Open the sample database Northwind.mdb. |
2. | Create a new query in Design view, and close the Show Table dialog box without adding any tables or queries. |
3. | On the View menu, click SQL View. |
4. | Type the following SELECT statement into the SQL window. It will create a make-table query:
SELECT
Employees.EmployeeID, Employees.LastName, Employees.FirstName,
Employees.Title, Employees.TitleOfCourtesy, Employees.BirthDate,
Employees.HireDate, Employees.Address, Employees.City,
Employees.Region, Employees.PostalCode, Employees.Country,
Employees.HomePhone, Employees.Extension, Employees.Photo,
Employees.Notes, Employees.ReportsTo
INTO
NewEmployees
FROM
Employees;
|
5. | Save the query as qryMakeTable, and then close it. |
6. | Create a second query in Design view, and close the Show Table dialog box without adding any tables or queries. |
7. | On the View menu, click SQL View. |
8. | Type the following INSERT INTO statement into the SQL window. It will create an append query:
INSERT INTO
NewEmployees (EmployeeID, LastName, FirstName, Title,
TitleOfCourtesy, BirthDate, HireDate, Address, City, Region,
PostalCode, Country, HomePhone, Extension, Photo, Notes,
ReportsTo)
SELECT
Employees.EmployeeID, Employees.LastName, Employees.FirstName,
Employees.Title, Employees.TitleOfCourtesy, Employees.BirthDate,
Employees.HireDate, Employees.Address, Employees.City,
Employees.Region, Employees.PostalCode, Employees.Country,
Employees.HomePhone, Employees.Extension, Employees.Photo,
Employees.Notes, Employees.ReportsTo
FROM
Employees;
|
9. | Save the query as qryAppend, and then close it. |
10. | On the Tools menu, point to Database Utilities, and then click Upsizing Wizard. |
11. | Complete the steps in the Upsizing Wizard, using default selections, except where noted below:
Create New Database: Yes
Which tables do you want to export to SQL Server: Export all tables
Add timestamp fields to tables: No, never
Create a new Access client/server application: Yes |
12. | Once the upsizing tool has completed its work, close the upsizing report. |
13. | Try to run the qryMakeTable stored procedure, and note the error message. |
14. | To set the select into/bulkcopy option to ON, create a stored procedure using the following SQL:
CREATE PROCEDURE SetMyOptions
AS
EXEC sp_dboption 'NorthwindSQL','bulkcopy','ON'
|
15. | Save and run the stored procedure SetMyOptions. |
16. | Run the stored procedure qryMakeTable again. Note that this time it succeeds. |
17. | Try to run the qryAppend stored procedure and note the error message. |
18. | To set IDENTITY INSERT to ON, add the following line of SQL to the qryAppend stored procedure directly after the keyword AS:
SET IDENTITY_INSERT NewEmployees ON
When complete, your stored procedure should resemble the following text:
ALTER PROCEDURE qryAppend
AS
SET IDENTITY_INSERT NewEmployees ON
INSERT INTO
NewEmployees (EmployeeID, LastName, FirstName, Title,
TitleOfCourtesy, BirthDate, HireDate, Address, City, Region,
PostalCode, Country, HomePhone, Extension, Photo, Notes,
ReportsTo)
SELECT
Employees.EmployeeID, Employees.LastName, Employees.FirstName,
Employees.Title, Employees.TitleOfCourtesy, Employees.BirthDate,
Employees.HireDate, Employees.Address, Employees.City,
Employees.Region, Employees.PostalCode, Employees.Country,
Employees.HomePhone, Employees.Extension, Employees.Photo,
Employees.Notes, Employees.ReportsTo
FROM
Employees
|
19. | Save the modified stored procedure, and then run it. Note that it succeeds. |