Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2003, 05:17 AM
kaz kaz is offline
Authorized User
 
Join Date: Dec 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default What's wrong with my SQL statement?

I got an error message "No value given for one or more required parameters" when SQL statement is executed.

The SQL statement is following:
string strLocationSQL = "DELETE FROM Location ";
            strLocationSQL += @"WHERE ((Project.ProjectID)=" +Convert.ToInt32(ProjectID)+ " AND ";
            strLocationSQL += @"Location.LocationID = Project.LocationID) ";

Could you tell me how to fix it?

Thanks,

 
Old December 11th, 2003, 09:21 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

just remove the '@' sign and see if it works...

debsoft

cheers,
debsoft





Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is wrong of my alert statement? Edward King Javascript How-To 1 May 28th, 2005 05:12 AM
What is wrong with this insert statement? method SQL Server 2000 13 April 27th, 2005 11:46 PM
What's wrong with this statement ? levinll SQL Language 4 April 29th, 2004 08:41 PM
What's wrong with this SQL Statement dc925 ADO.NET 4 January 23rd, 2004 11:27 AM
what is wrong with this sql.. face Classic ASP Databases 5 September 23rd, 2003 03:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.