views:

129

answers:

3

I need a list of all the SQL types and their .NET (vb would be preferred, but C# also works for me) equivalent.

+3  A: 

Take a look at: http://msdn.microsoft.com/en-us/library/ms131092.aspx

Andy West
+4  A: 

See here: http://msdn.microsoft.com/en-us/library/4e5xt97a%28VS.71%29.aspx

Phaedrus
That list is for .NET 1.1, and doesn't include things like XML...
RickNZ
You can find other framework versions from the linked page....
RickNZ
+1  A: 

Here's a list for .NET 3.5 / ADO.NET / SqlClient provider:

http://msdn.microsoft.com/en-us/library/cc716729.aspx

In addition, when dealing with ADO.NET parameters, keep in mind that you can specify varchar(max) or nvarchar(max) by using -1 as the length.

RickNZ
The OP didn't specify a framework version, and it isn't hard from the page i posted to find your way to other versions. Hardly worth a down vote.
Phaedrus
Fair enough.....
RickNZ