how to connect database connectivity in dotNET? if suppose
SQL server?and also MS access?
Answer Posted / varun
in the sql server
using system.data.sqlclient
sqlconnection con=new
sqlconnection("server=;uid=;pwd=;database=;");
con.open();
Ms-Access:
Namespace->using system.data.oledb;
oledbconnection con=new oledb connection
("Servername="";uid="";pwd="";database="")
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain what is an anonymous method and how is it different from a lambda expression?
Please explain what is a delegate?
What is an anonymous method and how is it different from a lambda expression?
What's singleton activation mode in .net?
Can you explain what do you understand about web service?
Name the classes that are introduced in the system.numerics namespace.
What is the difference between boxing and unboxing?
Explain the process of serialization in .NET?
Elements of CAS
What are the properties of ADO.NET?
Tell me what is serialization?
How will you make .NET programs work in Linux ?
What is static constructor, when it will be fired?
How do you generate a strong name?
What is meant by localization?