Jeff Sodeman
  • Home
  • Dev Notes

Fix SQL DECLARE variable use in DataGrip

Last updated on  Jun 11, 2025

In 2025.1.3 you can't execute this script by default

DECLARE @id INT = 1;

SELECT * FROM Users WHERE id = @id;
GO

In Settings > Query Execution > User Parameters, disable the pattern (?<![@<])@[a-zA-z0-9_]+ 

Previous Using MirageJS to fake a .NET API
Next Change Scratch files location in Rider and Webstorm
Jeff Sodeman © 2025
Powered by Ghost