M
Mike
I have an Access 2003 database which uses linked SQL-server tables as and
ODBC data source.
Sometimes I export data from Access queries to Excel like this:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qryDataForExport", "D:\AccessExport.xls", Yes
It works fine for 1 000-2 000 records. But if the query returns 120 000
records I get the following error:
Connection failed:
SQLState: '01000'
SQL Server Error: 233
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 17
[Microsft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
access denied.
It looks like some timeout occurs.
Is there any idea why it happens?
P.S. I cannot use DoCmd.OutputTo method because I get unreadable characters
in Excel file, although it returns 120 000 records without any problem.
ODBC data source.
Sometimes I export data from Access queries to Excel like this:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qryDataForExport", "D:\AccessExport.xls", Yes
It works fine for 1 000-2 000 records. But if the query returns 120 000
records I get the following error:
Connection failed:
SQLState: '01000'
SQL Server Error: 233
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 17
[Microsft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
access denied.
It looks like some timeout occurs.
Is there any idea why it happens?
P.S. I cannot use DoCmd.OutputTo method because I get unreadable characters
in Excel file, although it returns 120 000 records without any problem.