Hi,
could someone help me on this?
I am trying to use below code to insert values to database but i get the error as:
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'Passed'.
No Customers found - Account # 55902933
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'Failed'.
val = "INSERT INTO Status (AccountNumber, Status) VALUES ( " + search.getAccountNumber() + "," + p + ")";
stmt.executeUpdate(val);
val1 = "INSERT INTO Status (AccountNumber, Status) VALUES ( " + search.getAccountNumber() + "," + f + ")";
stmt.executeUpdate(val1);
in above code: p is Passed and f is Failed which i declared.
search.getAccountNumber() is i am reading value from spreadsheet and inserting to application.
I want to write same account number to database as status Passed or Failed depends on the application search results.
Could someone help me on this?
Thanks in Advance!