Click here to Skip to main content
15,904,823 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert c# to C++ Pin
Joe Woodbury16-Feb-06 9:46
professionalJoe Woodbury16-Feb-06 9:46 
GeneralRe: Convert c# to C++ Pin
Michael P Butler16-Feb-06 10:07
Michael P Butler16-Feb-06 10:07 
QuestionRemote PC Connection problem Pin
JamesSoutar16-Feb-06 4:14
JamesSoutar16-Feb-06 4:14 
AnswerRe: Remote PC Connection problem Pin
Tom Wright16-Feb-06 7:41
Tom Wright16-Feb-06 7:41 
GeneralRe: Remote PC Connection problem Pin
JamesSoutar17-Feb-06 1:32
JamesSoutar17-Feb-06 1:32 
QuestionProcess in/out-Put to Streams in DOS-Box-like utility Pin
J. Holzer16-Feb-06 3:38
J. Holzer16-Feb-06 3:38 
QuestionSystem.DirectoryServices - Available functionality Pin
MrEyes16-Feb-06 3:03
MrEyes16-Feb-06 3:03 
QuestionUpdating empty Database with DataSet? Pin
george ivanov16-Feb-06 2:51
george ivanov16-Feb-06 2:51 
I'm trying to populate an empty SQL Server database with DataSet, which is filled from XML file, but when I execute SqlDataAdaptor::Update() I get exception:

Update unable to find TableMapping['Table'] or DataTable 'Table'


Is it possible to Update such empty database, and what I am missing to execute method corectly?

the code is:
string strConnection;<br />
strConnection = "Data Source=SQLServer;Initial Catalog=DB1;Integrated Security=SSPI;"<br />
<br />
SqlConnection objConn = new SqlConnection(strConnection);<br />
objConn.Open();<br />
<br />
DataSet dbSet = new DataSet("myDataSet");<br />
dbSet.ReadXmlSchema("c:\\XML\\Data.xsd");<br />
dbSet.EnforceConstraints = false;<br />
dbSet.ReadXml("c:\\XML\\Data.xml");<br />
<br />
SqlDataAdapter DataAdaptor = new SqlDataAdapter("",objConn);<br />
DataAdaptor.SelectCommand.Connection = objConn;<br />
DataAdaptor.MissingMappingAction = System.Data.MissingMappingAction.Passthrough;<br />
DataAdaptor.MissingSchemaAction = System.Data.MissingSchemaAction.Add;<br />
<br />
DataAdaptor.Update(dbSet);<br />
...<br />

AnswerRe: Updating empty Database with DataSet? Pin
KaptinKrunch16-Feb-06 14:46
KaptinKrunch16-Feb-06 14:46 
GeneralRe: Updating empty Database with DataSet? Pin
george ivanov16-Feb-06 20:38
george ivanov16-Feb-06 20:38 
QuestionPassing C# WMI results to a HTML control Pin
dastrong16-Feb-06 2:41
dastrong16-Feb-06 2:41 
QuestionScrolling objects Pin
Sasuko16-Feb-06 2:15
Sasuko16-Feb-06 2:15 
AnswerRe: Scrolling objects Pin
malharone16-Feb-06 3:48
malharone16-Feb-06 3:48 
GeneralRe: Scrolling objects Pin
Sasuko16-Feb-06 4:45
Sasuko16-Feb-06 4:45 
QuestionIs there any way to detect and stop/pause somebody logging off? Pin
Anthony Mushrow16-Feb-06 2:14
professionalAnthony Mushrow16-Feb-06 2:14 
AnswerRe: Is there any way to detect and stop/pause somebody logging off? Pin
KaptinKrunch16-Feb-06 14:48
KaptinKrunch16-Feb-06 14:48 
Questionhow to use COM interop in C# Pin
Nataraj197816-Feb-06 0:16
Nataraj197816-Feb-06 0:16 
AnswerRe: how to use COM interop in C# Pin
Andy Moore16-Feb-06 3:36
Andy Moore16-Feb-06 3:36 
GeneralRe: how to use COM interop in C# Pin
Nataraj197816-Feb-06 18:11
Nataraj197816-Feb-06 18:11 
GeneralRe: how to use COM interop in C# Pin
Andy Moore17-Feb-06 3:23
Andy Moore17-Feb-06 3:23 
Question[Message Deleted] Pin
Michiel_NL15-Feb-06 23:41
Michiel_NL15-Feb-06 23:41 
AnswerRe: C# Excel. Process doesn't kill. Pin
Curtis Schlak.16-Feb-06 3:17
Curtis Schlak.16-Feb-06 3:17 
QuestionChange IP Address Pin
am2h15-Feb-06 23:23
am2h15-Feb-06 23:23 
AnswerRe: Change IP Address Pin
J4amieC16-Feb-06 0:16
J4amieC16-Feb-06 0:16 
GeneralRe: Change IP Address Pin
am2h17-Feb-06 20:36
am2h17-Feb-06 20:36 

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.