Re: ADO.NET questions

From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 09/24/04


Date: Fri, 24 Sep 2004 10:00:50 -0700

Okay, if you are targeting SQL Express 2005 then you have a much better
alternative--use the BCP functionality built into ADO.NET 2.0. Since SSE
2005 won't be released until VS 2005 you should not have a problem.

Sure, you can use XML to move data to and from SQL Server, but it's very
inefficient. For small amounts of data you can make it work, but it won't
come close to the performance you'll get with BCP/DTS.

-- 
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"dramos" <dramos@discussions.microsoft.com> wrote in message 
news:D3666563-DCD6-4F3F-BC01-7D133D1BB8F0@microsoft.com...
> We are trying to design this app to be compatible with SQL Express 2005.
> According to information I have on SQL Express,  DTS will not be included 
> in
> it so I dont think we can use DTS.
>
> Am I missing something though.  My understanding was that using XML files 
> to
> move data around was the preferred way in dotNET.  Am I taking the wrong
> approach in using the dataset writexml method to create a xml file that 
> could
> be emailed to another user where he could import back into his version of 
> the
> app?
>
>
> "William (Bill) Vaughn" wrote:
>
>> DTS can export to a flat file that can be reimported elsewhere.
>>
>> -- 
>> ____________________________________
>> William (Bill) Vaughn
>> Author, Mentor, Consultant
>> Microsoft MVP
>> www.betav.com
>> Please reply only to the newsgroup so that others can benefit.
>> This posting is provided "AS IS" with no warranties, and confers no 
>> rights.
>> __________________________________
>>
>> "dramos" <dramos@discussions.microsoft.com> wrote in message
>> news:83BB49BA-390C-4021-BE05-3E367FF9834A@microsoft.com...
>> >I am novice with C## and ADO.NET. All my prior experience is with VB and
>> >old
>> > style ADO.
>> >
>> > We have a desktop application that uses MSDE as its database.  We need 
>> > to
>> > have a way to export rows from a few tables from one users computer to
>> > another users computer.  This has to happen in a disconnected way so 
>> > using
>> > DTS is not  an option. These are steps hat I was planning to use.
>> >
>> > 1)use SQLAdapter to create a Dataset with data to be exported on the
>> > source
>> > computer.
>> > 2)Use DataSet WriteXML method to write out data to xml file.(User then 
>> > can
>> > email xml file to another user)
>> > 3)Create Dataset on Target computer and use ReadXMl method to read data
>> > into
>> > dataset.
>> > 4)Modify keys on data so as to avoid primary key violatons
>> > 5)Create SQLDataAdapter on target computer. Pass in Dataset with data 
>> > to
>> > be
>> > merged while called Update method on SQLAdapter.
>> >
>> > I have succesfully done steps 1-3 but I am having problems with 4 and 
>> > 5.
>> > Has anyone done anything similar to this?  Is this the correct way to 
>> > do
>> > this? Any
>> > pointers to examples of how to this is appreciated.
>> >
>> > Thanks in advance.
>>
>>
>> 


Relevant Pages

  • Re: Sql ce server process
    ... We are unlikely to target another platform until WM7 ... My plan is not to try to use sql in any more robust of a fassion than was ... load on the database that is any more heavy than the load that exists today, ...
    (microsoft.public.sqlserver.ce)
  • RE: MS patch-scanner for Win-NT, 2K, IIS, SQL
    ... MS patch-scanner for Win-NT, 2K, IIS, SQL ... XML file from the following location - mssecure.xml Possible ... and on a NT 4 Server, but the scanner works fine on a W2K Server ...
    (Focus-Microsoft)
  • RE: MS patch-scanner for Win-NT, 2K, IIS, SQL
    ... MS patch-scanner for Win-NT, 2K, IIS, SQL ... seems so far that the patches it suggests are accurate. ... it the patch for advisory MS01-015 is not istalled, ... verison of the binary or the xml file at any of the URLs I've been given. ...
    (Focus-Microsoft)
  • Re: Looking for database design/model software
    ... > generate SQL, ... Since Dia ... I actually have a small PHP script that takes the input of ... feed it into another script that turns it an XML file for Dia. ...
    (RedHat)
  • Problem rebuilding node: Kerberos error on target node
    ... SQL 2005 Standard Ent SP1 installed. ... Active/Passive Cluster setup ... On the target Node I am getting a Kerberos error ... The target name used was cifs/XXXXXX. ...
    (microsoft.public.sqlserver.clustering)