15,897,291 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12161319 (Top 6 by date)
Member 12161319
25-Nov-15 7:16am
View
yes but i need to know the code and how i would do it
Member 12161319
23-Nov-15 14:36pm
View
http://www.codeproject.com/Questions/1058871/Exception-thrown-System-Data-SqlClient-SqlExceptio
Member 12161319
23-Nov-15 14:12pm
View
just debugged it basically its adding all the data but its adding another one with no value so its null.. can't see why
Member 12161319
23-Nov-15 13:58pm
View
this is what my database looks like:
id Name Date
NULL NULL NULL
is that a problem?
Member 12161319
23-Nov-15 13:47pm
View
Done what you have done now i get this:
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll
Additional information: Cannot insert the value NULL into column 'Id', table 'Login.dbo.Rota'; column does not allow nulls. INSERT fails.
The statement has been terminated.
i guess this means that there is no data going into the database? but there is..?
Member 12161319
23-Nov-15 12:54pm
View
Done that now i get this error:
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
Additional information: The variable name '@Id' has already been declared. Variable names must be unique within a query batch or stored procedure.
any sugguestions?
Show More