kentico_helenag
-
5/18/2009 8:03:32 AM
RE:Display custom data with parameter using custom query
Hi Ed,
For example: if you would have a SQL query (saved in CMSSiteManager -> Development -> Document types -> edit document type -> Queries) with a parameter e.g.: SELECT LastName FROM Employees WHERE id = @ID
Then you could set the value of @ID parameter when calling the query by mentioned approach: object[,] parameters = new object[1, 3]; parameters[0, 0] = "@ID"; parameters[0, 1] = 17;
It means that it valuates the @ID parameter by 17 in this case.
I hope it could help you.
Best regards, Helena Grulichova
|