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 2008
»
SQL Server 2008 - General
»
database is not connecting .
11 posts, Page 1 of 2
1
2
»»
database is not connecting .
Rate Topic
Display Mode
Topic Options
Author
Message
ravi@sql
ravi@sql
Posted Monday, December 03, 2012 6:54 AM
SSC Journeyman
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 5:57 AM
Points: 88,
Visits: 183
Hi All,
While connecting to database am getting below error.
"A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host."
actually i restarted the system and then again i replced existing log file with the same name. But am not abel to connect to that data base.
so i replced with the old logfile with same name.
After that am getting above error.
Please provide solution for this.
Tahnks,
Ravi@sql
Post #1391917
arunyadav007
arunyadav007
Posted Monday, December 03, 2012 7:12 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, May 03, 2013 3:06 AM
Points: 42,
Visits: 285
I guess it is because you restarted SQL Server and trying to connect to the instance from an already opened SSMS Query window.
Try this:
Right-click on query window
Goto Connections
Click on Connect and connect to the instance again.
If this doesn't solve your issue, tell us how you are trying to connect to the instance?
Regards..
Post #1391930
ravi@sql
ravi@sql
Posted Monday, December 03, 2012 9:36 PM
SSC Journeyman
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 5:57 AM
Points: 88,
Visits: 183
no actually i closed sql server and opened am able to see other databases except which i wanted to connect.
Post #1392243
sanket kokane
sanket kokane
Posted Monday, December 03, 2012 10:18 PM
Old Hand
Group: General Forum Members
Last Login: 2 days ago @ 5:04 AM
Points: 323,
Visits: 966
ravi@sql (12/3/2012)
no actually i closed sql server and opened am able to see other databases except which i wanted to connect.
check your SQL server error logs
-----------------------------------------------------------------------------
संकेत कोकणे
Post #1392250
Jayanth_Kurup
Jayanth_Kurup
Posted Monday, December 03, 2012 10:22 PM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:43 AM
Points: 1,785,
Visits: 1,008
have you gone thru this link
http://blogs.msdn.com/b/spike/archive/2009/04/16/a-transport-level-error-has-occurred-when-sending-the-request-to-the-server-provider-tcp-provider-error-0-an-existing-connection-was-forcibly-closed-by-the-remote-host.aspx
You could also check if the servvice startup type is manual , most probably after the restart the service didnt come back up.
Jayanth Kurup
Post #1392251
Hemant.R
Hemant.R
Posted Tuesday, December 04, 2012 12:25 AM
SSC Rookie
Group: General Forum Members
Last Login: Yesterday @ 4:38 AM
Points: 46,
Visits: 180
this connectivity issue due to network failure.please check it using cmd ping -t with IP of server
another possible reason is when service get restart .check using sql query when was last sql server restart
select name .create_date from sys.databases where name='tempdb'
Post #1392265
Bhuvnesh
Bhuvnesh
Posted Tuesday, December 04, 2012 2:24 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
hemant.raibole (12/4/2012)
this connectivity issue due to network failure
this cant be the case as OP posted above that he is abble to connect with other databases.
This might be bacause wrong reference of that particular database log's file check the refernce is sys.databases.
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1392296
ravi@sql
ravi@sql
Posted Tuesday, December 04, 2012 2:34 AM
SSC Journeyman
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 5:57 AM
Points: 88,
Visits: 183
yes you are right if i guess right ... but one senior guy telling that mdf and log files are corrupted now resore it from any other back only the option.they try to detach and attach the but it didnt worked.
any solution for this ?
Post #1392300
arunyadav007
arunyadav007
Posted Tuesday, December 04, 2012 2:44 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, May 03, 2013 3:06 AM
Points: 42,
Visits: 285
ravi@sql (12/3/2012)
no actually i closed sql server and opened am able to see other databases except which i wanted to connect.
Hello Ravi,
Are you able to connect to the database now? Do you see the database at all in SSMS? If yes, is it online or, you are seeing it is suspect mode?
If you are not seeing the database at all, you need to attach it. Right click on databases and click on attach. Then, browse to the physical location of MDF file for the database.
Post #1392302
Bhuvnesh
Bhuvnesh
Posted Tuesday, December 04, 2012 2:45 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
Bhuvnesh (12/4/2012)
hemant.raibole (12/4/2012)
this connectivity issue due to network failure
this cant be the case as OP posted above that he is abble to connect with other databases.
This might be bacause wrong reference of that particular database log's file check the refernce is sys.databases.
try to set database offline then only try to detach mdf files NOT ldf (if you can afford)
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1392303
« Prev Topic
|
Next Topic »
11 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.