[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThis content outlines the process of creating a source connection profile for SQL Server in Google Cloud's Database Migration Service.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a connection profile through the Google Cloud console by navigating to the Connection profiles page, choosing "Source" as the profile role, and filling in the required fields like profile name, ID, region, and storage bucket information.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, the connection profile can be created using the \u003ccode\u003egcloud\u003c/code\u003e command-line tool, with options to specify the profile ID, name, region, and the associated Cloud Storage bucket, with various examples for different operating systems.\u003c/p\u003e\n"],["\u003cp\u003eRunning the optional connection test verifies that the details provided are sufficient for the Database Migration Service to reach the data before the connection profile creation is finalized.\u003c/p\u003e\n"]]],[],null,["# Create a source connection profile\n\nTo create a source connection profile, follow these steps: \n\n### Console\n\n1. In the Google Cloud console, go to the **Connection profiles** page.\n\n [Go to Connection profiles](https://console.cloud.google.com/dbmigration/connection-profiles)\n2. Click **Create profile**.\n3. On the **Create a connection profile** page, from the **Profile role** list, select **Source**.\n4. From the **Database engine** list, select **SQL Server**.\n5. Supply the following information for your connection profile:\n - Connection profile name.\n - Connection profile ID.\n - Region.\n - The Cloud Storage bucket that contains [the parent database folder](/database-migration/docs/sqlserver/storage-buckets) where you create the full, diff, and logs folders (that hold the full backup, differential backup, and transaction log files).\n\n For more information about connection profile fields, see\n [Connection profiles overview](/database-migration/docs/sqlserver/about-connection-profiles).\n6. Optional: In the **Test connection profile** section, click **Run test** .\n\n Database Migration Service performs a quick check to verify that\n the connection details you supplied are sufficient to reach\n your data.\n7. Click **Create** at the bottom of the page.\n\n The **Connection profiles** page appears, and the newly\n created connection profile is displayed.\n\n### gcloud\n\nThis sample uses the optional `--no-async` flag so that all operations\nare performed synchronously. This means that some commands might take\na while to complete. You can skip the `--no-async` flag to run commands asynchronously.\nIf you do, you need to use the\n[`gcloud database-migration operations describe`](/sdk/gcloud/reference/database-migration/migration-jobs/describe)\ncommand to verify if your operation is successful.\n\n\nBefore using any of the command data below,\nmake the following replacements:\n\n- \u003cvar class=\"edit\" scope=\"CONNECTION_PROFILE_ID\" translate=\"no\"\u003eCONNECTION_PROFILE_ID\u003c/var\u003e with a machine-readable identifier for your connection profile.\n- \u003cvar class=\"edit\" scope=\"REGION\" translate=\"no\"\u003eREGION\u003c/var\u003e with the identifier of the region where you want to save the connection profile.\n- \u003cvar class=\"edit\" scope=\"CONNECTION_PROFILE_NAME\" translate=\"no\"\u003eCONNECTION_PROFILE_NAME\u003c/var\u003e with a human-readable name for your connection profile. This value is displayed in Database Migration Service in the Google Cloud console.\n- \u003cvar class=\"edit\" scope=\"SOURCE_STORAGE_BUCKET_NAME\" translate=\"no\"\u003eSOURCE_STORAGE_BUCKET_NAME\u003c/var\u003e with the Cloud Storage [bucket name](/storage/docs/bucket-metadata) that contains the parent database folder where you create the full, diff, and logs folders (that hold the full backup, differential backup, and transaction log files).\n\nFor more information on these values, see [Connection profiles overview](/database-migration/docs/sqlserver/about-connection-profiles).\n\n\nExecute the\n\nfollowing\n\ncommand:\n\n#### Linux, macOS, or Cloud Shell\n\n**Note:** Ensure you have initialized the Google Cloud CLI with authentication and a project by running either [gcloud init](/sdk/gcloud/reference/init); or [gcloud auth login](/sdk/gcloud/reference/auth/login) and [gcloud config set project](/sdk/gcloud/reference/config/set). \n\n```bash\ngcloud database-migration connection-profiles \\\ncreate sqlserver CONNECTION_PROFILE_ID \\\n --no-async\n --display-name=CONNECTION_PROFILE_NAME \\\n --gcs-bucket=SOURCE_STORAGE_BUCKET_NAME \\\n --region=REGION\n```\n\n#### Windows (PowerShell)\n\n**Note:** Ensure you have initialized the Google Cloud CLI with authentication and a project by running either [gcloud init](/sdk/gcloud/reference/init); or [gcloud auth login](/sdk/gcloud/reference/auth/login) and [gcloud config set project](/sdk/gcloud/reference/config/set). \n\n```bash\ngcloud database-migration connection-profiles `\ncreate sqlserver CONNECTION_PROFILE_ID `\n --no-async\n --display-name=CONNECTION_PROFILE_NAME `\n --gcs-bucket=SOURCE_STORAGE_BUCKET_NAME `\n --region=REGION\n```\n\n#### Windows (cmd.exe)\n\n**Note:** Ensure you have initialized the Google Cloud CLI with authentication and a project by running either [gcloud init](/sdk/gcloud/reference/init); or [gcloud auth login](/sdk/gcloud/reference/auth/login) and [gcloud config set project](/sdk/gcloud/reference/config/set). \n\n```bash\ngcloud database-migration connection-profiles ^\ncreate sqlserver CONNECTION_PROFILE_ID ^\n --no-async\n --display-name=CONNECTION_PROFILE_NAME ^\n --gcs-bucket=SOURCE_STORAGE_BUCKET_NAME ^\n --region=REGION\n```\n\nYou should receive a response similar to the following:\n\n```\nWaiting for connection profile [CONNECTION_PROFILE_ID]\nto be created with [OPERATION_ID]\n\nWaiting for operation [OPERATION_ID] to complete...done.\n\nCreated connection profile CONNECTION_PROFILE_ID [OPERATION_ID]\n```"]]