Click here to Skip to main content
15,905,683 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server Inventory and Database Documentation Pin
Wendelius20-Feb-09 20:45
mentorWendelius20-Feb-09 20:45 
Questionsqlite problem Pin
mirko8620-Feb-09 5:47
mirko8620-Feb-09 5:47 
AnswerRe: sqlite problem Pin
Wendelius20-Feb-09 5:56
mentorWendelius20-Feb-09 5:56 
GeneralRe: sqlite problem Pin
mirko8620-Feb-09 6:17
mirko8620-Feb-09 6:17 
GeneralRe: sqlite problem Pin
Wendelius20-Feb-09 20:48
mentorWendelius20-Feb-09 20:48 
AnswerRe: sqlite problem Pin
Ennis Ray Lynch, Jr.20-Feb-09 6:50
Ennis Ray Lynch, Jr.20-Feb-09 6:50 
QuestionHow to Retrive XMLdata into database Table Pin
chinni119-Feb-09 20:36
chinni119-Feb-09 20:36 
AnswerRe: How to Retrive XMLdata into database Table Pin
Vimalsoft(Pty) Ltd19-Feb-09 21:02
professionalVimalsoft(Pty) Ltd19-Feb-09 21:02 
see this


public void Import_Data(String XMLFILE_Parth)
       {

           con = new SqlConnection(StrconImport); //Your connection declared somewhere in the Class :)

           DataSet ds = new DataSet();    //Your dataset to do the final dumping

           ds.ReadXml(XMLFILE_Parth);     //sending the it to the Dataset

           SqlBulkCopy sbc = new SqlBulkCopy(con); //object of bulkcopy and put in your connection object inside it

           try
           {
               con.Open();  //open the connection

               sbc.DestinationTableName = "dbo.XML_Resources_Import_temp";  //You must have this table on the SQL , match the Columns

               sbc.WriteToServer(ds.Tables[0]); //Send the Data from the Dataset to the table


           }
           catch (SqlException)
           {
               throw;
           }
           finally
           {


               if (con != null)
               {
                   con.Close();
               }
           }

       }



WOW simple neeeeeeeeeeee Smile | :)

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za

AnswerRe: How to Retrive XMLdata into database Table Pin
Wendelius19-Feb-09 21:27
mentorWendelius19-Feb-09 21:27 
Questionquery for between dates Pin
icanmakeiteasy19-Feb-09 19:27
icanmakeiteasy19-Feb-09 19:27 
AnswerRe: query for between dates Pin
Wendelius19-Feb-09 19:51
mentorWendelius19-Feb-09 19:51 
GeneralRe: query for between dates Pin
icanmakeiteasy19-Feb-09 19:57
icanmakeiteasy19-Feb-09 19:57 
GeneralRe: query for between dates Pin
Wendelius19-Feb-09 21:28
mentorWendelius19-Feb-09 21:28 
QuestionRestore database Pin
aratireddy19-Feb-09 17:45
aratireddy19-Feb-09 17:45 
AnswerRe: Restore database Pin
Wendelius19-Feb-09 18:21
mentorWendelius19-Feb-09 18:21 
GeneralRe: Restore database Pin
aratireddy19-Feb-09 18:46
aratireddy19-Feb-09 18:46 
GeneralRe: Restore database Pin
Wendelius19-Feb-09 18:54
mentorWendelius19-Feb-09 18:54 
GeneralRe: Restore database Pin
venu65619-Feb-09 20:15
venu65619-Feb-09 20:15 
QuestionSearch Stored Procedure Pin
Paul McGann19-Feb-09 3:07
professionalPaul McGann19-Feb-09 3:07 
AnswerRe: Search Stored Procedure Pin
Ennis Ray Lynch, Jr.19-Feb-09 4:48
Ennis Ray Lynch, Jr.19-Feb-09 4:48 
AnswerRe: Search Stored Procedure Pin
Mycroft Holmes19-Feb-09 13:39
professionalMycroft Holmes19-Feb-09 13:39 
AnswerRe: Search Stored Procedure Pin
pmpdesign23-Feb-09 18:37
pmpdesign23-Feb-09 18:37 
QuestionLogging report export Pin
Giorgi Dalakishvili18-Feb-09 22:31
mentorGiorgi Dalakishvili18-Feb-09 22:31 
AnswerI don't use the control Pin
Ennis Ray Lynch, Jr.19-Feb-09 7:44
Ennis Ray Lynch, Jr.19-Feb-09 7:44 
GeneralRe: I don't use the control Pin
Giorgi Dalakishvili19-Feb-09 7:49
mentorGiorgi Dalakishvili19-Feb-09 7:49 

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.