Thanks Anuma, that was the process I went through (the one in the first link) and It won't let me submit data to the SQL database. I created a table in SQL, connected it to infopath 2007 and dragged the data and querry fields onto the form. I can query information already in the database (I put the info in as a test) but I cannot submit to the database.
I selected submit NOT receive when I selected a connection type, yet it changes to query type connection while going through the steps. It tells me that submit is not enable for this connection because one or more tables in the datasource do not have a primary key, index, or unique constraint.
I only had one table in the database but I decided to add another and assign primary and foreign keys, but this did not help, I am still not able to submit to the database.