<br><font size=2 face="sans-serif">Might I suggest just using a &quot;CREATE
TABLE&quot; sql statement through ADO instead?</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;sqlstatement
= &quot;CREATE TABLE SPAM (SpamID Int Not Null, Eggs Char(20));&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;conn = win32com.client.Dispatch(r'ADODB.Connection')</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA
SOURCE=' + self.dbpath + ';'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;conn.Open(DSN)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;#Query the
recordset - should be in module with establishing connection stuff</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;rs = win32com.client.Dispatch(r'ADODB.Recordset')</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;try:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
rs.Open(sqlstatement, conn,1 ,3)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; except:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
print 'DB Error'</font>
<br>
<br>
<br><font size=2 face="sans-serif">Eric B. Powell<br>
BSRI<br>
Electronic Aids<br>
(803)208-6207<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jim.Vickroy@noaa.gov</b>
</font>
<br><font size=1 face="sans-serif">Sent by: python-win32-bounces@python.org</font>
<p><font size=1 face="sans-serif">07/10/2006 05:52 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">python-win32@python.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[python-win32] ADOX catalog.Table.Append
error -- 'The parameter is incorrect.',</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hello,<br>
<br>
I am a novice user of ADOX who is attempting to create a database and <br>
a table in it.<br>
<br>
I seem to be able to create a SQL Express database but am unable to <br>
add a table to it.<br>
<br>
The attached script (adox.py) illustrates the difficulty.<br>
<br>
Any suggestions would be appreciated.<br>
<br>
Thanks,<br>
<br>
-- jv<br>
_______________________________________________<br>
Python-win32 mailing list<br>
Python-win32@python.org<br>
http://mail.python.org/mailman/listinfo/python-win32<br>
</tt></font>
<br>