Hello Friends..am Mohammed riyash..final year BCA in Jamal
Mohamed College 2009. Trichy.
My doubt is while connecting SQL2005 Built in Database
withing the Visual Studio 2005 Framework.. I am getting the
error.. That " An Error occurred and it may be due to ,
under the default settings of the Server, the connection
cannot be established.." But the code works in MS Access
for me.. Both in VB.Net and C#.Net am getting the same
error.. Any genius please Message me to 9994558822 or mail
me.. riyash.ips@gmail.com

Answers were Sorted based on User's Feedback



Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doub..

Answer / arun

see in sql tools .change the default settings in sql
configuration manager again.restart the sql sevice

Is This Answer Correct ?    0 Yes 0 No

Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doub..

Answer / ashu

look into using system.data.sqlclient;
here u may be using something different or

try this connection tag to connect db

sqlconnection cn= new sqlconnection ("data source=.;initial
catalog=pubs;integrated security=true");

Is This Answer Correct ?    0 Yes 0 No

Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doub..

Answer / jaspreet singh

1. u check ur all services in controll panel,then go to
performance nd administrative tools, star all the sql
services
2. chek ur name(service) which u gave during the
installation of sql.
3.may be u donot create table query write.
4.there can be error in ur path which u given in the c3
program.


these errors can be occured in ur connection.

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More C Sharp Interview Questions

What are variables in c#?

0 Answers  


Can we inherit two classes in c#?

0 Answers  


Explain more on CLR

0 Answers  


what is the meaning of Object lifetime in OOPS

0 Answers   HCL,


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

0 Answers  






In which order the destructor is called for an inherited class?

0 Answers  


Why do we use stringbuilder in c#?

0 Answers  


What is using in c#?

0 Answers  


What is the difference between public, static, and void?

0 Answers  


What are the collection types can be used in c#?

0 Answers  


What is the difference between disposing of () and finalize() methods in c#?

0 Answers  


Can scriptable objects have methods?

0 Answers  


Categories