0

I'm new in ASP.NET Programming .. I want to build a simple program which communicates Informix-Database running on HP-UNIX server. I have the following information:

DB Name Server IP Username Password

I want to know how I can establish a connection through my ASP program?

Thank you for your help

Safraawi

1

1 Answer 1

3

Use an appropriate connection string in your configuration and whatever .NET database provider there is for your database of choice.

See Connection Strings and Configuration Files (ADO.NET) on MSDN.

connectionstrings.com is a good resource for connection strings - how they should be structured using the kind of data you have.

And here is a list of .NET data providers, though you should check for one from you database vendor. Infomix appears to have such a provider, based on the release notes.

Sign up to request clarification or add additional context in comments.

2 Comments

Dear Oded, Thank you very much. is this correct? SqlConnection sqlCon = new SqlConnection(@"Database=myDataBase;Host=192.168.2.1;[email protected];Service=9005; Protocol=onsoctcp;UID=root;Password=toor");
@safraawi - I don't know. I have no idea about informix. The sample for .NET on connectionstrings.com would suggest that it should be: Provider=Ifxoledbc;Data [email protected];User ID=myUsername;Password=myPassword;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.