Click here to Skip to main content
15,881,840 members
Home / Discussions / C#
   

C#

 
Generaldetecting internet connection Pin
godzooky8-Dec-03 8:45
godzooky8-Dec-03 8:45 
GeneralRe: detecting internet connection Pin
Heath Stewart8-Dec-03 9:46
protectorHeath Stewart8-Dec-03 9:46 
GeneralDataRepeater Control Pin
RB@Emphasys8-Dec-03 8:08
RB@Emphasys8-Dec-03 8:08 
GeneralRe: DataRepeater Control Pin
Heath Stewart8-Dec-03 9:34
protectorHeath Stewart8-Dec-03 9:34 
GeneralHelp with simple user control Pin
Charlie Williams8-Dec-03 8:05
Charlie Williams8-Dec-03 8:05 
GeneralRe: Help with simple user control Pin
Heath Stewart8-Dec-03 9:25
protectorHeath Stewart8-Dec-03 9:25 
GeneralRe: Help with simple user control Pin
Charlie Williams8-Dec-03 11:56
Charlie Williams8-Dec-03 11:56 
QuestionDynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Paul Evans8-Dec-03 6:46
Paul Evans8-Dec-03 6:46 
"Dynamic Table Creation on Database Using SQL Datatypes from a Dataset" quite a mouth full, but that's what we are trying to do!

We have a source database which is of one data-provider, and a destination which is of another provider. The source database is in structural flux, so we need to be able to dynamically create a destination database from a dataset populated by a select * from table. Then read off the column names and types and recreate it on a different database.

There are about 30 million examples of Datasets and datagrids, but nothing that actually has the same effect as an CREATE TABLE as we've seen.

When interrogating the dataset we get the .Net datatypes. What we need is the SQL datatypes associated with those .Net datatypes for that particular provider (probably via the SqlDataAdapter?) so we can build a decent CREATE TABLE query that the provider will understand from the contents of the dataset.

Or better yet just get .Net to do it, because it obviously already knows the mappings or it wouldn't be able to translate datasets into .Net types from SQL types when reading, and back again when updating!

Any ideas or avenues of investigation gratefully received!


/**********************************
Paul Evans, Dorset, UK.
Personal Homepage "EnjoySoftware" @
http://www.enjoysoftware.co.uk/
**********************************/

AnswerRe: Dynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Heath Stewart8-Dec-03 7:01
protectorHeath Stewart8-Dec-03 7:01 
GeneralRe: Dynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Paul Evans8-Dec-03 7:19
Paul Evans8-Dec-03 7:19 
GeneralRe: Dynamic Table Creation on Database Using SQL Datatypes from a Dataset, Possible? Pin
Heath Stewart8-Dec-03 9:04
protectorHeath Stewart8-Dec-03 9:04 
GeneralThread-Safe Singleton Pin
bzurer8-Dec-03 4:18
bzurer8-Dec-03 4:18 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 5:07
protectorHeath Stewart8-Dec-03 5:07 
GeneralRe: Thread-Safe Singleton Pin
Paul Evans8-Dec-03 6:37
Paul Evans8-Dec-03 6:37 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 6:56
protectorHeath Stewart8-Dec-03 6:56 
GeneralRe: Thread-Safe Singleton Pin
Paul Evans8-Dec-03 7:05
Paul Evans8-Dec-03 7:05 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 7:12
protectorHeath Stewart8-Dec-03 7:12 
GeneralRe: Thread-Safe Singleton Pin
Paul Evans8-Dec-03 7:20
Paul Evans8-Dec-03 7:20 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 10:08
protectorHeath Stewart8-Dec-03 10:08 
GeneralRe: Thread-Safe Singleton Pin
bzurer8-Dec-03 7:07
bzurer8-Dec-03 7:07 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 7:10
protectorHeath Stewart8-Dec-03 7:10 
GeneralRe: Thread-Safe Singleton Pin
bzurer8-Dec-03 7:56
bzurer8-Dec-03 7:56 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 9:14
protectorHeath Stewart8-Dec-03 9:14 
GeneralRe: Thread-Safe Singleton Pin
Zhang Ye Fan8-Dec-03 7:33
Zhang Ye Fan8-Dec-03 7:33 
GeneralRe: Thread-Safe Singleton Pin
Heath Stewart8-Dec-03 9:08
protectorHeath Stewart8-Dec-03 9:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.