Beginning .Net : Insert data into SQL Server Database with C#Examples and VB.Net Examples

  • Thread starter Thread starter Jayesh Sorathia
  • Start date Start date
You can insert data or records in to SQL Server Database tables using SqlCommand Class.
You can use "ExecuteNonQuery" method of SqlCommand Class.
This article is very useful for .Net Beginners.

Hmmm.

If the goal is code that runs, then maybe.

But:
- not utilizing the using statement for guaranteed disposal
- access via SQLServer security instead of integrated security
- variable names with sort of Hungarian notation
- parameter definition and value assignment in single operation
makes the example somewhat mediocre and not so well suited as
learning material.

Arne
 
You can insert data or records in to SQL Server Database tables using SqlCommand Class.
You can use "ExecuteNonQuery" method of SqlCommand Class.
This article is very useful for .Net Beginners.

Hmmm.

If the goal is code that runs, then maybe.

But: [...]

If you're going to start reviewing Jayesh's blog for reasonableness,
efficiency, and practicality, you've got your work cut out for you.

There's a reason he's spamming this newsgroup, and it isn't because he
knows what he's talking about.

He seems to read what is being written here and improve based on it.

So maybe he is more like a C# Roedy than a traditional plagiarizing
blog spammer.

Arne
 
Back
Top