Originally posted by Rick Pritchett
I cant get my variable to bind to the columns any ideas
for example mrn. The handle is set further up in the proc.
set select "SELECT * FROM NOTIFICATION"
set select_call [odbc SQLExecDirect $hstmt $select SQL_NTS]
echo select_call $select_call
set select_result [odbc SQLGetCursorName $hstmt cursorName 20 pcbcursor]
echo select_result $select_result
echo cur $cursorName
odbc SQLBindCol $hstmt 1 SQL_C_SLONG mrn 12 pcbValue1
odbc SQLBindCol $hstmt 2 SQL_C_SLONG fin 0 pcbValue2
odbc SQLBindCol $hstmt 3 SQL_C_CHAR lname 50 pcbValue3
odbc SQLBindCol $hstmt 4 SQL_C_CHAR fname 50 pcbValue4
odbc SQLBindCol $hstmt 5 SQL_C_SLONG dob 0 pcbValue5
odbc SQLBindCol $hstmt 6 SQL_C_CHAR sex 50 pcbValue6
odbc SQLBindCol $hstmt 7 SQL_C_SLONG ssn 0 pcbValue7