tags:

views:

25

answers:

1

I'd like to do something like the following:

Dim Conn as new SqlConnection(ConnectionString)

MyDataTable.WriteToDB(Conn, "New Table")

Are there any shortcuts like this built into .NET?

Thanks

+2  A: 

You probably want to start with the SqlDataAdapter class. It was pretty much designed to do exactly this.

Dean Harding