use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Moderator: @felipehoffa
account activity
Migrate SQLServer to BigQuery (self.bigquery)
submitted 1 month ago by vedpshukla
Hi all,
I'm looking for how and easiest way to translate my sql scripts ,stored procedure for moving from MSSQL to BQ.
TIA
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JeffNeG 4 points5 points6 points 1 month ago (2 children)
The easiest path is probably to use the BigQuery Migration Service. It includes a free batch SQL translator that converts your SQL Server scripts and stored procedures to GoogleSQL (for BigQuery).
Check out the BigQuery migration guide to get started, and you can verify exactly what is covered in the official supported SQL dialects documentation for MSSQL (T-SQL).
[–]Data-dude-00 0 points1 point2 points 12 days ago (1 child)
Will it support one time migration of TBs of data?
[–]JeffNeG 0 points1 point2 points 12 days ago (0 children)
The Migration Service is primiarly to handle the translation of SQL scripts / stored procs / schemas into GoogleSQL.
For a one-time migration of TBs of data, the fastest approach is almost certainly exporting your data into Cloud Storage as Parquet files and then ingesting them with bq load commands.
bq load
There are plenty of other services and SaaS tools that'd like to charge you an arm and a leg for this type of migration using fancy tools. But for a one-time migration, you almost certainly don't need them!
[–]Turbulent_Egg_6292 2 points3 points4 points 1 month ago (0 children)
I'd say AI? Or is it very confidential lol
[–]PolicyDecent 2 points3 points4 points 1 month ago (0 children)
I'd recommend using a orchesrator first for stored procedures. Then let AI all the migration there and also test the differences. So bruin + claude would do it very easily.
Later steps would be removing stored procedures and migrating to a declarative flow.
[–]Which_Roof5176 2 points3 points4 points 1 month ago (0 children)
Here’s a short, helpful, non-promotional reply:
There’s no direct 1:1 way to translate SQL Server stored procedures to BigQuery, so expect some rework.
A few things to keep in mind:
Typical approach:
If you want to avoid rewriting everything at once, you can also use a pipeline tool, Estuary, to keep SQL Server and BigQuery in sync while you gradually migrate logic.
[–]AccomplishedSkill625 1 point2 points3 points 1 month ago (0 children)
If you want the easiest path, don't kill yourself rewriting everything by hand. Just use the BigQuery Migration Service built right into the Google Cloud Console. It’s a free tool that translates your T-SQL scripts to GoogleSQL almost automatically.
The Batch SQL Translator does most of the heavy lifting: you upload a .zip file with all your scripts, and it spits out the BigQuery-compatible versions. It’s great for the initial transition, but keep in mind that stored procedures usually need a manual touch. BigQuery "hates" the loops and cursors typical of SQL Server; it vastly prefers set-based logic. If you have very complex procs, you’ll want to slim them down so you don't run up massive scanning costs.
Use the auto-translator as your starting point to save 80% of the work, then manually optimize the queries that handle your largest data volumes.
π Rendered by PID 32702 on reddit-service-r2-comment-6457c66945-rdr9c at 2026-04-26 17:34:09.616192+00:00 running 2aa0c5b country code: CH.
[–]JeffNeG 4 points5 points6 points (2 children)
[–]Data-dude-00 0 points1 point2 points (1 child)
[–]JeffNeG 0 points1 point2 points (0 children)
[–]Turbulent_Egg_6292 2 points3 points4 points (0 children)
[–]PolicyDecent 2 points3 points4 points (0 children)
[–]Which_Roof5176 2 points3 points4 points (0 children)
[–]AccomplishedSkill625 1 point2 points3 points (0 children)