Click here to Skip to main content
15,911,891 members
Home / Discussions / Database
   

Database

 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 records. Pin
Wjousts30-Sep-03 9:05
Wjousts30-Sep-03 9:05 
GeneralRe: Concurrency violation: the UpdateCommand affected 0 records. Pin
falbala12-Oct-03 0:29
falbala12-Oct-03 0:29 
Generalbatch Pin
sardinka26-Sep-03 5:04
sardinka26-Sep-03 5:04 
GeneralRe: batch Pin
Anonymous26-Sep-03 11:34
Anonymous26-Sep-03 11:34 
GeneralSQL Server Yukon Pin
nevhile.net26-Sep-03 1:20
nevhile.net26-Sep-03 1:20 
GeneralRe: SQL Server Yukon Pin
Mike Dimmick26-Sep-03 3:25
Mike Dimmick26-Sep-03 3:25 
GeneralDisplay XSLT transformed XMLDataDocument from FOR XML EXPLICIT query in SQL Server 2000 Pin
drikusr25-Sep-03 20:39
drikusr25-Sep-03 20:39 
GeneralRe: Display XSLT transformed XMLDataDocument from FOR XML EXPLICIT query in SQL Server 2000 Pin
drikusr29-Sep-03 17:11
drikusr29-Sep-03 17:11 
Well, I sort of got this resolved. After reading volumes on the synchronisation of the Dataset and XMLDataDocument (andapplying XSLT, for an SQL Server FOR XML EXPLICIT query), I have conluded that the XMLDataDocument is not the way to go.

Instead, after executing the stored porcedure (which gets the Explicit XML result), eg.
//-- Read the xml document from the stored procedure
objXMLReader = (XmlTextReader)objCommand.ExecuteXmlReader();

and reading the result into a Dataset, eg.
objDataSet.ReadXml(objXMLReader, XmlReadMode.InferSchema);

rather create an XPathDocument, eg.
//-- Create an XPath document from the XML results passed back
myXPathDocument = new XPathDocument(objXMLReader, XmlSpace.Preserve);

and load the XSLT transformation, eg.
//-- Load XSLT transformation
XslTransform xslTran = new XslTransform();
xslTran.Load(xsltPath);

then perfrom the transformation and output both the HTML result, as well as the HTML code to web objects for display, eg.

//====[OUPUT]==================================================================
//----[XmlTextWriter XSLT Output Capture]-----------------------------------
stringWriter = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(stringWriter);

//-- Apply formatting
writer.Formatting = Formatting.Indented;
writer.Indentation = 2;
writer.QuoteChar = '\'';
								
xslTran.Transform(myXPathDocument,null,writer,null);
writer.Close();

//-- Data binding to web objects
this.txtFormattedXML.Text = stringWriter.ToString();
this.lblHTMLOutput.Text = stringWriter.ToString();


The quest has but begun...
GeneralUpdating DataTable that has an expression column Pin
Dr_Sh0ck25-Sep-03 15:41
Dr_Sh0ck25-Sep-03 15:41 
GeneralRe: Updating DataTable that has an expression column Pin
Guillermo Rivero29-Sep-03 12:12
Guillermo Rivero29-Sep-03 12:12 
GeneralRe: Updating DataTable that has an expression column Pin
Member 79899372-Oct-03 21:51
Member 79899372-Oct-03 21:51 
GeneralUsing CASE..END in OPENXML Pin
mittalpa25-Sep-03 11:54
mittalpa25-Sep-03 11:54 
GeneralSQL Server 2000 Sleeping Processes Pin
bsandell25-Sep-03 8:16
bsandell25-Sep-03 8:16 
GeneralSQL Case Sensitivity Pin
deanoA25-Sep-03 3:29
deanoA25-Sep-03 3:29 
GeneralRe: SQL Case Sensitivity Pin
Anonymous25-Sep-03 11:22
Anonymous25-Sep-03 11:22 
GeneralRe: SQL Case Sensitivity Pin
Mike Dimmick26-Sep-03 3:45
Mike Dimmick26-Sep-03 3:45 
GeneralYet another MySQL string issue. Pin
MKlucher24-Sep-03 8:03
MKlucher24-Sep-03 8:03 
GeneralRe: Yet another MySQL string issue. Pin
Anonymous24-Sep-03 16:16
Anonymous24-Sep-03 16:16 
GeneralRe: Yet another MySQL string issue. Pin
ZoogieZork24-Sep-03 17:14
ZoogieZork24-Sep-03 17:14 
QuestionHow to cancel insert in the MSdatagrid control? Pin
korgan23-Sep-03 22:43
korgan23-Sep-03 22:43 
QuestionHow to get the current selected row in DataGrid? Pin
EastDragon23-Sep-03 21:43
EastDragon23-Sep-03 21:43 
AnswerRe: How to get the current selected row in DataGrid? Pin
Guillermo Rivero29-Sep-03 8:24
Guillermo Rivero29-Sep-03 8:24 
GeneralADO.Net Books Pin
dbetting23-Sep-03 18:08
dbetting23-Sep-03 18:08 
GeneralRe: ADO.Net Books Pin
Braulio Dez24-Sep-03 3:46
Braulio Dez24-Sep-03 3:46 
GeneralRe: ADO.Net Books Pin
nevhile.net26-Sep-03 15:57
nevhile.net26-Sep-03 15:57 

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.