HighTechTalks DotNet Forums  

dataset help

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss dataset help in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AVL
 
Posts: n/a

Default dataset help - 09-12-2007 , 08:30 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


Reply With Quote
  #2  
Old   
Cor Ligthert[MVP]
 
Posts: n/a

Default Re: dataset help - 09-12-2007 , 11:32 PM






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 (AT) discussions (DOT) microsoft.com> schreef in bericht
news:39EC1A65-8D77-42F6-BC2C-871ABB287015 (AT) microsoft (DOT) com...
Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.