SQL-Statement with Python

Tim Roberts timr at probo.com
Thu Jan 18 00:05:20 EST 2001


"Alex Martelli" <aleaxit at yahoo.com> wrote:
>
>import win32com.client
>
>connection = win32com.client.Dispatch("AdoDb.Connection")
>connection.Provider = "Microsoft.Jet.OLEDB.4.0"
>filename = r'd:\\mssdk\\bin\\nwind.mdb'

Thank you for providing this simple and understandable ADODB example.  I do
have one nit in that last line.  I think you want EITHER the "r" prefix, OR
the double backslashes.  Including both is just too much of a good thing...
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list