I came across the following error, can anyone help me ?
Asked
Active
Viewed 76 times
-4

Franckentien
- 324
- 6
- 21
-
7Remove the `new`, you're not creating a new object. – Matti Virkkunen Jul 04 '16 at 21:39
-
2Additionally you're missing a ")" in your query. And your identifiers are in a weird language instead of the standard English. – Matti Virkkunen Jul 04 '16 at 21:40
-
5don't post the screenshot...post the code instead – Raktim Biswas Jul 04 '16 at 21:42
1 Answers
0
Other than what being commented is right absolutely that in your query you are missing the end )
the below line is totally wrong in your code. It just should be cmd.ExecuteReader()
since ExecuteReader()
returns a reader
object which you need to iterate through to get all the data.
SqlDataReader registro = new cmd.ExecuteReader();

Rahul
- 76,197
- 13
- 71
- 125