{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Microsoft SQL Server インポート連携","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"microsoft-sql-server-インポート連携","__idx":0},"children":["Microsoft SQL Server インポート連携"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/int/microsoft-sql-server-tables-export-integration"},"children":["Microsoft SQL Server Tables Export Integrationについて詳しく見る"]},"。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この記事では、Microsoft SQL Server のデータコネクタの使用方法について説明します。このコネクタを使用すると、Microsoft SQL Server から Treasure Data に直接データをインポートできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Microsoft SQL Server からデータをインポートする方法のサンプルワークフローについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/treasure-boxes/tree/master/td_load/sql_server"},"children":["Treasure Boxes"]}," をご覧ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Data の基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Microsoft SQL Server の基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["リモート"]},"で実行されている Microsoft SQL Server インスタンス(例: RDS 上)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サポートされている-sql-server-のバージョン","__idx":2},"children":["サポートされている SQL Server のバージョン"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2022 (Driver 13.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2019 (Driver 13.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2017 (Driver 13.2.x, Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2016 (Driver 13.2.x, Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2014 (Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2012 (Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Microsoft SQL Server 2008 R2 (Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Azure SQL Database (Driver 13.2.x, Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Azure SQL Data Warehouse または Parallel Data Warehouse (Driver 13.2.x, Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• Azure SQL Managed Instance (Extended Private Preview) (Driver 13.2.x, Driver 7.2.x)"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用して接続を作成する","__idx":3},"children":["Treasure コンソール を使用して接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソール を使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成する","__idx":4},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ接続を設定する際は、連携にアクセスするための認証情報を提供します。Treasure Data では、認証を設定してからソース情報を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrations Hub -> Catalog に移動し、Microsoft SQL Server を検索して選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/mssqltile.8e9463b5dd47f74d1593fc06d953a8d76ffb9dc5713817e1c908f273f687c4d7.53f040ef.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_34.0eccea67146d6dfae1bc7c365762112760f8232e83fac86765e8f1ec0270c31f.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Microsoft SQL Server へのアクセスに必要なホスト名、ポート、ユーザー名、パスワードなどの必要な認証情報を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_35.375b2e45d46508591169dd358db6699df178945cf30765a66a5babb87c22bd93.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["encrypt=true オプションを追加し、証明書が検証できない場合は、証明書検証をバイパスするために trustServerCertificate=true オプションを追加する必要があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Continue"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しい Microsoft SQL Server 接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Source"]}," を選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"microsoft-sql-server-データを-treasure-data-に転送する","__idx":5},"children":["Microsoft SQL Server データを Treasure Data に転送する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証された接続を作成したので、次にソース接続を作成します。"," ","詳細を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/source_creation.1cfd1fbc782226c2d3d3bb8c924bfdb4d3a5e05150246ef8baf1587b110c78d8.53f040ef.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["スキーマを指定する場合は、次のように ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use custom SELECT query"]}," を選択します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/source_creation_custom_query.287c59ccb5662f1b29064229c76710b381f11af70d4bf85a446beb4fb00f0455.53f040ef.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プレビュー","__idx":6},"children":["プレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データの",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/about-data-preview"},"children":["プレビュー"]},"が表示されます。変更を行う場合は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Advanced Settings"]}," を選択し、そうでない場合は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_3a.e90756b663ed5316dccd5c1b0455799edbfbd7705e739063bd5864021001d397.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ターゲットデータベースとテーブルを選択する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データを転送する既存のデータベースとテーブルを選択するか、新しく作成します:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_3c.2a6795708f6a8d2c9d4a38ee05abe2da9997c2c63d5838cb1b8e8801f1b2b4d1.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいデータベースを作成し、データベースに名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new table"]}," についても同様の手順を実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のテーブルにレコードを**追加(append)",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["するか、既存のテーブルを"]},"置換(replace)**するかを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトのキーではなく、別の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パーティションキーシード"]},"を設定する場合は、指定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール設定","__idx":7},"children":["スケジュール設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," タブでは、1回限りの転送を指定するか、自動的に繰り返される転送をスケジュールできます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Once now"]}," を選択した場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Start Transfer"]}," を選択します。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Repeat…"]}," を選択した場合は、スケジュールオプションを指定してから ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule Transfer"]}," を選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_3d.95885abce5169b2092d105ae287bdf32013f54ddee46dfe3ac7d3287045bd955.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ソースコネクタに名前を付けます。コネクタを保存するか、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create & Run"]}," を選択できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/unadjustednonraw_thumb_3e.a2ec3743addb1fbec57860c783f264d5605d09d7441112eb2d39f52854f54fa0.53f040ef.jpg","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用して-microsoft-sql-server-接続を作成する","__idx":8},"children":["コマンドラインを使用して Microsoft SQL Server 接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI を使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-コマンドのインストール","__idx":9},"children":["'td' コマンドのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]}," をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"シード設定ファイルの作成-seedyml","__idx":10},"children":["シード設定ファイルの作成 (seed.yml)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Microsoft SQL Server のアクセス情報を含む ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seed.yml"]}," を準備します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: sqlserver\n  host: sqlserver_host_name\n  port: 1433\n  user: test_user\n  password: test_password\n  driver_version: 7.2.x\n  database: test_database\n  table: test_table\nout:\n  mode: replace\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例では、テーブル内のすべてのレコードをダンプします。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/embulk/embulk-input-jdbc/tree/master/embulk-input-sqlserver"},"children":["追加パラメータ"]},"を使用して、より詳細な制御を行うことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["利用可能な out モードの詳細については、以下の付録を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"フィールドの推測-loadyml-の生成","__idx":11},"children":["フィールドの推測 (load.yml の生成)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次に connector:guess を使用します。このコマンドは、ターゲットデータを自動的に読み取り、データ形式をインテリジェントに推測します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:guess seed.yml -o load.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.yml を開くと、ファイル形式、エンコーディング、カラム名、型などを含む、推測されたファイル形式定義が表示されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-インポートされるデータのプレビュー","__idx":12},"children":["オプション: インポートされるデータのプレビュー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:previewコマンドを使用して、インポートされるデータをプレビューできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:preview load.yml\n+---------+--------------+----------------------------------+------------+---------------------------+\n| id:long | name:string  | description:string               | price:long | created_at:timestamp      |\n+---------+--------------+----------------------------------+------------+---------------------------+\n| 1       | \"item name1\" | \"26e3c3625366591bc2ffc6e262976e\" | 2419       | \"2014-02-16 13:01:06 UTC\" |\n| 2       | \"item name2\" | \"3e9dd9474dacb78afd607f9e0a3366\" | 1298       | \"2014-05-24 13:59:26 UTC\" |\n| 3       | \"item name3\" | \"9b6c9e4a140284d3951681e9e047f6\" | 9084       | \"2014-06-21 00:18:21 UTC\" |\n| 4       | \"item name4\" | \"a11faf5e63c1b02a3d4c2b5cbb7331\" | 669        | \"2014-05-02 03:44:08 UTC\" |\n| 6       | \"item name6\" | \"6aa15471c373ddc8a6469e1c918f98\" | 3556       | \"2014-03-29 08:30:23 UTC\" |\n+---------+--------------+----------------------------------+------------+---------------------------+\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ロードジョブの実行","__idx":13},"children":["ロードジョブの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最後に、ロードジョブを送信します。ジョブはデータサイズに応じて実行に数時間かかる場合があります。ユーザーはデータが保存されるデータベースとテーブルを指定する必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのストレージは",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-partitioning-in-treasure-data"},"children":["時間でパーティション化"]},"されているため、--time-columnオプションを指定することをお勧めします。このオプションが指定されていない場合、Data Connectorは最初のlong型またはtimestamp型のカラムをパーティション化時間として選択します。--time-columnで指定するカラムの型は、long型またはtimestamp型のいずれかである必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データに時間カラムがない場合は、add_timeフィルターオプションを使用して追加できます。詳細は",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/add_time-filter-function"},"children":["add_timeフィルタープラグイン"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上記のコマンドは、*database(td_sample_db)",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["と"]},"table(td_sample_table)*がすでに作成されていることを前提としています。TDにデータベースまたはテーブルが存在しない場合、このコマンドは成功しないため、データベースとテーブルを",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/data-management"},"children":["手動で"]},"作成するか、td connector:issueコマンドで--auto-create-tableオプションを使用してデータベースとテーブルを自動作成してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:issue load.yml --database td_sample_db --table td_sample_table --time-column created_at --auto-create-table\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["\"--time-column\"オプションで、時間フォーマットカラムを\"パーティショニングキー\"に割り当てることができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テーブル内のカラムを指定することで、incremental_columnsとlast_recordオプションを利用してレコードを増分的にロードできます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: sqlserver\n  host: sqlserver_host_name\n  port: 1433\n  user: test_user\n  password: test_password\n  driver_version: 13.2.x\n  database: test_database\n  table: test_table\n  incremental: true\n  incremental_columns: [id, sub_id]\n  last_record: [10000, 300]\nout:\n  mode: append\n  exec: {}\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["その後、プラグインは自動的にクエリを再作成し、内部で値をソートします。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"# when last_record wasn't given\nSELECT * FROM(\n    ...original query is here\n)\nORDER BY id, sub_id\n\n::: terminal\n# when last_record was given\nSELECT * FROM(\n    ...original query is here\n)\nWHERE id > 10000 OR (id = 10000 AND sub_id > 300)\nORDER BY id, sub_id\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.treasuredata.com/smart/project-product-documentation/scheduling-jobs-using-td-console"},"children":["スケジュール実行"]},"と併用する場合、プラグインは自動的にlast_recordを生成し、内部で保持します。次回のスケジュール実行時にそれを使用できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  type: sqlserver\n  ...\nout:\n  ...\n\nConfig Diff\n---\nin:\n  last_record:\n  - 20000\n  - 400\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["incremental: true"]},"を設定した場合、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query"]},"オプションは使用できません。"," ","incremental_columnsとしてサポートされるのは、文字列と整数のみです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| --- |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュール実行","__idx":14},"children":["スケジュール実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["定期的なMicrosoft SQL Serverインポートのために、定期的なData Connector実行をスケジュールできます。高可用性を確保するために、スケジューラーを慎重に設定しています。この機能を使用することで、ローカルデータセンターでcronデーモンを実行する必要がなくなります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["td connector:createコマンドを使用して、新しいスケジュールを作成できます。スケジュールの名前、cron形式のスケジュール、データが保存されるデータベースとテーブル、およびData Connector設定ファイルが必要です。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$ td connector:create \\\n    daily_sqlserver_import \\\n    \"10 0 * * *\" \\\n    td_sample_db \\\n    td_sample_table \\\n    load.yml\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cron"]},"パラメータは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@hourly"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@daily"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@monthly"]},"の3つのオプションも受け入れます。 | デフォルトでは、スケジュールはUTCタイムゾーンで設定されます。-tまたは--timezoneオプションを使用して、タイムゾーンでスケジュールを設定できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone"]},"オプションは、'Asia/Tokyo'、'America/Los_Angeles'などの拡張タイムゾーン形式のみをサポートします。PST、CSTなどのタイムゾーンの略語は*サポートされておらず*、予期しないスケジュールになる可能性があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"付録","__idx":15},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"outプラグインのモード","__idx":16},"children":["outプラグインのモード"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["load.ymlのoutセクションでファイルインポートモードを指定できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"appendデフォルト","__idx":17},"children":["append（デフォルト）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これはデフォルトモードで、レコードはターゲットテーブルに追加されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: append\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"replacetd-01110以降","__idx":18},"children":["replace（td 0.11.10以降）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このモードは、ターゲットテーブルのデータを置き換えます。ターゲットテーブルに対して行われた手動のスキーマ変更は、このモードで維持されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"in:\n  ...\nout:\n  mode: replace\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"詳細情報","__idx":19},"children":["詳細情報"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/embulk/embulk-input-jdbc/tree/master/embulk-input-sqlserver"},"children":["Microsoft SQL Server Data Connectorのオプション一覧"]}]}]}]},"headings":[{"value":"Microsoft SQL Server インポート連携","id":"microsoft-sql-server-インポート連携","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"サポートされている SQL Server のバージョン","id":"サポートされている-sql-server-のバージョン","depth":2},{"value":"Treasure コンソール を使用して接続を作成する","id":"treasure-コンソール-を使用して接続を作成する","depth":2},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":3},{"value":"Microsoft SQL Server データを Treasure Data に転送する","id":"microsoft-sql-server-データを-treasure-data-に転送する","depth":3},{"value":"プレビュー","id":"プレビュー","depth":3},{"value":"スケジュール設定","id":"スケジュール設定","depth":3},{"value":"コマンドラインを使用して Microsoft SQL Server 接続を作成する","id":"コマンドラインを使用して-microsoft-sql-server-接続を作成する","depth":2},{"value":"'td' コマンドのインストール","id":"td-コマンドのインストール","depth":3},{"value":"シード設定ファイルの作成 (seed.yml)","id":"シード設定ファイルの作成-seedyml","depth":3},{"value":"フィールドの推測 (load.yml の生成)","id":"フィールドの推測-loadyml-の生成","depth":3},{"value":"オプション: インポートされるデータのプレビュー","id":"オプション-インポートされるデータのプレビュー","depth":3},{"value":"ロードジョブの実行","id":"ロードジョブの実行","depth":3},{"value":"スケジュール実行","id":"スケジュール実行","depth":3},{"value":"付録","id":"付録","depth":3},{"value":"outプラグインのモード","id":"outプラグインのモード","depth":4},{"value":"append（デフォルト）","id":"appendデフォルト","depth":4},{"value":"replace（td 0.11.10以降）","id":"replacetd-01110以降","depth":4},{"value":"詳細情報","id":"詳細情報","depth":2}],"frontmatter":{"seo":{"title":"Microsoft SQL Server インポート連携"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/microsoft-sql-server-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}