PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jayesh Sorathia
Guest
Posts: n/a
 
      26th Jul 2012
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.

Click here to view full article. Click Here... http://jayeshsorathia.blogspot.com/2...-examples.html
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      26th Jul 2012
On 7/26/2012 3:27 AM, Jayesh Sorathia wrote:
> 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

 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      26th Jul 2012
On 7/26/2012 10:41 AM, Peter Duniho wrote:
> On Thu, 26 Jul 2012 10:12:04 -0400, Arne Vajhøj wrote:
>
>> On 7/26/2012 3:27 AM, Jayesh Sorathia wrote:
>>> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert or Save file into SQL Server Database Table with C# Examplesand VB.Net Examples Jayesh Sorathia Microsoft C# .NET 2 29th Aug 2012 08:49 AM
Insert or Save file into SQL Server Database Table with C# Examplesand VB.Net Examples jayeshsorathia@gmail.com Microsoft ASP .NET 0 28th Aug 2012 08:53 AM
Beginning .Net : Delete data into SQL Server Database table with C#Examples and VB.Net Examples jayeshsorathia@gmail.com Microsoft ASP .NET 0 3rd Aug 2012 08:24 AM
Beginning .Net : Delete data into SQL Server Database table with C#Examples and VB.Net Examples Jayesh Sorathia Microsoft C# .NET 0 3rd Aug 2012 08:24 AM
Beginning .Net : Insert data into SQL Server Database with C#Examples and VB.Net Examples jayeshsorathia@gmail.com Microsoft ASP .NET 1 29th Jul 2012 02:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:56 AM.