{"id":3010,"date":"2017-01-05T08:00:03","date_gmt":"2017-01-04T23:00:03","guid":{"rendered":"http:\/\/blog.mips-lab.com\/?p=3010"},"modified":"2017-06-24T19:04:13","modified_gmt":"2017-06-24T10:04:13","slug":"sqlcmd","status":"publish","type":"post","link":"https:\/\/etbs.jp\/blog\/sqlcmd\/","title":{"rendered":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img width=\"127\" height=\"170\" src=\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png\" class=\"attachment-large size-large wp-post-image\" alt=\"\" decoding=\"async\" \/><\/div>\n<p>\u300cMicrosoft SQL Server\u300d\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306b\u767b\u9332\u3057\u3066\u5b9a\u671f\u7684\u306b\u53d6\u5f97\u3057\u305f\u304f\u3066\u3001\u3044\u3044\u65b9\u6cd5\u304c\u7121\u3044\u304b\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<hr>\n<div class=\"amzImg\">\n<a  href=\"https:\/\/www.amazon.co.jp\/gp\/product\/B01GGV18RK\/ref=as_li_tf_il?ie=UTF8&#038;camp=247&#038;creative=1211&#038;creativeASIN=B01GGV18RK&#038;linkCode=as2&#038;tag=mipssys-22\"><img decoding=\"async\" border=\"0\" src=\"https:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&#038;ASIN=B01GGV18RK&#038;Format=_SL160_&#038;ID=AsinImage&#038;MarketPlace=JP&#038;ServiceVersion=20070822&#038;WS=1&#038;tag=mipssys-22\" ><\/a><img decoding=\"async\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=mipssys-22&#038;l=as2&#038;o=9&#038;a=B01GGV18RK\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>\n<\/div>\n<div class=\"amz\">\n<div style=\"margin-left:3%;\">\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u521d\u5fc3\u8005\u3067\u3082\u6271\u3044\u3084\u3059\u3044\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306e\u6700\u65b0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u904b\u7528\u5206\u6790\u3001\u30e2\u30d0\u30a4\u30eb \u30c7\u30d0\u30a4\u30b9\u306e\u30ea\u30c3\u30c1\u306a\u8996\u899a\u5316\u3001\u7d44\u307f\u8fbc\u307f\u306e\u9ad8\u5ea6\u306a\u5206\u6790\u306a\u3069\u65b0\u305f\u306b\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a  href=\"https:\/\/www.amazon.co.jp\/gp\/product\/B01GGV18RK\/ref=as_li_tf_tl?ie=UTF8&#038;camp=247&#038;creative=1211&#038;creativeASIN=B01GGV18RK&#038;linkCode=as2&#038;tag=mipssys-22\">SQL Server 2016 Standard \u65e5\u672c\u8a9e\u7248 10CAL\u4ed8<\/a><img decoding=\"async\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=mipssys-22&#038;l=as2&#038;o=9&#038;a=B01GGV18RK\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/>\n<\/div>\n<\/div>\n<div class=\"clr\"><\/div>\n<hr>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#SQLCMD\"><span class=\"toc_number toc_depth_1\">1<\/span> SQLCMD\u3068\u306f\uff1f<\/a><\/li><li><a href=\"#SQLCMD-2\"><span class=\"toc_number toc_depth_1\">2<\/span> SQLCMD\u306e\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u30aa\u30d7\u30b7\u30e7\u30f3<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u306b\u51fa\u529b<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">4<\/span> \u51fa\u529b\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u5404\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">5<\/span> \u5b8c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8<\/a><\/li><\/ul><\/div>\n<h3 class=\"titSub\"><span id=\"SQLCMD\"><span class=\"blogSub\">SQLCMD\u3068\u306f\uff1f<\/span><\/span><\/h3>\n<p>\u300cMicrosoft SQL Server\u300d\u306b\u4ed8\u5c5e\u3059\u308b\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3084\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089SQL\u30b5\u30fc\u30d0\u30fc\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<br \/>\n\u300cMicrosoft SQL Server\u300d\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5225\u306a\u7aef\u672b\u304b\u3089\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u5358\u4f53\u3067\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.microsoft.com\/ja-jp\/download\/details.aspx?id=52676\" target=\"_blank\">https:\/\/www.microsoft.com\/ja-jp\/download\/details.aspx?id=52676<\/a><\/p>\n<h3 class=\"titSub\"><span id=\"SQLCMD-2\"><span class=\"blogSub\">SQLCMD\u306e\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u30aa\u30d7\u30b7\u30e7\u30f3<\/span><\/span><\/h3>\n<p>\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002\u305d\u306e\u4ed6\u306e\u8a73\u3057\u3044\u5185\u5bb9\u306f\u3053\u3061\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/ms162773.aspx\" target=\"_blank\">https:\/\/msdn.microsoft.com\/ja-jp\/library\/ms162773.aspx<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsqlcmd -S server0 -U sa -P password -d database0 -i SQLTXT0.sql\r\n<\/pre>\n<table>\n<tr>\n<th>\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<th>-S<\/th>\n<td>\u30b5\u30fc\u30d0\u540d<\/td>\n<\/tr>\n<tr>\n<th>-U<\/th>\n<td>\u30ed\u30b0\u30a4\u30f3<\/td>\n<\/tr>\n<tr>\n<th>-P<\/th>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<th>-d<\/th>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/td>\n<\/tr>\n<tr>\n<th>-i<\/th>\n<td>\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/table>\n<h3 class=\"titSub\"><span id=\"i\"><span class=\"blogSub\">\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u306b\u51fa\u529b<\/span><\/span><\/h3>\n<p>\u307e\u305a\u306f\u30c6\u30fc\u30d6\u30eb\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002SQL\u6587\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT name FROM sys.databases\r\n<\/pre>\n<p>\u524d\u306b\u300cSET NOCOUNT ON\u300d\u3092\u3064\u3051\u308b\u3068\u6700\u5f8c\u884c\u306b\u51fa\u529b\u3055\u308c\u308b\u4ef6\u6570\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\nSQLCMD\u30b3\u30de\u30f3\u30c9\u3067\u7d50\u679c\u3092\u30c6\u30ad\u30b9\u30c8\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsqlcmd -S server1\\database1 -E -i SQLTXT1.sql -s, -W -h -1 -o tabellist.txt\r\n<\/pre>\n<table>\n<tr>\n<th>\u30aa\u30d7\u30b7\u30e7\u30f3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<th>-E<\/th>\n<td>Windows\u8a8d\u8a3c\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a<\/td>\n<\/tr>\n<tr>\n<th>-s<\/th>\n<td>\u533a\u5207\u308a\u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<th>-W<\/th>\n<td>\u4f59\u8a08\u306a\u7a7a\u767d\u3092\u7701\u304f<\/td>\n<\/tr>\n<tr>\n<th>-h<\/th>\n<td>-1\u3067\u30d8\u30c3\u30c0\u975e\u8868\u793a<\/td>\n<\/tr>\n<tr>\n<th>-o<\/th>\n<td>\u51fa\u529b\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/table>\n<h3 class=\"titSub\"><span id=\"i-2\"><span class=\"blogSub\">\u51fa\u529b\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u5404\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97<\/span><\/span><\/h3>\n<p>\u51fa\u529b\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u300cReadLine\u300d\u30671\u884c\u3065\u3064\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nSet readFile = objFSO.OpenTextFile(strFolder &amp; &quot;\\tabellist.txt&quot;)\r\n\tDo While readFile.AtEndOfStream &lt;&gt; True\r\n\t\tstrReadLine = Trim(readFile.ReadLine)\t\t\r\n\tLoop\r\nreadFile.close\r\n<\/pre>\n<h3 class=\"titSub\"><span id=\"i-3\"><span class=\"blogSub\">\u5b8c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8<\/span><\/span><\/h3>\n<p>\u6700\u7d42\u7684\u306b\u5b8c\u6210\u3057\u305fVBScript\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>SQLTXT[n].sql \u30fb\u30fb\u30fb SQL\u6587\u3092\u66f8\u3044\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb<br \/>\nserver1\\database1 \u30fb\u30fb\u30fb \u5bfe\u8c61\u30b5\u30fc\u30d0\u30fc\u540d\uff0f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<br \/>\ntabellist.txt \u30fb\u30fb\u30fb \u30c6\u30fc\u30d6\u30eb\u540d\u306e\u51fa\u529b\u7d50\u679c\u3067\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nDim strPath, strFolder, strReadLine\r\nDim objShell, objFSO, objFile, outSQL1, outBat1, outSQL2, readFile\r\n\r\nSet objShell = WScript.CreateObject(&quot;WScript.Shell&quot;) \r\n\r\nstrPath = Wscript.ScriptFullName\r\nSet objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\nSet objFile = objFSO.GetFile(strPath) \r\nstrFolder = objFSO.GetParentFolderName(objFile)  \r\n\r\n'sqlcmd\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3092\u53d6\u5f97\u3059\u308b\r\nSet outSQL1 = objFSO.OpenTextFile(strFolder &amp; &quot;\\SQLTXT1.sql&quot;,2,True)\r\n\toutSQL1.WriteLine &quot;SET NOCOUNT ON SELECT name FROM sys.databases&quot;\r\noutSQL1.close\r\n\r\nSet outBat1 = objFSO.OpenTextFile(strFolder &amp; &quot;\\getDB.bat&quot;,2,True)\r\n\toutBat1.WriteLine &quot;sqlcmd -S server1\\database1 -E -i SQLTXT1.sql -s, -W -h -1 -o tabellist.txt&quot;\r\noutBat1.close\r\n\r\nobjShell.RUN strFolder &amp; &quot;\\getDB.bat&quot;,0\r\n\r\n'\u3061\u3087\u3063\u3068\u6642\u9593\u3092\u304a\u304f\r\nWScript.Sleep 10000\r\n\r\n'\u30d5\u30a1\u30a4\u30eb\u304c\u3046\u307e\u304f\u751f\u6210\u3055\u308c\u306a\u304b\u3063\u305f\u3068\u304d\u306f\u5b9f\u884c\u3057\u306a\u3044\r\nIf Not objFso.FileExists(strFolder &amp; &quot;\\tabellist.txt&quot;) Then\r\n\tWScript.Quit\r\nElse\r\n\tIf objFile.Size = 0 then\r\n\t\tWScript.Quit\r\n\tEnd If\r\nEnd If\r\n\r\n'sqlcmd\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\r\nSet outSQL2 = objFSO.OpenTextFile(strFolder &amp; &quot;\\SQLTXT2.sql&quot;,2,True)\r\n\tSet readFile = objFSO.OpenTextFile(strFolder &amp; &quot;\\tabellist.txt&quot;)\r\n\tDo While readFile.AtEndOfStream &lt;&gt; True\r\n\t\tstrReadLine = Trim(readFile.ReadLine)\r\n\t\tIf Not strReadLine = &quot;&quot; Then\r\n\t\t\toutSQL2.WriteLine &quot;BACKUP DATABASE &quot; &amp; strReadLine &amp; &quot; TO DISK = N'&quot; &amp; strFolder &amp; &quot;\\bak\\&quot; &amp; strReadLine &amp; &quot;.BAK' WITH INIT&quot;\r\n\t\tEnd If\r\n\tLoop\r\n\treadFile.close\r\noutSQL2.close\r\n\r\nSet outBat2 = objFSO.OpenTextFile(strFolder &amp; &quot;\\backupDB.bat&quot;,2,True)\r\n\toutBat2.WriteLine &quot;sqlcmd -S server1\\database1 -E -i SQLTXT2.sql &gt;&gt; sqlbaklog.txt&quot;\r\noutBat2.close\r\n\r\nobjShell.RUN strFolder &amp; &quot;\\backupDB.bat&quot;,0\r\n\r\nSet readFile = Nothing\r\nSet outBat2 = Nothing\r\nSet outBat1 = Nothing\r\nSet outSQL2 = Nothing\r\nSet outSQL1 = Nothing\r\nSet objFile = Nothing\r\nSet objFSO = Nothing\r\nSet objShell = Nothing\r\n<\/pre>\n<p>\u4e00\u5ea6\u30c6\u30ad\u30b9\u30c8\u306b\u66f8\u304d\u51fa\u3055\u306a\u304f\u3066\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u78ba\u8a8d\u306e\u305f\u3081\u3053\u306e\u3088\u3046\u306a\u5f62\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u3082\u3042\u308b\u306e\u3067\u306f\uff1f\u3068\u601d\u3044\u3064\u3064\u4eca\u56de\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u53c2\u8003\u307e\u3067\u306b\u3002<\/p>\n<section class=\"veu_cta\" id=\"veu_cta-4500\"><h1 class=\"cta_title\">\u81ea\u5df1\u7d39\u4ecb<\/h1><div class=\"cta_body\"><div class=\"cta_body_image cta_body_image_center\"><a href=\"https:\/\/etbs.jp\/contact\/\"><img width=\"240\" height=\"240\" src=\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/IMG_TOP_ME_MINI.jpg\" class=\"attachment-large size-large\" alt=\"\" decoding=\"async\" srcset=\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/IMG_TOP_ME_MINI.jpg 240w, https:\/\/etbs.jp\/blog\/wp-content\/uploads\/IMG_TOP_ME_MINI-150x150.jpg 150w, https:\/\/etbs.jp\/blog\/wp-content\/uploads\/IMG_TOP_ME_MINI-45x45.jpg 45w\" sizes=\"(max-width: 240px) 100vw, 240px\" \/><\/a><\/div><div class=\"cta_body_txt image_exist\"><span class=\"bd\">\u677e\u7530 \u5927<\/span>\u3068\u7533\u3057\u307e\u3059m(_ _)m\r<br \/>\u30a4\u30f3\u30c7\u30a3\u30fc\u30ba\u3067\u30df\u30e5\u30fc\u30b8\u30b7\u30e3\u30f3\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3044\u3064\u306e\u307e\u306b\u304b...\r<br \/>\r<br \/>\u3068\u3042\u308b\u4f01\u696d\u3067\u30b7\u30e7\u30c3\u30d7\u306e\u30a2\u30eb\u30d0\u30a4\u30c8\u30b9\u30bf\u30c3\u30d5\u304b\u3089\u6b63\u793e\u54e1\u3001\u652f\u5e97\u9577\u3092\u7d4c\u3066\u30b7\u30b9\u30c6\u30e0\u90e8\u9580\u306b\u7570\u52d5\u3059\u308b\u3068\u3044\u3046\u3001\u958b\u767a\u62c5\u5f53\u3068\u3057\u3066\u306f\u5909\u308f\u3063\u305f\u7d4c\u7def\u3092\u6301\u3063\u3066\u3044\u308b\u65b9\u3060\u3068\u601d\u3044\u307e\u3059\u3002 \r<br \/>\r<br \/>\u300cExcel VBA\u300d\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u3001Yamaha RTX \u30b7\u30ea\u30fc\u30ba\u3067 VPN\u74b0\u5883\u69cb\u7bc9\u3001Hyper-V\u74b0\u5883\u69cb\u7bc9\u3001Windows\u30a2\u30d7\u30ea\u958b\u767a\u306a\u3069\u3092\u7d4c\u9a13\u3057\u305f\u5f8c\u3001\u300c WordPress \u300d\u306b\u51fa\u4f1a\u3044\u3001\u3069\u3063\u3077\u308a\u30cf\u30de\u3063\u3066\u3044\u307e\u3059\u3002\r<br \/>\r<br \/>\u73fe\u5728\u52e4\u3081\u3066\u3044\u308b<a href=\"https:\/\/etbs.jp\">ETBS\u5408\u540c\u4f1a\u793e<\/a>\u3067\u306f\u3001\u300c WordPress \u300d\u3092\u6d3b\u7528\u3057\u305fWEB\u30b5\u30a4\u30c8\u3001\u696d\u52d9\u7528WEB\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u4e2d\u5fc3\u306b\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u4ee3\u884c\u3084\u63b2\u8f09\u306b\u5fc5\u8981\u306a\u60c5\u5831\u306e\u30ea\u30b5\u30fc\u30c1\u3001\u6620\u50cf\u306e\u30c6\u30ed\u30c3\u30d7\u5165\u308c\u3084\u5207\u308a\u306f\u308a\u306a\u3069\u306e\u7c21\u5358\u306a\u52d5\u753b\u7de8\u96c6\u306a\u3069\u3082\u3001\u307e\u3068\u3081\u3066\u884c\u306a\u3063\u3066\u3044\u307e\u3059\u3002\r<br \/>\r<br \/>\u5bae\u5d0e\u770c \u90fd\u57ce\u5e02 \u51fa\u8eab\u3002\u6771\u4eac\u90fd \u845b\u98fe\u533a \u5728\u4f4f\u3002\u73fe\u5728\u3001\u4ee3\u8868\u517c\u4e8c\u5150\u306e\u30d1\u30d1\u3002\u5b50\u80b2\u3066\u3092\u901a\u3058\u3066\u3001\u3053\u3069\u3082\u305f\u3061\u306b\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u697d\u3057\u3055\u306b\u89e6\u308c\u3066\u307b\u3057\u3044\u3068\u601d\u3046\u3088\u3046\u306b\u306a\u308a\u3001\u300c \u3053\u3069\u3082ICT\u304b\u3064\u3057\u304b\u6559\u5ba4 \u300d\u3092\u958b\u8b1b\u4e2d\u3002\u6700\u8fd1\u306f\u7ae5\u5fc3\u306b\u5e30\u308a\u3001\u7c21\u5358\u306a\u30b2\u30fc\u30e0\u5236\u4f5c\u306a\u3093\u304b\u3082\u697d\u3057\u3093\u3067\u3044\u307e\u3059(^_^)\u3002<\/div><div class=\"cta_body_link\"><a href=\"https:\/\/etbs.jp\/contact\/\" class=\"btn btn-primary btn-block btn-lg\">\u304a\u554f\u3044\u5408\u308f\u305b<\/a><\/div><\/div><!-- [ \/.vkExUnit_cta_body ] --><\/section>","protected":false},"excerpt":{"rendered":"<p>\u300cMicrosoft SQL Server\u300d\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306b\u767b\u9332\u3057\u3066\u5b9a\u671f\u7684\u306b\u53d6\u5f97\u3057\u305f\u304f\u3066\u3001\u3044\u3044\u65b9\u6cd5\u304c\u7121\u3044\u304b\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 <\/p>\n","protected":false},"author":3,"featured_media":3627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,29],"tags":[2,169,19,170,30,31],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5<\/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:\/\/etbs.jp\/blog\/sqlcmd\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5\" \/>\n<meta name=\"twitter:description\" content=\"\u300cMicrosoft SQL Server\u300d\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306b\u767b\u9332\u3057\u3066\u5b9a\u671f\u7684\u306b\u53d6\u5f97\u3057\u305f\u304f\u3066\u3001\u3044\u3044\u65b9\u6cd5\u304c\u7121\u3044\u304b\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/cropped-icon3.png\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/etbs.jp\/blog\/#organization\",\"name\":\"ETBS\u5408\u540c\u4f1a\u793e\",\"url\":\"https:\/\/etbs.jp\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/etbs.jp\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/logo3.png\",\"contentUrl\":\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/logo3.png\",\"width\":989,\"height\":263,\"caption\":\"ETBS\u5408\u540c\u4f1a\u793e\"},\"image\":{\"@id\":\"https:\/\/etbs.jp\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/etbs.jp\/blog\/#website\",\"url\":\"https:\/\/etbs.jp\/blog\/\",\"name\":\"ETBS\u306e\u30d6\u30ed\u30b0\",\"description\":\"\u5099\u5fd8\u9332\u3001\u65e5\u5e38\u306e\u3061\u3087\u3063\u3068\u3057\u305f\u4f5c\u696d\u306a\u3093\u304b\u3092\u30e1\u30e2\",\"publisher\":{\"@id\":\"https:\/\/etbs.jp\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/etbs.jp\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage\",\"url\":\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png\",\"contentUrl\":\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png\",\"width\":127,\"height\":170},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/\",\"url\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/\",\"name\":\"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5\",\"isPartOf\":{\"@id\":\"https:\/\/etbs.jp\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage\"},\"datePublished\":\"2017-01-04T23:00:03+00:00\",\"dateModified\":\"2017-06-24T10:04:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/etbs.jp\/blog\/sqlcmd\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/etbs.jp\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/\"},\"author\":{\"name\":\"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40\",\"@id\":\"https:\/\/etbs.jp\/blog\/#\/schema\/person\/fab776775c8fc1ab0bc6ffc7b1bf3578\"},\"headline\":\"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2017-01-04T23:00:03+00:00\",\"dateModified\":\"2017-06-24T10:04:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/\"},\"wordCount\":395,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/etbs.jp\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png\",\"keywords\":[\"[\u3060\u3044\u266a]\",\"Microsoft SQL Server\",\"SQL\",\"SQLCMD\",\"vb\",\"VBScript\"],\"articleSection\":[\"DATABASE\",\"VB\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/etbs.jp\/blog\/sqlcmd\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/etbs.jp\/blog\/#\/schema\/person\/fab776775c8fc1ab0bc6ffc7b1bf3578\",\"name\":\"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/etbs.jp\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef0102d02a0a3ac87dee9120dc5e78fd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef0102d02a0a3ac87dee9120dc5e78fd?s=96&d=mm&r=g\",\"caption\":\"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5","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:\/\/etbs.jp\/blog\/sqlcmd\/","twitter_card":"summary_large_image","twitter_title":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5","twitter_description":"\u300cMicrosoft SQL Server\u300d\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306b\u767b\u9332\u3057\u3066\u5b9a\u671f\u7684\u306b\u53d6\u5f97\u3057\u305f\u304f\u3066\u3001\u3044\u3044\u65b9\u6cd5\u304c\u7121\u3044\u304b\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002","twitter_image":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/cropped-icon3.png","twitter_misc":{"\u57f7\u7b46\u8005":"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/etbs.jp\/blog\/#organization","name":"ETBS\u5408\u540c\u4f1a\u793e","url":"https:\/\/etbs.jp\/blog\/","sameAs":[],"logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/etbs.jp\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/logo3.png","contentUrl":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/logo3.png","width":989,"height":263,"caption":"ETBS\u5408\u540c\u4f1a\u793e"},"image":{"@id":"https:\/\/etbs.jp\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/etbs.jp\/blog\/#website","url":"https:\/\/etbs.jp\/blog\/","name":"ETBS\u306e\u30d6\u30ed\u30b0","description":"\u5099\u5fd8\u9332\u3001\u65e5\u5e38\u306e\u3061\u3087\u3063\u3068\u3057\u305f\u4f5c\u696d\u306a\u3093\u304b\u3092\u30e1\u30e2","publisher":{"@id":"https:\/\/etbs.jp\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/etbs.jp\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage","url":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png","contentUrl":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png","width":127,"height":170},{"@type":"WebPage","@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/","url":"https:\/\/etbs.jp\/blog\/sqlcmd\/","name":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5","isPartOf":{"@id":"https:\/\/etbs.jp\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage"},"datePublished":"2017-01-04T23:00:03+00:00","dateModified":"2017-06-24T10:04:13+00:00","breadcrumb":{"@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/etbs.jp\/blog\/sqlcmd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/etbs.jp\/blog\/"},{"@type":"ListItem","position":2,"name":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5"}]},{"@type":"Article","@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#article","isPartOf":{"@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/"},"author":{"name":"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40","@id":"https:\/\/etbs.jp\/blog\/#\/schema\/person\/fab776775c8fc1ab0bc6ffc7b1bf3578"},"headline":"SQLCMD\u3067\u8907\u6570\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5","datePublished":"2017-01-04T23:00:03+00:00","dateModified":"2017-06-24T10:04:13+00:00","mainEntityOfPage":{"@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/"},"wordCount":395,"commentCount":0,"publisher":{"@id":"https:\/\/etbs.jp\/blog\/#organization"},"image":{"@id":"https:\/\/etbs.jp\/blog\/sqlcmd\/#primaryimage"},"thumbnailUrl":"https:\/\/etbs.jp\/blog\/wp-content\/uploads\/visual-basic-icon_p.png","keywords":["[\u3060\u3044\u266a]","Microsoft SQL Server","SQL","SQLCMD","vb","VBScript"],"articleSection":["DATABASE","VB"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/etbs.jp\/blog\/sqlcmd\/#respond"]}]},{"@type":"Person","@id":"https:\/\/etbs.jp\/blog\/#\/schema\/person\/fab776775c8fc1ab0bc6ffc7b1bf3578","name":"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/etbs.jp\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef0102d02a0a3ac87dee9120dc5e78fd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef0102d02a0a3ac87dee9120dc5e78fd?s=96&d=mm&r=g","caption":"\u304b\u3064\u3057\u304b\u6559\u5ba4\u4e8b\u52d9\u5c40"}}]}},"_links":{"self":[{"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/posts\/3010"}],"collection":[{"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/comments?post=3010"}],"version-history":[{"count":2,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/posts\/3010\/revisions"}],"predecessor-version":[{"id":4033,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/posts\/3010\/revisions\/4033"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/media\/3627"}],"wp:attachment":[{"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/media?parent=3010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/categories?post=3010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/etbs.jp\/blog\/wp-json\/wp\/v2\/tags?post=3010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}