Results 1 to 2 of 2

Thread: SQLBULKCOPY class - number of records copied

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2007
    Posts
    5

    SQLBULKCOPY class - number of records copied

    Hi,

    In one of the tasks, we are using sqlbulkcopy class of .net with three parameters - source db info, destination db info, query to be used to transfer data.

    We are trying to see if we can get a count of the number of rows that are actually transmitted by the above command. Is there any way to do that? sqlbulkcopy class does not seem to have any attribute that would give this information. Is there any direct or indirect way?

    Thanks in advance
    sb

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: SQLBULKCOPY class - number of records copied

    The sample code for sqlbulkcopy in MSDN shows how to count the rows

    http://msdn.microsoft.com/en-us/libr...lbulkcopy.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width