Select connection string in SSMS

  • Hello,

    I would like to be able to select the full SQL connection string and use it in a POWERSHELL script. Is there a query that I can run in SSMS that would return the full connection string?

    Something like...

    SELECT @@SERVERNAME, DB_NAME, etc

    FROM MASTER (or whatever)

    Thank you all for your continued support.

    The are no problems, only solutions. --John Lennon

  • my advise is to look at https://www.connectionstrings.com/ and see lots of possibilities - and obviously the manuals may have a bit more options.

  • Is there a way to SELECT the full data source from SSMS?

    The are no problems, only solutions. --John Lennon

  • no

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply