Zum Hauptinhalt gehen

Help with SqlQuery activity-Connection string with parameter

Kommentare

1 Kommentar

  • Kevin Penner

    Hi Jin,

    I do not think it is possible to dynamically change the connection string (prevent injection/reading them in payload). Try connecting with a string which makes use of a static username and password, such as: 

    Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST='databaseserverIPaddress')(PORT=1521)))(CONNECT_DATA=(SID=XYZ)(SERVER=DEDICATED)));User Id=ID_CHECKER_READ_ONLY ;Password=multiPass

    You can then test the connection right from the non-query activities design panel to see if it works.

    It would be possible to check user/pass validity by hitting a stored procedure or have some sort of table to look up.

     

    Best of luck,

    Kevin

    Edit: I should remind you that the usernames and passwords will be sent in a workflow payload and will be unencrypted. If someone is listening to the traffic between the server and your client, they might be able to see which user/passwords are being checked for validity. Since those are also passwords to your database I'd be very careful. Try using Fiddler to inspect these payloads so you can get a good idea of what I'm talking about.

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.