So I have a connection string to an Oracle Database essentially I copied it straight from sql developer and then cut out the white space.
I later programmatically add in the user name and password.The problem is that when I try to open an SQLConnection object. I get the error:
The value's length for key 'data source' exceeds it's limit of '128'
I don't really know much about oracle TNS connections. I used this connection string because it worked in the wizard when I pasted it in and did test connection. And what you see is essentially what Visual studio generated after I pasted in the TNS name.
Data Source="(DESCRIPTION=(ADDRESS= (PROTOCOL=TCP)
(HOST=qprd-scan.website.com)(PORT=3726))(CONNECT_DATA=(SERVER=dedicated
(SERVICE_NAME=DBprd_developer)))";
This Data Source key is already around 160 characters.
I was looking at this post on the MSDN forums.
The guy basically says to chop out some of the other parts out of the data source and put them somewhere else. I am just not really sure how to do that.
The MSDN on connection strings doesn't really tell me much.
The MSDN on Connection strings and configuration files didn't help either.
Anyway I would be glad to show more of my code or stuff from app.config if asked