W3bbo wrote:
If you're using SQL Server, have you tried using the Profiler tool to see if the database is receiving the commands and how it's executing them?
Located here: "%programfiles%\Microsoft SQL Server\80\Tools\Binn\profiler.exe"
I cant seem to find this tool, guess its not bundeled with express lol

About the params, i tried this:
cmdString = "INSERT INTO dbo.book_loan (book_id, user_id, title, date_taken)VALUES (@loanBookIDParam, @loanUserIDParam, @loanTitleParam, @loanDateTakenParam)";
// Create a new connection to the database and also a new command.
SqlConnection dbConn = new SqlConnection(conn);
SqlCommand cmd = new SqlCommand(cmdString);
// Some parameters for sql query.
SqlParameter param1 = new SqlParameter("@loanBookIDParam", SqlDbType.Int);
param1.Direction = ParameterDirection.Input;
param1.Value = int.Parse(txtLoanBookID.Text.ToString());
SqlParameter param2 = new SqlParameter("@loanUserIDParam", SqlDbType.Int);
param2.Direction = ParameterDirection.Input;
param2.Value = int.Parse(txtLoanUserID.Text.ToString());
SqlParameter param3 = new SqlParameter("@loanTitleParam", SqlDbType.NVarChar, 150);
param3.Direction = ParameterDirection.Input;
param3.Value = txtLoanTitle.Text;
SqlParameter param4 = new SqlParameter("@loanDateTakenParam", SqlDbType.SmallDateTime);
param4.Direction = ParameterDirection.Input;
param4.Value = dateOutTimePicker.Value.Date;
// Put params into an array.
SqlParameter[] cmdParams = { param1, param2, param3, param4 };
// Add aparemeters to command.
cmd.Parameters.AddRange(cmdParams);
But yet again it still doenst seem to add any thing to the data base. very strange.