{"id":2084,"date":"2021-05-07T08:00:00","date_gmt":"2021-05-07T05:00:00","guid":{"rendered":"https:\/\/www.dataplatform.gr\/?p=2084"},"modified":"2023-02-28T22:49:33","modified_gmt":"2023-02-28T19:49:33","slug":"pos-exagoyme-eisagoyme-olokliri-vasi","status":"publish","type":"post","link":"https:\/\/www.dataplatform.gr\/en\/pos-exagoyme-eisagoyme-olokliri-vasi\/","title":{"rendered":"How to export \/ import entire database using bulk copy (bcp) in SQL Server"},"content":{"rendered":"<p>Very often we will need to transfer records from tables from one system to another. Usually we do this work through a wizard, but there is also another tool in the <strong>SQL Server<\/strong> the <strong>bulk copy<\/strong> <strong>program <\/strong>or else <strong>bcp<\/strong>. <\/p>\n\n\n\n<p>The tool<strong> bcp<\/strong> is divided into two, the <strong>bcp out<\/strong> which exports the data to <strong>txt <\/strong>files containing all records<strong>*<\/strong> and <strong>bcp in<\/strong> which imports <strong>txt<\/strong> files in database tables in selected instance.<\/p>\n\n\n\n<p><em><strong>*<\/strong>there is also the option of using the parameter <strong>queryout <\/strong>so that we can write a query to extract only selected records<\/em>.<\/p>\n\n\n\n<p>In the article we will see a query that I have made that transfers <strong>all tables contained in the database<\/strong>. He prepares the orders for us in two columns. At one to do <strong>bcp out<\/strong> from the instance and to the other for <strong>bcp in<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What should we watch out for?<\/h2>\n\n\n\n<p>Because the tables will be inserted in a random order to make the process possible we should pay attention to them <strong>foreign key<\/strong> <strong>constraint violations<\/strong>. The <strong>constraints<\/strong> these are logical rules that link two tables together, their job is to ensure that in a table that the <strong>primary key<\/strong> it&#039;s his <strong>foreign key<\/strong> another will still have that record.<\/p>\n\n\n\n<p>As an example we can think that it is not possible to delete a record from a table with <em><strong>Countries <\/strong><\/em>as long as there are entries in the table <em><strong>addresses<\/strong><\/em> that have this country as their foreign key. We should first delete or change the country in these records and then be able to delete this country.  <\/p>\n\n\n\n<p>To avoid all these error messages we can either disable the constraint on the specific table:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">ALTER TABLE db_test.dbo.customer NOCHECK CONSTRAINT MyConstraint<\/pre>\n\n\n\n<p>or to disable the constraints in the entire base without forgetting to enable them afterwards:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">EXEC sp_msforeachtable \"ALTER TABLE ? NOCHECK CONSTRAINT all\"\n\nEXEC sp_msforeachtable \"ALTER TABLE ? CHECK CONSTRAINT all\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The code<\/h2>\n\n\n\n<p>All we need to do now is to run this script putting the parameters of username, password for the instance and the path where the files will be exported \/ imported:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">declare \n@user varchar(50),\n@pass varchar(50),\n@pathout varchar(200),\n@pathin varchar(200)\n\nset @user = 'username'\nset @pass = 'password'\nset @pathout = 'c:\\backups\\'\nset @pathin = 'c:\\backups\\'\n\nSELECT \n'bcp '           --bcp\n+  QUOTENAME(DB_NAME())+ '.'               \n+  QUOTENAME(SCHEMA_NAME(SCHEMA_ID))+ '.'  -- \n+  QUOTENAME(name)                         \n+ ' out ' +@pathout                        \n+  REPLACE(SCHEMA_NAME(schema_id),' ','') + '_' \n+  REPLACE(name,' ','')                    \n+ '.txt -S'\n+ REPLACE(REPLACE(QUOTENAME(@@servername),'[',''),']','')  --server name\n+' -U'+@user+' -P'+@pass+' '  --username  pass\n+'-n -t[cdel] -r[rdel]'  ,  \nAS  BCP_OUT,\n\n'bcp '           --bcp\n+  QUOTENAME(DB_NAME())+ '.'               \n+  QUOTENAME(SCHEMA_NAME(SCHEMA_ID))+ '.' \n+  QUOTENAME(name)                         \n+ ' in '+@pathin                          \n+  REPLACE(SCHEMA_NAME(schema_id),' ','') + '_' \n+  REPLACE(name,' ','')                   \n+ '.txt -S'\n+ REPLACE(REPLACE(QUOTENAME(@@servername),'[',''),']','')  --server name\n+' -U'+@user+' -P'+@pass+' '  --username  pass\n+'-w -n'\n+' -e'+@pathin +'logbcpin.txt'\n+' -t[cdel] -r[rdel]'   ,  \nAS  BCP_IN\nfrom sys.tables<\/pre>\n\n\n\n<p>By running the script we will see two columns. One will have it <strong>bcp out<\/strong> script for each table containing the base to be exported and the other the corresponding procedure for <strong>bcp in<\/strong> to be introduced.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"174\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-01.png\" alt=\"\" class=\"wp-image-2085\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-01.png 778w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-01-300x67.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-01-768x172.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n\n\n\n<p>For example we will not run the whole column with all three tables but only the first one. All we have to do is do <strong>paste <\/strong>the command in one <strong>command prompt<\/strong> with elevated admin rights:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>bcp &#91;db_test].&#91;dbo].&#91;customer] out c:\\backups\\dbo_customer.txt -SSMATZOURANISLP\\SQL19 -Usqladmin -Ppasssql -n -t&#91;cdel] -r&#91;rdel]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"230\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-02.png\" alt=\"\" class=\"wp-image-2088\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-02.png 664w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-02-300x104.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p>At this point the file has been created <em>c:\\backups\\dbo_customer.txt<\/em> with all table entries. If we were to import it to another computer, it would have to copy the file to the corresponding folder on the other machine.<\/p>\n\n\n\n<p>In this example I&#039;ll just re-insert it into the same array after first emptying all its entries:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">truncate table db_test.dbo.customer<\/pre>\n\n\n\n<p>Now with bcp in command in exactly the same way we will again import the records.<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>bcp &#91;db_test].&#91;dbo].&#91;customer] in c:\\backups\\dbo_customer.txt -SSMATZOURANISLP\\SQL19 -Usqladmin -Ppasssql -w -n -ec:\\backups\\logbcpin.txt -t&#91;cdel] -r&#91;rdel]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"234\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-03.png\" alt=\"\" class=\"wp-image-2089\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-03.png 666w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-03-300x105.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p>Ready!!!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"129\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-04.png\" alt=\"\" class=\"wp-image-2090\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-04.png 318w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/10\/bcp-04-300x122.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n\n\n<p>After we finish the process we don&#039;t forget to again <strong>activate <\/strong>the <strong>constraints<\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">EXEC sp_msforeachtable \"ALTER TABLE ? CHECK CONSTRAINT all\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Sources:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/tools\/bcp-utility?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener\">Bulk Copy Utility (bcp)<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Very often we will need to transfer records from tables from one system to another. Usually we do this work through a wizard, but there is another tool in SQL Server called the bulk copy program or bcp. The bcp tool is split into two, bcp out which outputs the data to txt [...]<\/p>","protected":false},"author":1,"featured_media":702,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,15],"tags":[112,29,23,6],"class_list":["post-2084","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-ms-sqlserver","tag-bcp","tag-databases","tag-microsoft","tag-sqlserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dataplatform.gr\/en\/pos-exagoyme-eisagoyme-olokliri-vasi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr\" \/>\n<meta property=\"og:description\" content=\"\u03a0\u03bf\u03bb\u03cd \u03c3\u03c5\u03c7\u03bd\u03ac \u03b8\u03b1 \u03c7\u03c1\u03b5\u03b9\u03b1\u03c3\u03c4\u03b5\u03af \u03bd\u03b1 \u03bc\u03b5\u03c4\u03b1\u03c6\u03ad\u03c1\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b9\u03c2 \u03b5\u03b3\u03b3\u03c1\u03b1\u03c6\u03ad\u03c2 \u03b1\u03c0\u03cc \u03c0\u03af\u03bd\u03b1\u03ba\u03b5\u03c2 \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03c3\u03cd\u03c3\u03c4\u03b7\u03bc\u03b1 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03ac\u03bb\u03bb\u03bf. \u03a3\u03c5\u03bd\u03ae\u03b8\u03c9\u03c2 \u03b1\u03c5\u03c4\u03ae \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c4\u03b7\u03bd \u03ba\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03c3\u03c9 wizard, \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9 \u03cc\u03bc\u03c9\u03c2 \u03ba\u03b1\u03b9 \u03ad\u03bd\u03b1 \u03ac\u03bb\u03bb\u03bf \u03b5\u03c1\u03b3\u03b1\u03bb\u03b5\u03af\u03bf \u03c3\u03c4\u03bf\u03bd SQL Server \u03c4\u03bf bulk copy program \u03ae \u03b1\u03bb\u03bb\u03b9\u03ce\u03c2 bcp. \u03a4\u03bf \u03b5\u03c1\u03b3\u03b1\u03bb\u03b5\u03af\u03bf bcp \u03c7\u03c9\u03c1\u03af\u03b6\u03b5\u03c4\u03b1\u03b9 \u03c3\u03b5 \u03b4\u03cd\u03bf, \u03c4\u03bf bcp out \u03c0\u03bf\u03c5 \u03b5\u03be\u03ac\u03b3\u03b5\u03b9 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c3\u03b5 txt [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dataplatform.gr\/en\/pos-exagoyme-eisagoyme-olokliri-vasi\/\" \/>\n<meta property=\"og:site_name\" content=\"DataPlatform.gr\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dataplatform.gr\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-07T05:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-28T19:49:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stratos Matzouranis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stratos Matzouranis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/\"},\"author\":{\"name\":\"Stratos Matzouranis\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\"},\"headline\":\"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \\\/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server\",\"datePublished\":\"2021-05-07T05:00:00+00:00\",\"dateModified\":\"2023-02-28T19:49:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/\"},\"wordCount\":74,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"keywords\":[\"BCP\",\"Databases\",\"Microsoft\",\"SQL Server\"],\"articleSection\":[\"Databases\",\"Microsoft SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/\",\"name\":\"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \\\/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"datePublished\":\"2021-05-07T05:00:00+00:00\",\"dateModified\":\"2023-02-28T19:49:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-exagoyme-eisagoyme-olokliri-vasi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Databases\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Microsoft SQL Server\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/ms-sqlserver\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \\\/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"name\":\"dataplatform.gr - Sky is not the limit!\",\"description\":\"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dataplatform.gr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\",\"name\":\"dataplatform.gr\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"width\":322,\"height\":139,\"caption\":\"dataplatform.gr\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dataplatform.gr\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dataplatform-gr\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\",\"name\":\"Stratos Matzouranis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"caption\":\"Stratos Matzouranis\"},\"sameAs\":[\"https:\\\/\\\/www.dataplatform.gr\"],\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/en\\\/author\\\/stratos-matzouranis\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dataplatform.gr\/en\/pos-exagoyme-eisagoyme-olokliri-vasi\/","og_locale":"en_US","og_type":"article","og_title":"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr","og_description":"\u03a0\u03bf\u03bb\u03cd \u03c3\u03c5\u03c7\u03bd\u03ac \u03b8\u03b1 \u03c7\u03c1\u03b5\u03b9\u03b1\u03c3\u03c4\u03b5\u03af \u03bd\u03b1 \u03bc\u03b5\u03c4\u03b1\u03c6\u03ad\u03c1\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b9\u03c2 \u03b5\u03b3\u03b3\u03c1\u03b1\u03c6\u03ad\u03c2 \u03b1\u03c0\u03cc \u03c0\u03af\u03bd\u03b1\u03ba\u03b5\u03c2 \u03b1\u03c0\u03cc \u03ad\u03bd\u03b1 \u03c3\u03cd\u03c3\u03c4\u03b7\u03bc\u03b1 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03ac\u03bb\u03bb\u03bf. \u03a3\u03c5\u03bd\u03ae\u03b8\u03c9\u03c2 \u03b1\u03c5\u03c4\u03ae \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c4\u03b7\u03bd \u03ba\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 \u03bc\u03ad\u03c3\u03c9 wizard, \u03c5\u03c0\u03ac\u03c1\u03c7\u03b5\u03b9 \u03cc\u03bc\u03c9\u03c2 \u03ba\u03b1\u03b9 \u03ad\u03bd\u03b1 \u03ac\u03bb\u03bb\u03bf \u03b5\u03c1\u03b3\u03b1\u03bb\u03b5\u03af\u03bf \u03c3\u03c4\u03bf\u03bd SQL Server \u03c4\u03bf bulk copy program \u03ae \u03b1\u03bb\u03bb\u03b9\u03ce\u03c2 bcp. \u03a4\u03bf \u03b5\u03c1\u03b3\u03b1\u03bb\u03b5\u03af\u03bf bcp \u03c7\u03c9\u03c1\u03af\u03b6\u03b5\u03c4\u03b1\u03b9 \u03c3\u03b5 \u03b4\u03cd\u03bf, \u03c4\u03bf bcp out \u03c0\u03bf\u03c5 \u03b5\u03be\u03ac\u03b3\u03b5\u03b9 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c3\u03b5 txt [&hellip;]","og_url":"https:\/\/www.dataplatform.gr\/en\/pos-exagoyme-eisagoyme-olokliri-vasi\/","og_site_name":"DataPlatform.gr","article_publisher":"https:\/\/www.facebook.com\/dataplatform.gr\/","article_published_time":"2021-05-07T05:00:00+00:00","article_modified_time":"2023-02-28T19:49:33+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","type":"image\/png"}],"author":"Stratos Matzouranis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stratos Matzouranis","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#article","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/"},"author":{"name":"Stratos Matzouranis","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf"},"headline":"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server","datePublished":"2021-05-07T05:00:00+00:00","dateModified":"2023-02-28T19:49:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/"},"wordCount":74,"commentCount":0,"publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","keywords":["BCP","Databases","Microsoft","SQL Server"],"articleSection":["Databases","Microsoft SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/","url":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/","name":"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server - DataPlatform.gr","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#primaryimage"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","datePublished":"2021-05-07T05:00:00+00:00","dateModified":"2023-02-28T19:49:33+00:00","breadcrumb":{"@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#primaryimage","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.dataplatform.gr\/pos-exagoyme-eisagoyme-olokliri-vasi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae","item":"https:\/\/www.dataplatform.gr\/"},{"@type":"ListItem","position":2,"name":"Databases","item":"https:\/\/www.dataplatform.gr\/category\/databases\/"},{"@type":"ListItem","position":3,"name":"Microsoft SQL Server","item":"https:\/\/www.dataplatform.gr\/category\/databases\/ms-sqlserver\/"},{"@type":"ListItem","position":4,"name":"\u03a0\u03ce\u03c2 \u03b5\u03be\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \/ \u03b5\u03b9\u03c3\u03ac\u03b3\u03bf\u03c5\u03bc\u03b5 \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b7 \u03b2\u03ac\u03c3\u03b7 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03bc\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b7 bulk copy (bcp) \u03c3\u03c4\u03bf\u03bd SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/www.dataplatform.gr\/#website","url":"https:\/\/www.dataplatform.gr\/","name":"dataplatform.gr - Sky is not the limit!","description":"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.","publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dataplatform.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dataplatform.gr\/#organization","name":"dataplatform.gr","url":"https:\/\/www.dataplatform.gr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","width":322,"height":139,"caption":"dataplatform.gr"},"image":{"@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dataplatform.gr\/","https:\/\/www.linkedin.com\/company\/dataplatform-gr\/"]},{"@type":"Person","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf","name":"Stratos Matzouranis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","caption":"Stratos Matzouranis"},"sameAs":["https:\/\/www.dataplatform.gr"],"url":"https:\/\/www.dataplatform.gr\/en\/author\/stratos-matzouranis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/2084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/comments?post=2084"}],"version-history":[{"count":0,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/2084\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media\/702"}],"wp:attachment":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media?parent=2084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/categories?post=2084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/tags?post=2084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}