Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
AnswerRe: ODBC how to connect reomte SQL Server Pin
Guffa5-Aug-07 20:29
Guffa5-Aug-07 20:29 
QuestionCrystal Report working with generic collections Pin
Developer6115-Aug-07 20:01
Developer6115-Aug-07 20:01 
Question.NET dll and VB 6 ocx Pin
MozhdehQeraati5-Aug-07 19:34
MozhdehQeraati5-Aug-07 19:34 
QuestionDatabase to xml Pin
pavya_Cool5-Aug-07 19:22
pavya_Cool5-Aug-07 19:22 
AnswerRe: Database to xml Pin
aamironline5-Aug-07 20:57
aamironline5-Aug-07 20:57 
GeneralRe: Database to xml Pin
pavya_Cool5-Aug-07 21:02
pavya_Cool5-Aug-07 21:02 
GeneralRe: Database to xml Pin
blackjack21505-Aug-07 21:45
blackjack21505-Aug-07 21:45 
GeneralRe: Database to xml Pin
T.EDY5-Aug-07 22:14
T.EDY5-Aug-07 22:14 
I use these code to generate a xml file(i use SqlServer2005 for the DB), for example:

string MyConn = ConfigurationManager.ConnectionStrings["Connect"].ConnectionString; // Connect is my connection name in app config
SqlConnection conn = new SqlConnection("MyConn");
string SqlStatement = "SELECT * FROM my_table"
SqlDataAdapter adapt = new SqlDataAdapter(SqlStatement,conn);
DataSet ds = new DataSet();
DataTable dt = new DataTable("my_table");
adapt.Fill(dt);
ds.Tables.Add(dt);
ds.WriteXml (@"..\..\myXmlFile.xml") //create a xml file name myXmlFile


After that build and execute u'r application.In windows explorer,Locate and Find u'r xml file on u'r project folder..Hope Can Help U

Best Regards,

Tomi

GeneralRe: Database to xml Pin
pavya_Cool5-Aug-07 22:32
pavya_Cool5-Aug-07 22:32 
Questionserialize a graphicspath? Pin
cyn85-Aug-07 18:59
cyn85-Aug-07 18:59 
AnswerRe: serialize a graphicspath? Pin
Hessam Jalali5-Aug-07 20:25
Hessam Jalali5-Aug-07 20:25 
GeneralRe: serialize a graphicspath? Pin
cyn86-Aug-07 19:29
cyn86-Aug-07 19:29 
GeneralRe: serialize a graphicspath? Pin
Hessam Jalali6-Aug-07 21:16
Hessam Jalali6-Aug-07 21:16 
QuestionUnable to find entry point in DLL Pin
dashprasannajit5-Aug-07 18:30
dashprasannajit5-Aug-07 18:30 
Questiondatagridvew Pin
Sonia Gupta5-Aug-07 18:18
Sonia Gupta5-Aug-07 18:18 
QuestionRe: datagridvew Pin
T.EDY5-Aug-07 18:31
T.EDY5-Aug-07 18:31 
AnswerRe: datagridvew Pin
Sonia Gupta5-Aug-07 18:47
Sonia Gupta5-Aug-07 18:47 
AnswerRe: datagridvew Pin
Brady Kelly5-Aug-07 23:25
Brady Kelly5-Aug-07 23:25 
Questionregistering COM component as Out proc sever Pin
KrunalC5-Aug-07 17:44
KrunalC5-Aug-07 17:44 
AnswerRe: registering COM component as Out proc sever Pin
KrunalC5-Aug-07 19:50
KrunalC5-Aug-07 19:50 
GeneralRe: registering COM component as Out proc sever Pin
Dave Kreskowiak6-Aug-07 4:12
mveDave Kreskowiak6-Aug-07 4:12 
QuestionChecking last index of the array giving me a problem. VS2005 C# Pin
foolios5-Aug-07 16:47
foolios5-Aug-07 16:47 
AnswerRe: Checking last index of the array giving me a problem. VS2005 C# Pin
Hessam Jalali5-Aug-07 19:25
Hessam Jalali5-Aug-07 19:25 
Questionpassing parameter from one windows form to another one Pin
dinakatina5-Aug-07 14:47
dinakatina5-Aug-07 14:47 
AnswerRe: passing parameter from one windows form to another one Pin
Christian Graus5-Aug-07 14:55
protectorChristian Graus5-Aug-07 14:55 

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.