cannot connect sql server management database engine? .i amsql server 2008


===================================

cannot connect swathi-pc\mssqlserver.

===================================

network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 25 - connection string not valid) (.net sqlclient data provider)

------------------------------
help, click: http://go.microsoft.com/fwlink?prodname=microsoft+sql+server&evtsrc=mssqlserver&evtid=87&linkid=20476

------------------------------
error number: 87
severity: 20
state: 0


------------------------------
program location:

   @ system.data.sqlclient.sqlinternalconnection.onerror(sqlexception exception, boolean breakconnection)
   @ system.data.sqlclient.tdsparser.throwexceptionandwarning(tdsparserstateobject stateobj)
   @ system.data.sqlclient.tdsparser.connect(serverinfo serverinfo, sqlinternalconnectiontds connhandler, boolean ignoresniopentimeout, int64 timerexpire, boolean encrypt, boolean trustservercert, boolean integratedsecurity, sqlconnection owningobject)
   @ system.data.sqlclient.sqlinternalconnectiontds.attemptonelogin(serverinfo serverinfo, string newpassword, boolean ignoresniopentimeout, int64 timerexpire, sqlconnection owningobject)
   @ system.data.sqlclient.sqlinternalconnectiontds.loginnofailover(string host, string newpassword, boolean redirecteduserinstance, sqlconnection owningobject, sqlconnectionstring connectionoptions, int64 timerstart)
   @ system.data.sqlclient.sqlinternalconnectiontds.openloginenlist(sqlconnection owningobject, sqlconnectionstring connectionoptions, string newpassword, boolean redirecteduserinstance)
   @ system.data.sqlclient.sqlinternalconnectiontds..ctor(dbconnectionpoolidentity identity, sqlconnectionstring connectionoptions, object providerinfo, string newpassword, sqlconnection owningobject, boolean redirecteduserinstance)
   @ system.data.sqlclient.sqlconnectionfactory.createconnection(dbconnectionoptions options, object poolgroupproviderinfo, dbconnectionpool pool, dbconnection owningconnection)
   @ system.data.providerbase.dbconnectionfactory.createnonpooledconnection(dbconnection owningconnection, dbconnectionpoolgroup poolgroup)
   @ system.data.providerbase.dbconnectionfactory.getconnection(dbconnection owningconnection)
   @ system.data.providerbase.dbconnectionclosed.openconnection(dbconnection outerconnection, dbconnectionfactory connectionfactory)
   @ system.data.sqlclient.sqlconnection.open()
   @ microsoft.sqlserver.management.ui.vsintegration.objectexplorer.objectexplorer.validateconnection(uiconnectioninfo ci, iservertype server)
   @ microsoft.sqlserver.management.ui.connectiondlg.connector.connectionthreaduser()

hi chinni123098,

error message indicates instance name not valid.

>>cannot connect swathi-pc\mssqlserver.

seems sql server instance connecting default instance. if case, need change server name with “swathi” only.

in addition, if connect sql server instance remotely, please make sure have enabled remote connection:http://msdn.microsoft.com/en-us/library/dd857537(vs.85).aspx.

best regards,
stephanie lv




SQL Server  >  SQL Server Express



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'