nhibernate y sqlserver
Publicado por borja (9 intervenciones) el 22/07/2007 20:43:46
I´ve got the following query. this query works for SQL SERVER 2000 Spanish but not for English.
ses.CreateSQLQuery("delete from rol_usuariotecnico where idRol=" + rol.IdRol + " AND idUsuario='"+ rol.Usuario.Id + "' AND fechaIni= '" + rol.FechaIni + "' AND fechaFin='" + rol.FechaFin + "'", "borrarRoles", typeof(Incidencia)).List();
The problem is with the format of th dates. How can i solve it?
ses.CreateSQLQuery("delete from rol_usuariotecnico where idRol=" + rol.IdRol + " AND idUsuario='"+ rol.Usuario.Id + "' AND fechaIni= '" + rol.FechaIni + "' AND fechaFin='" + rol.FechaFin + "'", "borrarRoles", typeof(Incidencia)).List();
The problem is with the format of th dates. How can i solve it?
Valora esta pregunta


0