Worked great...I'm not sure I would have ever figured that one out!
Thanks!
Main Topics
Browse All TopicsIn my script, the connection string is all on one line (not broken into three lines as it looks in the Code block below). It's too long and I have to scroll the window to the
right several times to see the entire line.
I've tried breaking it with & _ and with just _ but I get the "Expected Named Parameter" error no matter how I try it.
What is the proper syntax I should use to get this statement to break into 3 or 4 shorter lines in my script?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
All you need to note is of course:
ConnectionString:="Provide
is simply a long string so the only thing you overlooked with the line wrap was to close the string and append the next bit as a new string. So you were all but there already and all I added was a little tweak.
That said i'm glad to help.
Chris
Business Accounts
Answer for Membership
by: chris_bottomleyPosted on 2009-09-11 at 09:48:32ID: 25311289
Hello glennes,
r=MSDASQL. 1;Password =1010;" & _
MAybe too many breaks for you but how about:
SQLXL.Database.Connect _
UserName:="prod", _
Password:="1010", _
DBAlias:="Oracle Wire Protocol", _
ConnectionString:="Provide
" User ID=prod;" & _
" Extended Properties=""DSN=Oracle Wire Protocol;" & _
" UID=PROD;PWD=norm1010;" & _
" Database=Oracle;" & _
" Host=999.999.999.999;" & _
" Port=1521;SID=PROD""", AllowTransactions:=True
Regards,
chris_bottomley