Bulk Copy Program (BCP) IN SQL Server

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 34

  • @george.akiawujr1271
    @george.akiawujr1271 9 лет назад

    I'm new into SQL database and see your video very touching and also knowledgeable to us. Thanks a lot for your help.

  • @web2gowausau
    @web2gowausau 12 лет назад

    Thank you very much. I haven't tried this yet... I am still preparing. I was very confused since I know little about SQL and nothing about SQL utilities. You have really given a nice overview of what the bcp utility is, what it does and a good start on how to use it.

  • @vivekkumarsingh9541
    @vivekkumarsingh9541 9 лет назад

    Awesome tutorial. After going through this video, understanding MSDN is a piece of cake.
    Thanks a lot.

  • @amolmuke1748
    @amolmuke1748 5 лет назад +1

    Hi Keshav,
    Can you please tell us how to fetch data in csv file with header in different column in bcp
    Many thanks in advance..

  • @muthaiahpalaniappan8009
    @muthaiahpalaniappan8009 7 лет назад

    Thanks for your video. Can we have a join query to pull the data out to a file???

  • @TheGunZeta
    @TheGunZeta 5 лет назад

    Hi im new to sql, just wondering if theres a way to use bcp to export multiple tables into a text file or do i have to do it table by table? For my case all the tables are under the same schema

  • @cheahengsoon
    @cheahengsoon 4 года назад +1

    the data include header?

    • @cesarl.c.847
      @cesarl.c.847 3 года назад

      Hi... To review LoaderDataPlus tool to import CSV files and then can be to import in SQLSERVER sintax and other DMBS.

  • @amoscookie1336
    @amoscookie1336 2 года назад

    this only works if in the first place the database is sitting inside your user profile. So what happens if i need to execute this from user machine ?

  • @heninkarkada8431
    @heninkarkada8431 11 лет назад

    I get a error saying "Login Timeout Expired".Checked the SQL connection it was connected. Are we supposed to create a folder BCP in advance?

  • @srinivasank5434
    @srinivasank5434 5 лет назад

    very very thanx bro. It helped me allot. make videos on performance tuning bro.

  • @venkatp7937
    @venkatp7937 11 лет назад

    i have a situation where i have a data in dataset which has to be loaded into sql server sitting on windows wich is a different machine .How to use this bcp in that case and run my datastage.

  • @dvdiksha
    @dvdiksha 7 лет назад

    I'm trying to use the queryout command but it gives me an error: "An error occurred while processing the command line."
    How do I fix it?

  • @JeffreyRosselle
    @JeffreyRosselle 11 лет назад

    Thank you, was very useful and help me out big time!

  • @ernestyanzi
    @ernestyanzi 5 лет назад

    How to make it run auto in window task scheduler?

  • @1spunch
    @1spunch 5 лет назад

    if changed to d:\abc\bcp\output.txt , can not make it work

  • @sy5294
    @sy5294 5 лет назад

    Awesome tutorial, thank you

  • @samyragul4888
    @samyragul4888 2 года назад

    Hi this one will work in Sybase

  • @KeshavSingh83
    @KeshavSingh83  12 лет назад

    Mam, CMD universal for all, START>RUN>CMD. You can also run CMD commands embedded in T-SQL using xp_cmdshell refer my video post Execute BCP Via TSQL (SQL Server)

    • @ramajiss
      @ramajiss 6 лет назад

      Keshav Singh hi I want a simple query to export my query result to my local drive using dcp. Can u please provide code

  • @sonu1patel
    @sonu1patel 12 лет назад

    ok, cmd shell is enabled, what's next step

  • @dileepKumarvanka
    @dileepKumarvanka 12 лет назад

    it would be better if complete ssis tutorial is provided in serial wise

  • @culpritdesign
    @culpritdesign 9 лет назад

    very good video, thanks!

  • @sonu1patel
    @sonu1patel 12 лет назад

    its says cannot open database requested by login.

  • @gagan059
    @gagan059 10 лет назад

    Nice tutorial bro!!

  • @sonu1patel
    @sonu1patel 12 лет назад

    Keshav, how do i start cmd is through SSMS or start run cmd

    • @Aphranteus
      @Aphranteus 4 года назад

      xp_cmdshell { 'command_string' } [ , no_output ]
      You can (if it is enabled on your server) execute cmd shell specifically from SSMS - just put EXECUTE xp_cmdshell , as e.g. xp_cmdshell 'bcp.... in/out...' . You can specify variable which will be holding string with BCP command and then slice it to e.g. export list of tables in a WHILE LOOP. But for basic bcp I really like to use xp_cmdshell than running cmd.
      Answering your question more precisely - you can either use above or start-> cmd (or win+r and type cmd).

  • @kebincui
    @kebincui 2 года назад

    Perfect, thanks

  • @harshpatel1515
    @harshpatel1515 5 лет назад

    Love yr Tut ...

  • @dileepKumarvanka
    @dileepKumarvanka 12 лет назад

    nice video.. good job bro..

  • @lavanyanatarajan8409
    @lavanyanatarajan8409 Год назад

    Thank you!!!

  • @punitsetia3173
    @punitsetia3173 7 лет назад

    C:\Users\Punit Setia>BCP employee.dbo.Employees OUT D:\Employees.txt -T -c
    SQLState = S0002, NativeError = 208
    Error = [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid object name 'employee.dbo.Employees'.
    SQLState = 37000, NativeError = 11529
    Error = [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The metadata could not be determined because every code path results in an error; see previous errors for some of these.
    How to resolve this problem???

    • @vkk7033
      @vkk7033 Год назад

      Getting similar error
      How did you resolved it

  • @KeshavSingh83
    @KeshavSingh83  12 лет назад +1

    refer my video post Execute BCP Via TSQL (SQL Server)