Geeks With Blogs
Prashant Acharya

Recently I have started working with VS2010 and Fx4. There have been various challenges. We also introduced a new Database Project in our solution. And found this error.

The reason for this error is: the project system expects the stored procedure as a create statement only.  The additional statements to drop if existing are not necessary within the project system.  Project deployment takes care of detecting if the sproc already exists and if it needs to be updated.

To resolve this error you can simply remove the additional statements other then your create SP, Function etc.

OR

Exclude the file from build. Right Click on your file in Solution Explorer, Click Properties > Build Action > Not in Build

Posted on Saturday, May 29, 2010 3:08 PM ASP .NET 2.0 , VS2010 | Back to top


Comments on this post: SQL03070: This statement is not recognized in this context

# re: SQL03070: This statement is not recognized in this context
Requesting Gravatar...
SQL03070: This statement is not recognized in this context
Left by Pashvin Trivedi on Aug 25, 2010 5:44 PM

# re: SQL03070: This statement is not recognized in this context
Requesting Gravatar...
You can also use Deployment Extension Configuration.
Left by Gieyson Stelmak on Oct 20, 2010 6:11 PM

# re: SQL03070: This statement is not recognized in this context
Requesting Gravatar...
SQL03070: This statement is not recognized in this context.
Left by Nicky on May 27, 2013 6:00 PM

Your comment:
 (will show your gravatar)


Copyright © prash | Powered by: GeeksWithBlogs.net | Join free