G
GracieLou
Good Morning Gurus,
I hope I am posting to the correct area. I was torn between Forms Coding
and here. But it is mainly about exporting to SQL.
I am using Access 2003 and SQL Server 2000.
I have a linked table I am taking into SQL via Access query.
DoCmd.TransferDatabase acExport, “ODBC Databaseâ€, “ODBC;DRIVER=SQL
Server;SERVER=(local); APP=Microsoft Office
2003;WSID=computername;DATABASE=LGL09;Trusted_Connection=Yes;
TABLE=dbo.tblMar;†& “DATABASE=LGLAllâ€, acTable, “qry002LglDataâ€, “Marchâ€
Although this works, I do get an error msg.
ODBC—call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]Warning: The table ‘March’
has been created but its maximum row size (14376) exceeds the maximum number
of bytes per row (8060). INSERT or UPDATE of a row in this table will fail
if the resulting row length exceeds 8060 bytes. (#1708)[Microsoft][ODBC SQL
Server Driver][SQL Server]There is already an object named ‘March’ in the
database. (#2714)
The table March gets created in the correct place and all of the records are
there.
The table that it creates and fills, March, has 30 fields. 28 of them are
text and 2 are currency. All of the text fields come across as nvarcar,
length 255.
Questions:
What can I do to get rid of the msg?
Can I do any coding to make the field type varcar?
And one last question; Can you append to a table in SQL from Access instead
of only creating a table like the above code does?
Any help is appreciated.
I hope I am posting to the correct area. I was torn between Forms Coding
and here. But it is mainly about exporting to SQL.
I am using Access 2003 and SQL Server 2000.
I have a linked table I am taking into SQL via Access query.
DoCmd.TransferDatabase acExport, “ODBC Databaseâ€, “ODBC;DRIVER=SQL
Server;SERVER=(local); APP=Microsoft Office
2003;WSID=computername;DATABASE=LGL09;Trusted_Connection=Yes;
TABLE=dbo.tblMar;†& “DATABASE=LGLAllâ€, acTable, “qry002LglDataâ€, “Marchâ€
Although this works, I do get an error msg.
ODBC—call failed.
[Microsoft][ODBC SQL Server Driver][SQL Server]Warning: The table ‘March’
has been created but its maximum row size (14376) exceeds the maximum number
of bytes per row (8060). INSERT or UPDATE of a row in this table will fail
if the resulting row length exceeds 8060 bytes. (#1708)[Microsoft][ODBC SQL
Server Driver][SQL Server]There is already an object named ‘March’ in the
database. (#2714)
The table March gets created in the correct place and all of the records are
there.
The table that it creates and fills, March, has 30 fields. 28 of them are
text and 2 are currency. All of the text fields come across as nvarcar,
length 255.
Questions:
What can I do to get rid of the msg?
Can I do any coding to make the field type varcar?
And one last question; Can you append to a table in SQL from Access instead
of only creating a table like the above code does?
Any help is appreciated.