MCTS ADO.NET 3.5 Applications results out and passed

July 24, 2008 14:00 by Ryan Garaygay

A good way to start a day. Just got an email regarding another latest addition to my cert list. Microsoft Certified Technology Specialist : .NET Framework 3.5 ADO.NET Applications More...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Link: SQL Server 2008: new data types and .Net 2 with and without SP1

June 25, 2008 16:11 by Ryan Garaygay

Here's an interesting I came across in the recent Simple Talk Newsletter (by Red Gate Software).

It talks about issues with new SQL 2008 data types (date/time related) and it's effect on .NET 2.0 datetime data types when SP1 is installed or not. Something to be aware of and one of those times that you're glad you have a web rather than a desktop application. (you only have to install SP1 on the server(s))

SQL Server 2008 has introduced a few new data types, among others the new date types, like date, time, datatime2 and datetimespan. Because .Net 2 was released before SQL Server 2008 has introduced these data types, there are no classes that map to these new types in .Net 2.
But this has changed with .Net 2 SP1, which introduces the DateTimeOffset structure.

Read full article from the following link :SQL Server 2008: new data types and .Net 2 with and without SP1

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

ADO.NET Review: Multiple Select Queries in one SqlCommand

April 29, 2008 16:22 by Ryan Garaygay

If you perform multiple select queries inside your stored procedures I believe you actually return all of the result sets to the client. (except when you assign a value to a parameter like SELECT @myVar = [ColumnA] FROM Table1). This is something to be careful of since you might unnecessarily return results sets that you actually don't need to return.

But this behavior also has an advantage. Obviously, if you need to retrieve two result sets, there is no need to create two or more SqlCommand to retrieve them. I believe this is handled under the hood if you use SqlDataAdapter.Fill where the dataset being filled will result the sets as part of its tables collection. However in this example we will illustrate how it can be done using SqlDataReader using non other than Reader.NextResult() method.

This is something I don't see often (might not be the case for you) so without much further ado, here's a sample code that might explain better than words. More...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

ADO.NET Review: Multiple Active Result Set (MARS)

April 26, 2008 09:33 by Ryan Garaygay

Quoting from the SQL Programmability and API Development Team Blog: Multiple Active Result Set or MARS is defined as

a new programming interface introduced in SQL Server 2005. It enables multiple result sets to exist at the same time for a given connection. To say it in a simple way, you can make a connection to server and then submit multiple requests to serve

To illustrate, More...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Issue with System.Transactions, SqlConnection and Timeout

April 13, 2008 16:55 by Ryan Garaygay

Just recently, a post was made in Microsoft Forums regarding a bug/behavior of Committable Transactions and SqlConnection timeout. The same issue is evident for TransactionScope which was posted in 2006. Good thing there is a fixMore...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Link: Entity Framework and ADO.NET Data Services will RTM with Visual Studio 2008 and .NET 3.5 Service Pack 1

April 12, 2008 00:06 by Ryan Garaygay

The ADO.NET Team has just announced this in their blog. There is no definite release date for SP1 yet though.

See the post from the following link: Entity Framework and ADO.NET Data Services will RTM with SP1

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Unit Testing Data Access with .NET TransactionScope

April 5, 2008 04:04 by Ryan Garaygay

I was curious how to maintain my database at a consistent state while unit testing (technically integration testing already - but since it uses unit testing framework as they say the lines are terminologies are getting blurry) so I looked around for "database unit testing" write ups.

It turns out that More...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList