Groups | Blog | Home
all groups > dotnet ado.net > september 2007 >

dotnet ado.net : dataset help


AVL
9/12/2007 5:30:05 AM
hi,
i need help on setting datatype of a table's column at runtime..
i'm loading a dataset from an xml file...
after loading, i want to set the datatype of one of the column as int32..

how can i acheive it..
is there any way to set the datatypes of the columns before loading the data
from xml file..
please help out
Cor Ligthert[MVP]
9/13/2007 12:00:00 AM
Hi,

You cannot set easily all existing columns in SQL server to another format.
And there where it is possible it is probably not in your interest.

However you can by just creating the Create statement and the
command.SqlNonQuery do a lot.

http://www.vb-tips.com/CreateSqlDatabase.aspx

Cor

"AVL" <AVL@discussions.microsoft.com> schreef in bericht
news:39EC1A65-8D77-42F6-BC2C-871ABB287015@microsoft.com...
[quoted text, click to view]
AddThis Social Bookmark Button