Most likely the store order summary server behavior is set to store the session id which is an alpha numeric string in a number column.
On the confirm page, double click the store order summary server behavior.
Look for the column you are storing the Session ID in and make sure the Data Type is set to text.
You then have to edit the Orders table in the database and make sure that column has a text data type in the database as well.