Using SQL Server 2012, I created a database and a table:
When I query the table the first time (after I connect to SQL Server) using this query:
select *
from [dbo].[Downloads]
I get
Msg 2809, Level 16, State 1, Line 1
The request for procedure 'Downloads' failed because 'Downloads' is a table object.
But the second time I execute the same SELECT
statement, it runs correctly
How do I eliminate this error the first time around?
The most common SQL error is a syntax error. What does syntax mean? Basically, it means a set arrangement of words and commands. If you use improper syntax, the database does not know what you're trying to tell it.
You had the text Downloads
selected in Management Studio. This causes the T-SQL string Downloads
to be executed. Such a T-SQL batch is interpreted as a procedure call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With