LordBlackadder wrote:
Hello
there doesnt seem to be an option for scripting it out. However my log4net gave me this
18:23:36.718 [5436] DEBUG NHibernate.SQL - INSERT INTO EstateAgents (County, Country, Email, Address1, Name, Postcode, Fax, Town, Address2, Telephone) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9); select SCOPE_IDENTITY()
Well, I just tried to replicate your error but it turns out that I don't have Express loaded so I can't add an .mdf file to my solution (stupid thing, I've got SQL Server 2005 standard running).
Anyway, my hunch is that, if you tried to run that from a query window against the db you'd get the same error. I forget, does vs 2005 give you a query window? You might want to try sql server 2005 express management studio as well.
For whatever reason, that column doesn't seem like it's an identity column. If you go back to an assigned identity (just change generator class="identity" to "assigned"), what is the SQL in your log file?