How to update an Excel worksheet using DataSet and the OleDbDataAdapter

One very convenient thing in ADO.Net is the DataAdapters. These give you an easy way to fill DataTables and DataSets, and also to update the backing data source with very little effort. However, in order to be able to do INSERT/UPDATE/DELETE you have to set the appropriate commands for the Adapter. Ie:   OleDbDataAdapter adapter…

1

TCP connections hanging in the CLOSE_WAIT and FIN_WAIT_2 state.

The other day I had an interesting case, and since there was very little information about this, I thought I’d share it.   The problem in short, a customer is running a web application that connects to SQL Server and very rapidly they were running out of TCP ports/sockets. Normally this type of problem occurs…

7

Command prompt utilities, some resources in one place.

Sometimes there is some confusion on the different Command Prompt utilities.   I will not go into detail on this, rather providing a collection of the online resources.   The short summary is this: –          ISQL is no longer supported, use SQLCMD –          ISQL uses DB-LIB (6.5 client level), some SQL 2000 features are not…

0