[python-win32] Re: ADOX catalog.Table.Append error -- 'The parameter is
Roger Upole
rwupole at msn.com
Wed Jul 12 03:29:00 CEST 2006
Jim.Vickroy wrote:
> Hello,
>
> I am a novice user of ADOX who is attempting to create a database and
> a table in it.
>
> I seem to be able to create a SQL Express database but am unable to
> add a table to it.
>
> The attached script (adox.py) illustrates the difficulty.
>
> Any suggestions would be appreciated.
I think Sql Server requires that you create the table before
adding any keys. Try moving the table.Keys.Append
to after catalog.Tables.Append.
Roger
More information about the Python-win32
mailing list