Prompt for ADO.Net Connection String

B

bigbob

Prompting for an ADO Connection String:
MSDASC.DataLinks DataLink = new MSDASC.DataLinks();

ADODB._Connection Conn;

Conn = (ADODB._Connection)DataLink.PromptNew();

LocalClass.WriteConnString(Conn.ConnectionString.ToString());

//Works fine, but the connection string is formatted as: Provider = xxx,
etc..

//No good for ADO.Net Connection

How do you prompt for an ADO.Net connection string?

I really shouldn't need the COM references, but I don't know what the Net
references are.
 
M

Miha Markic

Hi,

If you are after sqlconnection (sql server) connectionstring then just
remove the data provider part.
 
M

Miha Markic

Hi,

bigbob said:
Thanks, Miha. I thought about that and I guess it'll work.
It does leave me with an undesired COM reference though.

Indeed. Oh well.
 
B

bigbob

Thanks, Miha. I thought about that and I guess it'll work.
It does leave me with an undesired COM reference though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top