Prepared SQL has invalid column name error

8 views
Skip to first unread message

Kaitlin Smith

unread,
Aug 17, 2011, 5:26:10 AM8/17/11
to nhusers
Hi,

When initializing a collection, the prepared SQL that NH generates
comes back with an error saying

System.Data.SqlClient.SqlException: Invalid column name
'StructuredAddrsDistrict'.

However, the prepared SQL does not contain "StructuredAddrsDistrict"
anywhere in the SQL dump, it's always spelled
"StructuredAddressDistrict" in each case.

Can anyone help me figure out what's going on?

- kaitlin

Nexus

unread,
Aug 17, 2011, 8:57:37 AM8/17/11
to nhusers
Enable full logging and see what gets send to the database or use
nhibernate profiler

Darren Kopp

unread,
Aug 17, 2011, 1:11:47 PM8/17/11
to nhu...@googlegroups.com
are you perhaps using a view or stored procedure?
Reply all
Reply to author
Forward
0 new messages