{"id":367,"date":"2016-12-14T17:04:12","date_gmt":"2016-12-14T08:04:12","guid":{"rendered":"http:\/\/okamurax.com\/?p=367"},"modified":"2024-05-03T18:31:03","modified_gmt":"2024-05-03T09:31:03","slug":"sql-server%e9%96%a2%e9%80%a3","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=367","title":{"rendered":"SQL Server \u30e1\u30e2"},"content":{"rendered":"<h2>\u63a5\u7d9a\u6587\u5b57\u5217(\u30d7\u30ed\u30d0\u30a4\u30c0)<\/h2>\n<p>\u30fbOLE DB<\/p>\n<p><span style=\"color: #0000ff;\">(\u975e\u63a8\u5968)SQL Server Native Client(SQLNCLI)<\/span><br \/>\n<span style=\"color: #0000ff;\">(\u975e\u63a8\u5968)Microsoft OLE DB Provider for SQL Server(SQLOLEDB)<\/span><br \/>\n<span style=\"color: #0000ff;\">Microsoft OLE DB Driver for SQL Server(MSOLEDBSQL)\u203b<\/span><\/p>\n<p>ODBC\u306b\u306e\u307f\u5bfe\u5fdc\u3057\u3066\u3044\u308bDB\u88fd\u54c1\u306b\u5bfe\u3057\u3066\u306f\u3001<br \/>\n<span style=\"color: #0000ff;\">Microsoft OLE DB Provider for ODBC(MSDASQL)<\/span><\/p>\n<p>OLE DB\u63a5\u7d9a\u6587\u5b57\u5217\u30b5\u30f3\u30d7\u30eb<br \/>\n<span style=\"color: #0000ff;\">&#8220;Provider=MSOLEDBSQL;Data Source=192.168.4.201,1433\\MSSQLSERVER;Initial Catalog=xxx;User ID=sa;Password=xxx;&#8221;<\/span><\/p>\n<p>\u30fbODBC<\/p>\n<p><span style=\"color: #0000ff;\">(\u975e\u63a8\u5968)SQL Server<\/span><br \/>\n<span style=\"color: #0000ff;\">(\u975e\u63a8\u5968)SQL Server Native Client<\/span><br \/>\n<span style=\"color: #0000ff;\">Microsoft ODBC Driver for SQL Server<\/span><\/p>\n<p>ODBC\u63a5\u7d9a\u6587\u5b57\u5217\u30b5\u30f3\u30d7\u30eb<br \/>\n<span style=\"color: #0000ff;\">&#8220;Driver={ODBC Driver 18 for SQL Server};Server=192.168.4.201,1433\\MSSQLSERVER;Database=xxx;Uid=sa;Pwd=xxx;Encrypt=Optional&#8221;<\/span><\/p>\n<p>\u30c9\u30e9\u30a4\u30d0\u30fc(DSN\u78ba\u8a8d)<br \/>\n<span style=\"color: #0000ff;\">cmd\uff1eodbcad32<\/span><\/p>\n<h2>\u203bMSOLEDBSQL 3706\u30a8\u30e9\u30fc<\/h2>\n<p>\u30fbMicrosoft OLE DB Driver for SQL Server 19.3(x64)<span style=\"color: #0000ff;\"><br \/>\nhttps:\/\/go.microsoft.com\/fwlink\/?linkid=2220017<br \/>\n<\/span>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305a\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3068\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n<p>Microsoft Visual C++ Redistributable for Visual Studio 2022<br \/>\n<span style=\"color: #0000ff;\">https:\/\/aka.ms\/vs\/17\/release\/vc_redist.x64.exe<br \/>\n<\/span>\u3092\u8ffd\u52a0\u3057\u3066\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304b\u3063\u305f\u3002<span style=\"color: #0000ff;\"><br \/>\n<\/span><\/p>\n<p>\u30fbMicrosoft OLE DB Driver for SQL Server 19.2(x64)<span style=\"color: #0000ff;\"><br \/>\nhttps:\/\/go.microsoft.com\/fwlink\/?linkid=2212594<br \/>\n<\/span>\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u304c\u3001<br \/>\n(3706)\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<br \/>\n\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u63a5\u7d9a\u6587\u5b57\u5217\u3092<br \/>\n<span style=\"color: #0000ff;\">&#8220;Provider=MSOLEDBSQL.19; &#8230; Use Encryption for Data=False&#8221;<\/span><br \/>\n\u3068\u3057\u305f\u304c\u30c0\u30e1\u3060\u3063\u305f\u3002<\/p>\n<p>Microsoft ODBC Driver 13.1 for SQL Server<span style=\"color: #0000ff;\"><br \/>\nhttps:\/\/www.microsoft.com\/ja-JP\/download\/confirmation.aspx?id=53339<br \/>\n<span style=\"color: #333333;\">\u3092\u5165\u308c\u3066\u898b\u305f\u304c\u30c0\u30e1\u3060\u3063\u305f\u3002<\/span><\/span><\/p>\n<h2>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u5834\u5408<\/h2>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u7a2e\u985e<\/p>\n<p>64\u30d3\u30c3\u30c8\u74b0\u5883<br \/>\n<span style=\"color: #0000ff;\">JPN\\x64\\sqlncli.msi<\/span><br \/>\n<span style=\"color: #0000ff;\">JPN\\x64\\SqlCmdLnUtils.msi<\/span><br \/>\n\u306e\uff12\u3064\u3092\u4fdd\u5b58<\/p>\n<p>32\u30d3\u30c3\u30c8\u74b0\u5883<br \/>\n<span style=\"color: #0000ff;\">JPN\\x86\\sqlncli.msi<\/span><br \/>\n<span style=\"color: #0000ff;\">JPN\\x86\\SqlCmdLnUtils.msi<\/span><br \/>\n\u306e\uff12\u3064\u3092\u4fdd\u5b58<\/p>\n<p><span style=\"color: #0000ff;\">C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn<\/span><br \/>\n\u306b\u30d1\u30b9\u3092\u901a\u3059<\/p>\n<h2>\u30b3\u30de\u30f3\u30c9\u3067\u306e\u5229\u7528\u65b9\u6cd5<\/h2>\n<p>\u30fb<span style=\"color: #333333;\">\u30d8\u30eb\u30d7<br \/>\n<\/span><span style=\"color: #0000ff;\">sqlcmd \/?<\/span><\/p>\n<p>\u30fb\u63a5\u7d9a<br \/>\n<span style=\"color: #0000ff;\">sqlcmd -S \u30b5\u30fc\u30d0\u540d\u00a0-d DB\u540d -U user -P pass<br \/>\nsqlcmd -E -S HOST\u540d\\sqlexpress<br \/>\n<span style=\"color: #333333;\">\u307e\u305f\u306f\u3001<\/span><br \/>\nsqlcmd -E -S localhost\\sqlexpress<\/span><\/p>\n<p>\u203b\u63a5\u7d9a\u3068\u540c\u6642\u306b\u30af\u30a8\u30ea\u3092\u6e21\u3055\u306a\u3044\u3068\u3001\u5bfe\u8a71\u72b6\u614b\u306b\u306a\u308b\u3002<\/p>\n<p>\u30fb\u30aa\u30d7\u30b7\u30e7\u30f3<\/p>\n<p><span style=\"color: #0000ff;\">-E<\/span><br \/>\nWindows\u8a8d\u8a3c<br \/>\n<span style=\"color: #0000ff;\">-Q<\/span><br \/>\n\u30a4\u30f3\u30e9\u30a4\u30f3\u3067SQL<br \/>\n<span style=\"color: #0000ff;\">-i<\/span><br \/>\nSQL\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6e21\u305b\u308b\u3002<\/p>\n<p>\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e00\u89a7\u306e\u8868\u793a<br \/>\n<span style=\"color: #0000ff;\">1&gt; select name from sys.databases<\/span><br \/>\n<span style=\"color: #0000ff;\">2&gt; go<\/span><\/p>\n<p>\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6307\u5b9a<br \/>\n<span style=\"color: #0000ff;\">1&gt; use my_database<\/span><br \/>\n<span style=\"color: #0000ff;\">2&gt; go<\/span><\/p>\n<p>\u30fb\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u306e\u8868\u793a<br \/>\n<span style=\"color: #0000ff;\">1&gt; select name from sys.tables<\/span><br \/>\n<span style=\"color: #0000ff;\">2&gt; go<\/span><\/p>\n<h2>\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/h2>\n<p>\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3002<br \/>\n<span style=\"color: #0000ff;\">sqlcmd -E -S host\u540d\\sqlexpress -i &#8220;sql.txt&#8221;<\/span><\/p>\n<p>sql.txt<\/p>\n<pre class=\"lang:tsql decode:true \">declare @weekday varchar(1)\r\nset @weekday = datepart(weekday,getdate())\r\n\r\ndeclare @path varchar(255)\r\nset @path = 'D:\\xxx\\backup_' + @weekday + '.bak'\r\n\r\ndeclare @date varchar(8)\r\nset @date = format(getdate(),'yyyyMMdd')\r\n\r\nbackup database my_database\r\nto disk = @path\r\nwith init , name = @date<\/pre>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u60c5\u5831<\/p>\n<pre class=\"lang:tsql decode:true \">restore headeronly\r\nfrom disk = 'C:\\xxx\\xxx.bak'\r\nrestore filelistonly\r\nfrom disk = 'C:\\xxx\\xxx.bak'\r\n<\/pre>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5fa9\u5143<\/p>\n<pre class=\"lang:tsql decode:true \">restore database my_database\r\nfrom disk = 'C:\\xxx\\xxx.bak'<\/pre>\n<h2>\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u306e\u8a2d\u5b9a<\/h2>\n<p>\u6700\u521d\u306e\u63a5\u7d9a\u6642\u3001\u60c5\u5831\u304c\u306a\u3051\u308c\u3070\u3001<br \/>\n<span style=\"color: #0000ff;\">localhost\\SQLEXPRESS<\/span><br \/>\n<span style=\"color: #0000ff;\">Windows\u8a8d\u8a3c<br \/>\n<\/span>\u3067\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n<p>\u30fbSQL Server Management Studio(SSMS)<\/p>\n<p><span style=\"color: #0000ff;\">\u30bb\u30ad\u30e5\u30a3\u30c6\u30a3\uff1e\u30ed\u30b0\u30a4\u30f3\uff1esa\uff1e\u30d7\u30ed\u30d1\u30c6\u30a3\uff1e\u5168\u822c<\/span><br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a<\/p>\n<p><span style=\"color: #0000ff;\">\u30bb\u30ad\u30e5\u30a3\u30c6\u30a3\uff1e\u30ed\u30b0\u30a4\u30f3\uff1esa\uff1e\u30d7\u30ed\u30d1\u30c6\u30a3\uff1e\u72b6\u614b<\/span><br \/>\n\u30ed\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316<\/p>\n<p><span style=\"color: #0000ff;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u53f3\u30af\u30ea\u30c3\u30af\uff1e\u30d7\u30ed\u30d1\u30c6\u30a3\uff1e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/span><br \/>\nSQL Server\u8a8d\u8a3c\u3068Windows \u8a8d\u8a3c\u30e2\u30fc\u30c9<\/p>\n<p><span style=\"color: #0000ff;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u53f3\u30af\u30ea\u30c3\u30af\uff1e\u30d7\u30ed\u30d1\u30c6\u30a3\uff1e\u63a5\u7d9a<\/span><br \/>\n\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3092\u8a31\u53ef<\/p>\n<p>\u30fb\u81ea\u52d5\u8d77\u52d5<\/p>\n<p>services.msc<br \/>\n(\u3082\u3057\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408)SQL Server Browser\u3092\u81ea\u52d5\u3078<\/p>\n<p>\u30fbSQL Server\u69cb\u6210\u30de\u30cd\u30fc\u30b8\u30e3<br \/>\n<span style=\"color: #0000ff;\">C:\\Windows\\System32\\SQLServerManager15.msc<br \/>\n(\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u5834\u5408\u3001SQL Server xxx \u69cb\u6210\u30de\u30cd\u30fc\u30b8\u30e3\u30fc)<\/span><\/p>\n<p>SQLEXPRESS\u306e\u30d7\u30ed\u30c8\u30b3\u30eb<br \/>\n<span style=\"color: #0000ff;\">\u5171\u6709\u30e1\u30e2\u30ea\uff1e\u6709\u52b9<\/span><br \/>\n<span style=\"color: #0000ff;\">\u540d\u524d\u4ed8\u304d\u30d1\u30a4\u30d7\uff1e\u7121\u52b9<\/span><br \/>\n<span style=\"color: #0000ff;\">TCP\/IP\uff1e\u6709\u52b9<\/span><\/p>\n<p><span style=\"color: #0000ff;\">TCP\/IP\u30d7\u30ed\u30d1\u30c6\u30a3\uff1eIP\u30a2\u30c9\u30ec\u30b9\uff1eIPALL<\/span><br \/>\nTCP\u30dd\u30fc\u30c8\u30921433(\u4efb\u610f)<br \/>\nTCP\u52d5\u7684\u30dd\u30fc\u30c8\u3092\u7a7a\u767d<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a(\u30ed\u30fc\u30ab\u30eb\u306e\u5834\u5408)<\/p>\n<p>firewall.cpl<br \/>\n<span style=\"color: #0000ff;\">\u64cd\u4f5c\uff1e\u65b0\u3057\u3044\u898f\u5247\uff1e\u30dd\u30fc\u30c8\u6307\u5b9a\uff1eTCP\uff1e\u7279\u5b9a\u306e\u30ed\u30fc\u30ab\u30eb\u30dd\u30fc\u30c8(1433)\uff1e\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\uff1e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306e\u307f\u9078\u629e<\/span><\/p>\n<p>\u3053\u3053\u307e\u3067\u3084\u308b\u3068SSMS\u304b\u3089<br \/>\n<span style=\"color: #0000ff;\">sa<\/span><br \/>\n<span style=\"color: #0000ff;\">\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/span><br \/>\n\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3002<\/p>\n<h2>\u63a5\u7d9a\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u5bfe\u5fdc<\/h2>\n<p>\u300cSQL Server \u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u3001\u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u307e\u3057\u305f\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><span style=\"color: #0000ff;\">C:\\Windows\\System32\\SQLServerManager15.msc<br \/>\n(\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u5834\u5408\u3001SQL Server xxx \u69cb\u6210\u30de\u30cd\u30fc\u30b8\u30e3\u30fc)<\/span><br \/>\n<span style=\"color: #0000ff;\"><span style=\"color: #333333;\">TCP\/IP\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b<\/span><\/span><\/p>\n<p>\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u30ab\u30f3\u30de\u533a\u5207\u308a\u3002<br \/>\n\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u306fservices.msc\u304b\u3089\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6291\" src=\"\/wp-content\/uploads\/2016\/12\/00367_1-1.jpg\" alt=\"\" width=\"478\" height=\"290\" srcset=\"https:\/\/appbay.org\/wp-content\/uploads\/2016\/12\/00367_1-1.jpg 478w, https:\/\/appbay.org\/wp-content\/uploads\/2016\/12\/00367_1-1-300x182.jpg 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/p>\n<h2>\u30b5\u30fc\u30d3\u30b9\u306b\u3064\u3044\u3066<\/h2>\n<p><span style=\"color: #0000ff;\">SQL Server Browser<\/span><br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306eSQL Server\u3092\u81ea\u52d5\u691c\u51fa\u3002\u30ea\u30e2\u30fc\u30c8\u3067\u5fc5\u8981\u306a\u5834\u5408\u3082\u3002<\/p>\n<p><span style=\"color: #0000ff;\">SQL Server CEIP \u30b5\u30fc\u30d3\u30b9<\/span><br \/>\n\u30ab\u30b9\u30bf\u30de\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u5411\u4e0a\u30d7\u30ed\u30b0\u30e9\u30e0\u3002<\/p>\n<p><span style=\"color: #0000ff;\">SQL Server VSS Writer<\/span><br \/>\n\u30dc\u30ea\u30e5\u30fc\u30e0 \u30b7\u30e3\u30c9\u30a6 \u30b3\u30d4\u30fc \u30b5\u30fc\u30d3\u30b9\u3002<\/p>\n<p><span style=\"color: #0000ff;\">SQL Server \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8<\/span><br \/>\n\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3055\u308c\u305f\u30b8\u30e7\u30d6\u306e\u5b9f\u884c\u3002<\/p>\n<h2>\u5f25\u751f\u4f1a\u8a0817\u304b\u3089\u5229\u7528<\/h2>\n<p>\u4e0a\u8a18\u306eSQL Server Management Studio\u304b\u3089\u8a2d\u5b9a\u3057\u3001<br \/>\n<span style=\"color: #0000ff;\">\u30e6\u30fc\u30b6\u30fc\u540d\uff1asa<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/span><br \/>\n\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u72b6\u614b\u3002<\/p>\n<p>\u30fb\u8a2d\u5b9a<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u5f25\u751f\u4f1a\u8a08\u3067\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u65b0\u898f\u4f5c\u6210\u3092\u9032\u3081\u3066\u3044\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u753b\u9762\u3067\u3001<br \/>\n<span style=\"color: #0000ff;\">\u4fdd\u5b58\u5834\u6240\uff1alocalhost\\SQLEXPRESS<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30e6\u30fc\u30b6\u30fc\u540d\uff1asa<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/span><br \/>\n\u3068\u3059\u308c\u3070OK\u3002<\/p>\n<p>\uff0a\uff0a\uff0a<\/p>\n<p>SQL Server\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u305f\u5834\u5408<br \/>\n\u63a5\u7d9a\u3067\u304d\u306a\u3044\u5834\u5408\u3002<br \/>\n\u63a5\u7d9a\u3067\u304d\u308b\u3051\u3069\u30c7\u30fc\u30bf\u304c\u306a\u3044\u5834\u5408\u3002<br \/>\n\u306e\uff12\u901a\u308a\u3002(\u30a8\u30e9\u30fc\u306e\u8868\u793a\u304c\u9055\u3046)<\/p>\n<p><span style=\"color: #0000ff;\">\u30d5\u30a1\u30a4\u30eb\uff1e\u958b\u304f\uff1e\u53c2\u7167\u5148\u306e\u8a2d\u5b9a\uff1e\u7de8\u96c6<\/span><br \/>\n\u304b\u3089\u4fee\u6b63\u3067\u304d\u308b\u304c\u3001\u30c7\u30fc\u30bf\u81ea\u4f53\u304c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001<br \/>\n<span style=\"color: #0000ff;\">\u30d5\u30a1\u30a4\u30eb\uff1e\u65b0\u898f\u4f5c\u6210\uff1e\u65b0\u898f\u306b\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b<\/span><br \/>\n\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p>\u30fb\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u4e2d\u306b\u3001\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u30a8\u30e9\u30fc\uff15\u306e\u30a8\u30e9\u30fc\u304c\u3067\u308b\u5834\u5408\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u304b\u3089SQL Server (SQLEXPRESS)\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u958b\u3044\u3066\u3001\u30ed\u30b0\u30aa\u30f3\u3092\u30ed\u30fc\u30ab\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4\u3002\u5bfe\u8a71\u30b5\u30fc\u30d3\u30b9\u3082\u8a31\u53ef\u3002<\/p>\n<p>\u30fb\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u5fa9\u5143<\/p>\n<p><span style=\"color: #0000ff;\">\u30d5\u30a1\u30a4\u30eb\uff1e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u306e\u5fa9\u5143\uff1e\u5bfe\u8c61\u306eKB17\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e<\/span><br \/>\n\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u306e\u5fa9\u5143\u3068\u3044\u3046\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u308b\u3002<br \/>\n<span style=\"color: #0000ff;\">\u5fa9\u5143\u5148\uff1e\u53c2\u7167\u5148\uff1e\u53c2\u7167\u5148\u306e\u8a2d\u5b9a\uff1e\u30b5\u30fc\u30d0\u30fc\u306e\u8ffd\u52a0<br \/>\n<span style=\"color: #333333;\">\u3092\u5b9f\u884c\u3057\u3001<\/span><br \/>\n\u4fdd\u5b58\u5834\u6240\uff1alocalhost\\SQLEXPRESS<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u6307\u5b9a\u3059\u308b\uff1e<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30e6\u30fc\u30b6\u30fc\u540d\uff1asa<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<br \/>\n<\/span>\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u30fb\u305d\u306e\u4ed6<\/p>\n<p>Windows\u306e\u6a5f\u80fd\u304b\u3089.NET3.5.1\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059\u3068\u8d77\u52d5\u3057\u306a\u3044\u3002<\/p>\n<h2>\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30fb\u624b\u52d5\u524a\u9664<\/p>\n<p><span style=\"color: #0000ff;\">Win10\u8a2d\u5b9a\uff1e\u30a2\u30d7\u30ea\uff1e\u30a2\u30d7\u30ea\u3068\u6a5f\u80fd(\u307e\u305f\u306fappwiz.cpl)<\/span><br \/>\n\u304b\u3089<span style=\"color: #0000ff;\"><br \/>\nMicrosoft SQL Server xxx Native Client\uff1a<\/span><span style=\"color: #0000ff;\">OLE DB\u30fbODBC\u30c9\u30e9\u30a4\u30d0\u30fc(\u975e\u63a8\u5968)<br \/>\nMicrosoft SQL Server xxx LocalDB\uff1a\u30ea\u30e2\u30fc\u30c8\u6a5f\u80fd\u3092\u7701\u7565\u3057\u305f\u7c21\u7565\u7248<br \/>\nMicrosoft ODBC Driver xx for SQL Server\uff1aODBC\u30c9\u30e9\u30a4\u30d0\u30fc<br \/>\nMicrosoft OLE DB Driver for SQL Server\uff1aOLE DB\u30c9\u30e9\u30a4\u30d0\u30fc<\/span><span style=\"color: #0000ff;\"><br \/>\n<\/span><span style=\"color: #0000ff;\">Microsoft SQL Server xxx T-SQL \u8a00\u8a9e\u30b5\u30fc\u30d3\u30b9<br \/>\n<\/span>\u3092\u524a\u9664\u3059\u308b\u3002\u4ee5\u4e0b2\u3064\u306f\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u3002<span style=\"color: #0000ff;\"><br \/>\nMicrosoft SQL Server xxx Setup (English)<br \/>\nMicrosoft SQL Server xxx (64 \u30d3\u30c3\u30c8)<\/span><\/p>\n<p><span style=\"color: #0000ff;\">Microsoft SQL Server xxx Native Client<\/span><span style=\"color: #0000ff;\"><br \/>\nMicrosoft SQL Server xxx LocalDB<br \/>\nSQL Server xxx \u7528 Microsoft System CLR Types<br \/>\n<\/span>\u306a\u3069\u306f\u3001SQL Server Management Studio\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u5165\u308b\u3002<\/p>\n<p>\uff0a\uff0a\uff0a<\/p>\n<p>\u30fbmsiexec\u524a\u9664<\/p>\n<p><span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall<\/span><br \/>\n<span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall<\/span><br \/>\n<span style=\"color: #0000ff;\">DisplayName<\/span><br \/>\n&#8220;SQL Server xxx&#8221;\u304c\u542b\u307e\u308c\u308b\u30ad\u30fc(GUID)\u3092\u30e1\u30e2\u3057\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3002<\/p>\n<p><span style=\"color: #0000ff;\">msiexec \/x {GUID}<\/span><\/p>\n<pre class=\"lang:default decode:true\">msiexec \/x {0FB552DD-543E-48E7-A6F4-2F8D82723C6A}\r\nmsiexec \/x {17DCED0E-5B27-453A-B2B4-E487B869B28A}\r\nmsiexec \/x {2129312E-5204-4F3A-9039-B6D34DBB00FB}\r\nmsiexec \/x {28ED6838-D8E5-454C-A813-12C5EB447CAB}\r\nmsiexec \/x {6213D6CB-D258-47A3-B1A0-EE1E5C080DCF}\r\nmsiexec \/x {814D5077-C93F-42E2-B875-717007C186B9}\r\nmsiexec \/x {8DDAEBCA-4267-4E16-9FE0-D87F21D36891}\r\nmsiexec \/x {9198AD57-6396-4DF8-8D0C-20EA764F7986}\r\nmsiexec \/x {D057EE39-361E-4773-8DB9-FE9AD65A1C78}\r\nmsiexec \/x {D459615B-83B0-408F-8F39-6CC07C277BA6}\r\nmsiexec \/x {DE5B7937-D5B5-4157-BC30-BB87F021CFF0}\r\nmsiexec \/x {FD730873-33D1-4D1F-9AE0-E259586F8827}<\/pre>\n<p>\u203bPowerShell\u3067\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408<\/p>\n<pre class=\"lang:ps decode:true\">Get-ChildItem \"HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\" | ForEach-Object {\r\n  if ($_.GetValue(\"DisplayName\") -match \"SQL Server\"){\r\n    $_.GetValue(\"DisplayName\") + \"`n\" + $_.Name + \"`n\"\r\n  }\r\n}\r\n\r\nGet-ChildItem \"HKLM:SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\" | ForEach-Object {\r\n  if ($_.GetValue(\"DisplayName\") -match \"SQL Server\"){\r\n    $_.GetValue(\"DisplayName\") + \"`n\" + $_.Name + \"`n\"\r\n  }\r\n}<\/pre>\n<p>\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u3089\u6307\u793a\u901a\u308a\u306e\u9806\u756a\u3067\u51e6\u7406\u3059\u308b\u3002<\/p>\n<p>\u30fb\u30ec\u30b8\u30b9\u30c8\u30ea\u524a\u9664<\/p>\n<p><span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Microsoft<\/span><br \/>\n<span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Wow6432Node\\Microsoft<\/span><br \/>\n&#8220;Microsoft SQL&#8221;\u3001&#8221;MSSQL&#8221;<br \/>\n\u3092\u542b\u3080\u30ad\u30fc\u3092\u524a\u9664<\/p>\n<p><span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Classes\\Installer\\Products<\/span><br \/>\n<span style=\"color: #0000ff;\">ProductName\u00a0<\/span><br \/>\n&#8220;SQL Server&#8221;<br \/>\n\u3092\u542b\u3080\u30ad\u30fc\u3092\u524a\u9664<\/p>\n<p>\u203bPowerShell\u3067\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408<\/p>\n<pre class=\"lang:ps decode:true\">Get-ChildItem \"HKLM:SOFTWARE\\Classes\\Installer\\Products\" | ForEach-Object {\r\n  if ($_.GetValue(\"ProductName\") -match \"SQL Server\"){\r\n    $_.GetValue(\"ProductName\") + \"`n\" + $_.Name + \"`n\"\r\n  }\r\n}<\/pre>\n<p>\uff0a\uff0a\uff0a<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001URL\u306e\u30b3\u30de\u30f3\u30c9\u305d\u306e\u307e\u307e<br \/>\n<span style=\"color: #0000ff;\">https:\/\/docs.microsoft.com\/ja-jp\/archive\/blogs\/jpsql\/sql-server-4<\/span><\/p>\n<p>\u30fbGAC\u524a\u9664<\/p>\n<pre class=\"lang:default decode:true\">if exist \"%windir%\\assembly\\GAC\\*SQLServer*\" del \/s \/q \/f \"%windir%\\assembly\\GAC\\*SQLServer*\"\r\nif exist \"%windir%\\assembly\\GAC_32\\*SQLServer*\" del \/s \/q \/f \"%windir%\\assembly\\GAC_32\\*SQLServer*\"\r\nif exist \"%windir%\\assembly\\GAC_64\\*SQLServer*\" del \/s \/q \/f \"%windir%\\assembly\\GAC_64\\*SQLServer*\"\r\nif exist \"%windir%\\assembly\\GAC_MSIL\\*SQLServer*\" del \/s \/q \/f \"%windir%\\assembly\\GAC_MSIL\\*SQLServer*\"<\/pre>\n<p>\u30fb\u30d5\u30a9\u30eb\u30c0\u3001\u30d5\u30a1\u30a4\u30eb\u524a\u9664<\/p>\n<pre class=\"lang:default decode:true \">if exist \"%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\Microsoft SQL Server\" rmdir \/S \/Q \"%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\Microsoft SQL Server\"\r\nif exist \"%USERPROFILE%\\Application Data\\Microsoft\\Microsoft SQL Server\" rmdir \/S \/Q \"%USERPROFILE%\\Application Data\\Microsoft\\Microsoft SQL Server\"\r\nif exist \"%USERPROFILE%\\All Users\\Application Data\\Microsoft\\Microsoft SQL Server\" rmdir \/S \/Q \"%USERPROFILE%\\All Users\\Application Data\\Microsoft\\Microsoft SQL Server\"\r\nif exist \"%ProgramFiles%\\Microsoft SQL Server\" rmdir \/S \/Q \"%ProgramFiles%\\Microsoft SQL Server\"\r\nif exist \"%ProgramFiles(x86)%\\Microsoft SQL Server\" rmdir \/S \/Q \"%ProgramFiles(x86)%\\Microsoft SQL Server\"<\/pre>\n<p>\u203b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a9\u30eb\u30c0\u304c\u5225\u306b\u3042\u308b\u5834\u5408\u624b\u52d5\u3067\u524a\u9664\u3002<\/p>\n<p>\uff0a\uff0a\uff0a<\/p>\n<p>\u6700\u7d42\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u304c\u6b8b\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u5b9f\u4f53\u3092\u524a\u9664\u3057\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\n<span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall<\/span><br \/>\n<span style=\"color: #0000ff;\">HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall<\/span><br \/>\n\u3067GUID\u306e\u30ad\u30fc\u3092\u624b\u52d5\u3067\u524a\u9664\u3059\u308c\u3070\u30a8\u30f3\u30c8\u30ea\u30fc\u306f\u6d88\u3048\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u7d9a\u6587\u5b57\u5217(\u30d7\u30ed\u30d0\u30a4\u30c0) \u30fbOLE DB (\u975e\u63a8\u5968)SQL Server Native Client(SQLNCLI) (\u975e\u63a8\u5968)Microsoft OLE DB Provider for SQL Server(SQLO &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=367\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;SQL Server \u30e1\u30e2&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-367","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=367"}],"version-history":[{"count":55,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":6292,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions\/6292"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}