Extract fields from string

Got a problem you cannot solve? Try here.
Post Reply
lbertoldi
Posts: 55
Joined: Wed Apr 07, 2010 7:19 am

Extract fields from string

Post by lbertoldi »

Hi there, I want to use your SQL integration to execute some scripts in a db.
Problem is that I only have an OleDb connection string (read from registry) while your SQL Server integration requires each field to be configured separately.
So, from this string "data source=xyz;initial catalog=mydb;user id=sa;password=myown" I need to extract each field in order to pass them to the SQL Server action.
Is there a (easy) way to achieve this?
Thanks
Luca
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Extract fields from string

Post by giaviv »

Dear Luca,

There is no straight forward way to achieve this. You would have to use the Parse String command multiple times in order to get to your fields.
Let me know if you can't figure out how to do this and I will help.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Extract fields from string

Post by giaviv »

Sorry guys - second attempt at uploading the script:
Attachments
ParseConnectionString.zip
(1.18 KiB) Downloaded 334 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply