Hi Brad

>
>
> Try:
>
>  _con = sapdbapi.connect("DBA", "PASSWORD", "DBNAME",
>        "hostipaddress.com")
>

I Try This :

-----------------------------------------------

import sapdbapi

_con = sapdbapi.connect("dba", "*********", "TST", "goku")

cursor = _con.cursor ()

cursor.execute ("select * from latabla")

row = cursor.fetchone ()
while (1):
   row = cursor.fetchone()
   if row == None:
     break
   print row
   print '<br>'

------------------------------------------------

And Show This :

Traceback (innermost last):
  File "./sappy.py", line 6, in ?
    _con = sapdbapi.connect("dba", "052001729", "TST",
"gogeta.publinetwork.net")
  File "/usr/lib/python1.5/site-packages/sapdbapi.py", line 102, in __init__
    database, host, configString)
  File "/usr/lib/python1.5/site-packages/sapdbapi.py", line 60, in wrapCall
    raise ProgrammingError (err)
sapdbapi.ProgrammingError: sapdb.SQLError: [-4008] (at 1) Unknown user
name/password combination
Exception exceptions.AttributeError: '_Connection__connection' in <method
Connection.close of Connection instance at 80f1408> ignored

I see :

database, host, configString)

But i dont understand, if i use addicional config param then show this :

TypeError: too many arguments; expected 5, got 6

I dont understan this.


+------------------------------------------------------------------------+
| UNIX is user friendy, but it knows to         ,        ,               |
| choose very well to his friends.             /(        )`  Peace, Love |
|                                              \ \___   / |      and     |
| Fernando A. Velasquez                        /- _  `-/  '   Opensource |
| Administrador de Red                        (/\/ \ \   /\              |
| [EMAIL PROTECTED]                        / /   | `    \             |
| Tel ++57 2 665 2107                         O O   ) /    |             |
| Fax ++57 2 665 2107                         `-^--'`< '                 |
| Cali, Valle                                (_.)  _  )   /              |
| Colombia, Sudamerica                        `.___/`    /               |
| For PGP/GPG Public Key E-Mail Me              `-----' /                |
|                                  <----.     __ / __   \                |
|                                  <----|====O)))==) \) /====            |
| +----------------------+         <----'    `--' `.__,' \               |
| | Jesus Save,          |                       |        |              |
| | but only Buda made   |                       \       /               |
| | incremental Backups. |                 ______( (_  / \______         |
| +----------------------+                ,'  ,-----'   |        \       |
|                                         `--{__________)        \/      |
| If this message dont have a                                            |
| PGP/GPG signature, dont trust!           Powered by FreeBSD            |
+------------------------------------------------------------------------+


_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to