Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8083527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:30:11+00:00 2026-06-05T17:30:11+00:00

I created a windows forms application in C #, and a database MS SQL

  • 0

I created a windows forms application in C #, and a database MS SQL server 2008 Express, and I use LINQ-to-SQL query to insert and edit data.

The database is housed on a server with Windows Server 2008 R2 (standard edition). Right now I have the application running on five different computers, and users are authenticated through active directory.

One complaint reported to me was that sometimes when different data is entered and submitted, the same data do not appear in the listing that contains the application. I use try catch block to send the errors but errors do not appear in the application; but the data simply disappear.

The id of the table records is an integer auto-increment. As I have to tell them the registration number that was entered I use the following piece of code:

try{
    ConectionDataContext db = new ConectionDataContext();
    Table_Registers tr = new Table_Registers();
    tr.Name=textbox1.text;
    tr.sector=textbox2.text;
    db.Table_Registers.InsertOnSubmit(tr);
    db.SubmitChanges();
    int numberRegister=tr.NumberRegister;
    MessageBox.Show(tr.ToString());
}
catch{Exception e}

I wonder if I’m doing something wrong or if you know of any article on the web that speaks how to insert data from different clients in MSSQL Server databases, please let me know.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:30:12+00:00Added an answer on June 5, 2026 at 5:30 pm

    That’s what a database server DOES: “insert data simultaneously from different clients”.

    One thing you can do is to consider “transactions”:

    • http://www.sqlteam.com/article/introduction-to-transactions

    Another thing you can (and should!) do is to insure as much work as possible is done on the server, by using “stored procedures”:

    • http://www.sql-server-performance.com/2003/stored-procedures-basics/

    You should also check the SQL Server error logs, especially for potential deadlocks. You can see these in your SSMS GUI, or in the “logs” directory under your SQL Server installation.

    But the FIRST thing you need to do is to determine exactly what’s going on. Since you’ve only got MSSQL Express (which is not a good choice for production use!), perhaps the easiest approach is to create a “log” table: insert an entry in your “log” every time you insert a row in the real table, and see if stuff is “missing” (i.e. you have more entires in the log table than the data table).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# Windows Forms application, whose prototype was created on SQL Server
I've created a windows forms application that would use a client server model for
I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run
I have a SQL Server 2008 database with > 300 tables. The application I
I have created an application which inserts data into a SQL database. Basically, from
I have created a windows form application which uses an SQL database. The database
I have a SQL Express database, and I'd like a very simple forms application
I have a Windows Forms application that was created in Visual Studio 2008 and
Im using c# .net windows form application. I have many databases created using sql
I have created two forms in my Windows Application. One Form acts as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.