Open file with a specific connection #15006
Replies: 2 comments 2 replies
-
The flags relevant to a connection are bolded below. -c is for executing a command (like from the command palette), that wouldn't normally be included if you just want to open a file and connect to a server. Options kept in. Can be used to open multiple distinct instances of Code. -h --help Print usage. -c --command Name of command to run -D --database Database name -S --server Server name -U --user User name for server connection --aad Use Azure Active Directory authentication for server connection -E --integrated Use Integrated authentication for server connection |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'd like to open a specific file via powershell, and specify the connection as well. Is there a way to do this, it looks like I need to use
-c
, but its not well documented (that I can find). Right now, it looks like this:-S=myServer -D=myDB -E -c=???? -g 'myFile.sql'
Beta Was this translation helpful? Give feedback.
All reactions