Update your app at leat to NH2.0.1, there you can use
ISqlQuery.ExecuteUpdate()

2009/6/18 topherdel <[email protected]>

>
> How do I execute an insert statement using NH v1.2.1?
>
> From what I am seeing, HQL, IQuery, SqlQuery are all select queries.
> I created a SqlCommand and assigned it the nhibernate session's
> connection but when executing the command, it complains of a missing
> transaction.  I am unable to assign the transaction to my command
> object because I am unable to the to the ado transaction object used
> by session.  How do I execute insert's?
>
> Thanks,
> Chris.
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to