Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Backups
»
Microsoft SQL Server, Error : 2
19 posts, Page 1 of 2
1
2
»»
Microsoft SQL Server, Error : 2
Rate Topic
Display Mode
Topic Options
Author
Message
sundaram82
sundaram82
Posted Tuesday, September 23, 2008 6:15 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, February 21, 2013 6:18 AM
Points: 120,
Visits: 108
While connecting to SQL Server 2005, I am getting the following error.
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (Provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)"
I restarted the Server and then tried to connect to SQL Server, it is allowing me to connect. Whenever the problem comes, I am restarting the server. But I want the actual solution for this problem.
Can anybody help me out in solving this issue.
Post #574247
dba_pkashyap
dba_pkashyap
Posted Tuesday, September 23, 2008 9:38 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, December 06, 2012 2:49 PM
Points: 140,
Visits: 310
are you connecting to the local server or remote server?
connecting using windows login/sqlserver login?
Post #574551
sundaram82
sundaram82
Posted Sunday, September 28, 2008 9:48 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, February 21, 2013 6:18 AM
Points: 120,
Visits: 108
Yes, I am connecting to a local server.
Using SQL Server Authentication.
Post #577433
dba_pkashyap
dba_pkashyap
Posted Monday, September 29, 2008 5:09 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, December 06, 2012 2:49 PM
Points: 140,
Visits: 310
Check if all the Services are running in sql server configuration manager
check the protocols if they are enabled.
You sometimes get the same error, when you have entered a wrong userid/pwd.
Post #577627
pollo1984
pollo1984
Posted Sunday, March 15, 2009 12:13 PM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 04, 2009 3:58 PM
Points: 3,
Visits: 4
hi,
im getting the same error but im using windows authentication - any suggestions? Thanks :o)
Post #676150
pollo1984
pollo1984
Posted Sunday, March 15, 2009 8:24 PM
Forum Newbie
Group: General Forum Members
Last Login: Monday, May 04, 2009 3:58 PM
Points: 3,
Visits: 4
no worries, managed to solve it myself. basically i made sure all services were running as previously posted, and then, funnily enough, running SQL Server Management Studio as administrator did the trick!
Thanks anyways :o)
Post #676215
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Sunday, March 15, 2009 8:58 PM
SSC-Dedicated
Group: Administrators
Last Login: Today @ 3:19 PM
Points: 31,526,
Visits: 13,863
Administrator shouldn't matter, it's the accounts that are set up in SQL Server. Likely the local administrator's group is set up as a login in SQL.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #676219
281462596
281462596
Posted Thursday, August 26, 2010 11:40 PM
Forum Newbie
Group: General Forum Members
Last Login: Saturday, March 05, 2011 11:29 PM
Points: 3,
Visits: 6
are you sure you have use the correct username and choose the right instance?
the instance should be like this : server name/instance
your username should be like this if you use windows au :server name /username
Post #976156
SKYBVI
SKYBVI
Posted Friday, September 17, 2010 10:51 AM
Ten Centuries
Group: General Forum Members
Last Login: Monday, May 20, 2013 12:10 AM
Points: 1,197,
Visits: 3,226
@ sundaram
Choose the mixed mode of authentication
Windows and the sql server
Regards
Sushant
Post #988410
GilaMonster
GilaMonster
Posted Friday, September 17, 2010 11:08 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 4:18 PM
Points: 38,062,
Visits: 30,359
Please note: 2 year old thread.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #988431
« Prev Topic
|
Next Topic »
19 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.