I have these two files, config.tcl has been modified to accomodate Database
Driver and Pooling
config.tcl
#
# Database Pool
#
ns_section "ns/db/pool/odbc_pool"
ns_param   Driver        "nsodbc"
ns_param   Connections   "5"
ns_param   Datasource    "wireless"
ns_param   User          "Sprint"
ns_param   Password      "Sprint"
ns_param   LogSQLErrors  "on"
ns_param   Verbose       "on"

ns_section   "ns/db/pools"
ns_param   odbc_pool   "SQL Server Pool"

In this file i use this piece of code and it throws an error
firstAdp.adp
set db [ns_db gethandle] ********************This is where it says is an
error*******************
set sql "select * from tables"
set row [ns_db select $db $sql]

can somebody figure out whats wrong with this piece of code, it throws an
error
        command "ns_db" is not enabled
                while executing
        "ns_db gethandle"

Any idea anybody?

Prakash

Prakash

Reply via email to