I have created a new ASP.Net project in C#. I have added a new database inside my App_Data folder called aspnetdb.mdf. I have added the following connection string to my project:
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;
Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|\aspnetdb.mdf;
User Instance=true" providerName="System.Data.SqlClient" />
When I run my project, it retrieves the data just fine.
Now I want to write some new stored procedures. So I open the query window to do so:
When I try to run a simple SELECT statement, I get an error:
Can anyone tell me how I can return data from this table? Keep in mind this is being done inside VS2010 and not in SQL Server as I don't have the full-blown SQL Server installed on my computer (although VS2010 installed some pieces of SQL Server 2008).