Click here to Skip to main content
15,885,366 members
Home / Discussions / Database
   

Database

 
Generalremove space in data/string Pin
GoldenStar9-Jun-05 16:55
GoldenStar9-Jun-05 16:55 
GeneralRe: remove space in data/string Pin
Christian Graus9-Jun-05 17:16
protectorChristian Graus9-Jun-05 17:16 
Generalread field description and display on webpage Pin
wpiass9-Jun-05 7:45
wpiass9-Jun-05 7:45 
GeneralError when export data from SQL to Ms Excel Pin
Mekong River9-Jun-05 3:59
Mekong River9-Jun-05 3:59 
GeneralRe: Error when export data from SQL to Ms Excel Pin
Lasse11-Jun-05 12:23
Lasse11-Jun-05 12:23 
GeneralConnecting to pastel using VB6.0 Pin
Member 20223418-Jun-05 23:17
Member 20223418-Jun-05 23:17 
GeneralRe: Connecting to pastel using VB6.0 Pin
toxcct9-Jun-05 5:43
toxcct9-Jun-05 5:43 
GeneralConvertings Tags to Attributes Pin
Tiger4568-Jun-05 22:18
Tiger4568-Jun-05 22:18 
string strSQL= " Select * From Category" ;
SqlConnection cnn = new SqlConnection(CNN_STRING);
SqlCommand cmd = new SqlCommand(strSQL,cnn);

DataSet ds = new DataSet("Products");
SqlDataAdapter da =  new SqlDataAdapter(cmd);			
da.Fill(ds);
ds.Tables[0].TableName = "Product";
		
TextBox1.Text = ds.GetXml() ;

Here GetXml() returns the out put as tag ways

< Products><br />
  < Product><br />
    <CategoryID>3</CategoryID><br />
    <Name>A</Name><br />
    <Description>ADescription</Description><br />
  </Product><br />
  < Product><br />
    <CategoryID>4</CategoryID><br />
    <Name>B</Name><br />
    <Description>B Description</Description><br />
  </Product>  <br />
</Products>

I need to change it as Attributes in a simple way


< Products>
  < Product CategoryID="3" Name="A" Description = "ADescription" />
  < Product CategoryID="4" Name="B" Description = "B Description" />   
</Products>

GeneralRe: Convertings Tags to Attributes Pin
Robert Rohde12-Jun-05 3:22
Robert Rohde12-Jun-05 3:22 
Generalsql Pin
rohollahabadan8-Jun-05 21:21
rohollahabadan8-Jun-05 21:21 
GeneralRe: sql Pin
Colin Angus Mackay9-Jun-05 1:10
Colin Angus Mackay9-Jun-05 1:10 
GeneralRe: sql Pin
Vasudevan Deepak Kumar11-Jun-05 2:51
Vasudevan Deepak Kumar11-Jun-05 2:51 
GeneralWorking with stored procedure&#180;s transactions in .NET Pin
riv_luis8-Jun-05 10:00
riv_luis8-Jun-05 10:00 
GeneralRe: Working with stored procedure&#180;s transactions in .NET Pin
Colin Angus Mackay8-Jun-05 10:31
Colin Angus Mackay8-Jun-05 10:31 
GeneralRe: Working with stored procedure&#180;s transactions in .NET Pin
riv_luis9-Jun-05 2:17
riv_luis9-Jun-05 2:17 
GeneralWeb Services Pin
RSootarsing8-Jun-05 2:59
RSootarsing8-Jun-05 2:59 
GeneralRe: Web Services Pin
Colin Angus Mackay8-Jun-05 6:45
Colin Angus Mackay8-Jun-05 6:45 
Generalsp with temptables doesnt work in crystal reports Pin
7-Jun-05 23:41
suss7-Jun-05 23:41 
GeneralRe: sp with temptables doesnt work in crystal reports Pin
WoutL8-Jun-05 20:58
WoutL8-Jun-05 20:58 
GeneralRe: sp with temptables doesnt work in crystal reports Pin
Geethalakshmi8-Jun-05 21:15
Geethalakshmi8-Jun-05 21:15 
Generalsecurity in SQL server Pin
daneshmand7-Jun-05 23:11
daneshmand7-Jun-05 23:11 
GeneralRe: security in SQL server Pin
Colin Angus Mackay8-Jun-05 0:13
Colin Angus Mackay8-Jun-05 0:13 
Generalweb service based Pin
ahmad mostafa7-Jun-05 22:43
ahmad mostafa7-Jun-05 22:43 
GeneralRe: web service based Pin
Colin Angus Mackay8-Jun-05 0:22
Colin Angus Mackay8-Jun-05 0:22 
GeneralRe: web service based Pin
ahmad mostafa8-Jun-05 0:30
ahmad mostafa8-Jun-05 0:30 

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.