Skip to content
Advertisement

How to generate a new Guid in stored procedure?

I currently have a stored procedure in which I want to insert new rows into a table. insert into cars (id, Make, Model) values(‘A new Guid’, “Ford”, “Mustang”) So the primary key ‘id’ is a Guid. I …

django: datediff sql queries?

I’m trying to do the equivalent of the following SQL in Django: SELECT * FROM applicant WHERE date_out – date_in >= 1 AND date_out – date_in <= 6 I can do this as a RAW sql query, but this is ...

The parameterized query expects the parameter which was not supplied

I’m having a problem with my code: Once I typed in the string in the textbox to search for an item I get this error: The parameterized query ‘(@Parameter1 nvarchar(4000))SELECT * FROM borrow where (Departme’ expects the parameter ‘@Parameter1’, which was not supplied. Can anyone help me? Answer If you pass null value to parameter,you will get this error even

Advertisement