Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

newbie snodbc

3 views
Skip to first unread message

tclt...@yahoo.com

unread,
Apr 15, 2007, 8:34:12 PM4/15/07
to
package require Tclx
package require snodbc


proc rechandler {id name} {
puts "$id $name"
}

set user sa
set password odbc

database connect sqlca GENEA-PG $user $password

sqlca eval rechandler "select id_no, name from people"


##########################################################

Even if I supply the wrong user and password I can still connect to
the database. I'm using postgres on windows xp. Can someone help me on
this.

0 new messages