Welcome to MSDN Blogs Sign in | Join | Help

April 2009 - Posts

Using a subset of columns in a datatable as a DataSource for Windows controls.

A short one today. Say that you have a DataTable that is created dynamically or is, for example, passed to you from a webservice method. This table may contain several columns that you have no interest of displaying to your end user. So you get your DataTable,
Posted by maspeng | 1 Comments

A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

If you are reading this, you may have searched for this error/exception: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) This
Posted by maspeng | 1 Comments

Catch a Sql Server RAISERROR at client side using SqlDataReader.

The other day I had a question on using RAISERROR in SQL Server and that it was not propagated down to the client. In other words, something went wrong in, for example a stored procedure, a RAISERROR was created but this was not seen on the client. In
Posted by maspeng | 1 Comments
 
Page view tracker