<div>Hi,</div>  <div> </div>  <div>I could solve the problem in connecting to a database,,,</div>  <div>while configuring the daatsourcename by default it gets connected to the master table,,,so there i must specify the database which i like to connect,,,so now i can see the animals table in my database,,</div>  <div> </div>  <div>Thanks Eugene,,,</div>  <div> </div>  <div>Kavitha<BR><BR><B><I>Eugene Antimirov <Eugene.Antimirov@portaone.com></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">kavitha thankaian wrote:<BR>> Hi,<BR>> <BR>> i wrote a simple script (which follows) to insert a table in the <BR>> database.i could execute this query and get the result in python <BR>> shell.but when i open "my sql enterprise manager" i couldnt find the <BR>> table"animals".it would be so kind of you if someone could help me,,,<BR>> <BR>> <BR>> import dbi<BR>>
 import odbc<BR>> conn=odbc.odbc("DSN=mydatabase;UID=xxx;PWD=yyy")<BR>> cursor=conn.cursor()<BR>> cursor.execute("Create table animals(parent char(50),child char(50))")<BR>> cursor.execute("insert into animals values('lion','cub')")<BR>> cursor.execute("insert into animals values('goat','lamb')")<BR>> cursor.execute("select * from animals")<BR>> print cursor.fetchall()<BR>> <BR>> <BR>> Rgds<BR>> Kavitha<BR>><BR>> ------------------------------------------------------------------------<BR>You've probably missed cursor.commit() ;)<BR><BR>-- <BR>Sincerely,<BR>Eugene Antimirov<BR>PortaOne, Inc., SIP Support Engineer<BR>support@portaone.com<BR><BR>* For further Billing and Technical information:<BR>=> Please visit our website http://www.portaone.com<BR>=> Please visit our forum http://forum.portaone.com<BR><BR>* Meet us at Internet Telephony Conference & Expo<BR>* Ft. Lauderdale, FL - January 24-26, 2007 - Booth 1322<BR>*
 http://www.tmcnet.com/voip/conference/<BR><BR>-- <BR>http://mail.python.org/mailman/listinfo/python-list<BR></BLOCKQUOTE><BR><p>
        

        
                <hr size=1></hr> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>