Make -q and -i work together #206
Closed
0x7FFFFFFFFFFFFFFF
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Thanx for opening the issue! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, both
sqlcmd
andgo-sqlcmd
don't allow you to specify-q
and-i
options together. Below is the output of both commands.If this is possible, it will be very useful. In my case, I have a huge file
test.sql
that is not practical to open in SSMS. What I want is to check its syntax, just like what we normally do by clicking the Parse toolbar button in SSMS. What SSMS actually does is run the commandSET PARSEONLY ON
before your actually SQL code. Ifgo-sqlcmd
can allow us to execute a custom command and then an SQL file, it will basically allow us to parse huge SQL files without having to prepend the literal textSET PARSEONLY ON
at the beginng of the file. This feature might be useful in some other cases, too. Hope you can consider adding this. Thanks.Beta Was this translation helpful? Give feedback.
All reactions