Answer the question
In order to leave comments, you need to log in
Where is the error in this SQL query?
Hello!
I am writing an application in C#, and it uses the following query:
$"SELECT * FROM Автомобиль WHERE VIN_номер = '{VIN.Text}' AND Номер_заказа= '{Nomer_zakaza.Text}' AND Номер_филиала = '{Nomer_filiala.Text}'"
"Invalid object name 'Car'."
Answer the question
In order to leave comments, you need to log in
general, simple, how to understand it yourself:
string test = $" what I whine is fed
and look at the value of test with my eyes, or if it's not obvious, copy-paste the string into the sql console and get an error description from it.
It looks like the table name also needs to be enclosed in quotes.
https://stackoverflow.com/q/2901453/1828989 more information and examples here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question