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

A

Arne Vajhøj

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top