Showing posts with label established. Show all posts
Showing posts with label established. Show all posts

Saturday, February 25, 2012

Connection error

Hi,
I get the following error when I try to connect to SQL 2005 Beta from VS 2005.
"A connection was successfully established with the server, but then an
error occurred during the login process. (provider: TCP Provider, error: 0 -
An existing connection was forcibly closed by the remote host.) "
The calling page "Default.aspx" only has a GridView control.
Help please!!!
"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> Hi,
> I get the following error when I try to connect to SQL 2005 Beta from VS
> 2005.
> "A connection was successfully established with the server, but then an
> error occurred during the login process. (provider: TCP Provider, error:
> 0 -
> An existing connection was forcibly closed by the remote host.) "
> The calling page "Default.aspx" only has a GridView control.
> Help please!!!
Does the 2005 beta have an expiration date?
Rick Sawtell
MCT, MCSD, MCDBA
|||Rick,
No I don't think so. I can see the data when i do "Test query" from the
GridView control on the page. My team member can run the app without any
errors.
Thanks
Mumbai_Chef
"Rick Sawtell" wrote:

> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> Does the 2005 beta have an expiration date?
>
> Rick Sawtell
> MCT, MCSD, MCDBA
>
>
|||I've generally seen the "Forcibly Closed" error when the Windows firewall in
XP was blocking the connection but I assume there are other things that
could cause this. Can the same user connect with sqlcmd?
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...[vbcol=seagreen]
> Rick,
> No I don't think so. I can see the data when i do "Test query" from the
> GridView control on the page. My team member can run the app without any
> errors.
> Thanks
> Mumbai_Chef
>
> "Rick Sawtell" wrote:
|||If the issue is with the firewall than how can another user logged in from my
machine can access the data without any error. I am out of ideas.
Thanks
"Roger Wolter[MSFT]" wrote:

> I've generally seen the "Forcibly Closed" error when the Windows firewall in
> XP was blocking the connection but I assume there are other things that
> could cause this. Can the same user connect with sqlcmd?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...
>
>

Connection error

Hi,
I get the following error when I try to connect to SQL 2005 Beta from VS 2005.
"A connection was successfully established with the server, but then an
error occurred during the login process. (provider: TCP Provider, error: 0 -
An existing connection was forcibly closed by the remote host.) "
The calling page "Default.aspx" only has a GridView control.
Help please!!!"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> Hi,
> I get the following error when I try to connect to SQL 2005 Beta from VS
> 2005.
> "A connection was successfully established with the server, but then an
> error occurred during the login process. (provider: TCP Provider, error:
> 0 -
> An existing connection was forcibly closed by the remote host.) "
> The calling page "Default.aspx" only has a GridView control.
> Help please!!!
Does the 2005 beta have an expiration date?
Rick Sawtell
MCT, MCSD, MCDBA|||Rick,
No I don't think so. I can see the data when i do "Test query" from the
GridView control on the page. My team member can run the app without any
errors.
Thanks
Mumbai_Chef
"Rick Sawtell" wrote:
> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> > Hi,
> >
> > I get the following error when I try to connect to SQL 2005 Beta from VS
> > 2005.
> >
> > "A connection was successfully established with the server, but then an
> > error occurred during the login process. (provider: TCP Provider, error:
> > 0 -
> > An existing connection was forcibly closed by the remote host.) "
> >
> > The calling page "Default.aspx" only has a GridView control.
> >
> > Help please!!!
> Does the 2005 beta have an expiration date?
>
> Rick Sawtell
> MCT, MCSD, MCDBA
>
>|||I've generally seen the "Forcibly Closed" error when the Windows firewall in
XP was blocking the connection but I assume there are other things that
could cause this. Can the same user connect with sqlcmd?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...
> Rick,
> No I don't think so. I can see the data when i do "Test query" from the
> GridView control on the page. My team member can run the app without any
> errors.
> Thanks
> Mumbai_Chef
>
> "Rick Sawtell" wrote:
>> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
>> news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
>> > Hi,
>> >
>> > I get the following error when I try to connect to SQL 2005 Beta from
>> > VS
>> > 2005.
>> >
>> > "A connection was successfully established with the server, but then an
>> > error occurred during the login process. (provider: TCP Provider,
>> > error:
>> > 0 -
>> > An existing connection was forcibly closed by the remote host.) "
>> >
>> > The calling page "Default.aspx" only has a GridView control.
>> >
>> > Help please!!!
>> Does the 2005 beta have an expiration date?
>>
>> Rick Sawtell
>> MCT, MCSD, MCDBA
>>
>>|||If the issue is with the firewall than how can another user logged in from my
machine can access the data without any error. I am out of ideas.
Thanks
"Roger Wolter[MSFT]" wrote:
> I've generally seen the "Forcibly Closed" error when the Windows firewall in
> XP was blocking the connection but I assume there are other things that
> could cause this. Can the same user connect with sqlcmd?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...
> > Rick,
> > No I don't think so. I can see the data when i do "Test query" from the
> > GridView control on the page. My team member can run the app without any
> > errors.
> >
> > Thanks
> > Mumbai_Chef
> >
> >
> > "Rick Sawtell" wrote:
> >
> >>
> >> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> >> news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> >> > Hi,
> >> >
> >> > I get the following error when I try to connect to SQL 2005 Beta from
> >> > VS
> >> > 2005.
> >> >
> >> > "A connection was successfully established with the server, but then an
> >> > error occurred during the login process. (provider: TCP Provider,
> >> > error:
> >> > 0 -
> >> > An existing connection was forcibly closed by the remote host.) "
> >> >
> >> > The calling page "Default.aspx" only has a GridView control.
> >> >
> >> > Help please!!!
> >>
> >> Does the 2005 beta have an expiration date?
> >>
> >>
> >> Rick Sawtell
> >> MCT, MCSD, MCDBA
> >>
> >>
> >>
> >>
>
>

Connection error

Hi,
I get the following error when I try to connect to SQL 2005 Beta from VS 200
5.
"A connection was successfully established with the server, but then an
error occurred during the login process. (provider: TCP Provider, error: 0 -
An existing connection was forcibly closed by the remote host.) "
The calling page "Default.aspx" only has a GridView control.
Help please!!!"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> Hi,
> I get the following error when I try to connect to SQL 2005 Beta from VS
> 2005.
> "A connection was successfully established with the server, but then an
> error occurred during the login process. (provider: TCP Provider, error:
> 0 -
> An existing connection was forcibly closed by the remote host.) "
> The calling page "Default.aspx" only has a GridView control.
> Help please!!!
Does the 2005 beta have an expiration date?
Rick Sawtell
MCT, MCSD, MCDBA|||Rick,
No I don't think so. I can see the data when i do "Test query" from the
GridView control on the page. My team member can run the app without any
errors.
Thanks
Mumbai_Chef
"Rick Sawtell" wrote:

> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:84F879BA-F54F-420C-8576-0CACE17AB39B@.microsoft.com...
> Does the 2005 beta have an expiration date?
>
> Rick Sawtell
> MCT, MCSD, MCDBA
>
>|||I've generally seen the "Forcibly Closed" error when the Windows firewall in
XP was blocking the connection but I assume there are other things that
could cause this. Can the same user connect with sqlcmd?
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...[vbcol=seagreen]
> Rick,
> No I don't think so. I can see the data when i do "Test query" from the
> GridView control on the page. My team member can run the app without any
> errors.
> Thanks
> Mumbai_Chef
>
> "Rick Sawtell" wrote:
>|||If the issue is with the firewall than how can another user logged in from m
y
machine can access the data without any error. I am out of ideas.
Thanks
"Roger Wolter[MSFT]" wrote:

> I've generally seen the "Forcibly Closed" error when the Windows firewall
in
> XP was blocking the connection but I assume there are other things that
> could cause this. Can the same user connect with sqlcmd?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
> "Mumbai_Chef" <MumbaiChef@.discussions.microsoft.com> wrote in message
> news:35E74F79-80C0-4E84-B9AC-2BF569701E59@.microsoft.com...
>
>

Connection Error

Error Message:

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

The error occurs in Visual Studio 2005 v 8.0.50725.42. I have my string in my web.config file. In Visual Studio it doesn't work. When you upload the page it connects and shows the data. Now, I have been several places and been asked, "So what's the issue?" The problem is that I want Visual Studio 2005 to connect so that I can use it to create Gridviews, use the Server Explorer and so on.

Is there an upgrade to VS2005? Is this a known bug? Is there a work-around - a configuration that needs to be setup in the web.config file? I've only just begun my .NET 2.0 experience so type slow and use small words...

Thanks!

I suppouse you are talking about connection string for a database ?, I think you should try this questions in forums about general development or data access, and also give more info about how are you making the connection string, if you are using the "connectionStrings" section and so on.

This forum is only related to Team System and TFS issues, sorry.

Friday, February 24, 2012

connection could not be established

Hi there,
Im running SQL server 2000 on SBS2k3. I have a couple of databases working
fine and then all of a sudden i was locked out of them when I go to server
enterprise manager with the following msg:
A connection could not be established to <server>
Reason: login failed for user '<domain>\administrator'
Please verify SQL Server is running and check your SQL Server registration
properties and try again.
Could someone please help me. I have checked and the service MSSQL Server
is running.
thank you
MikeMike
Perhasps you have changde a password for this login and your SQL Server was
registered (EM)by an old password.
"Mike Hunt" <ncc4@.hotmail.com> wrote in message
news:%23CXAyyprFHA.3836@.TK2MSFTNGP12.phx.gbl...
> Hi there,
> Im running SQL server 2000 on SBS2k3. I have a couple of databases
> working fine and then all of a sudden i was locked out of them when I go
> to server enterprise manager with the following msg:
> A connection could not be established to <server>
> Reason: login failed for user '<domain>\administrator'
> Please verify SQL Server is running and check your SQL Server registration
> properties and try again.
> Could someone please help me. I have checked and the service MSSQL Server
> is running.
> thank you
> Mike
>

connection could not be established

Hi there,
Im running SQL server 2000 on SBS2k3. I have a couple of databases working
fine and then all of a sudden i was locked out of them when I go to server
enterprise manager with the following msg:
A connection could not be established to <server>
Reason: login failed for user '<domain>\administrator'
Please verify SQL Server is running and check your SQL Server registration
properties and try again.
Could someone please help me. I have checked and the service MSSQL Server
is running.
thank you
Mike
Mike
Perhasps you have changde a password for this login and your SQL Server was
registered (EM)by an old password.
"Mike Hunt" <ncc4@.hotmail.com> wrote in message
news:%23CXAyyprFHA.3836@.TK2MSFTNGP12.phx.gbl...
> Hi there,
> Im running SQL server 2000 on SBS2k3. I have a couple of databases
> working fine and then all of a sudden i was locked out of them when I go
> to server enterprise manager with the following msg:
> A connection could not be established to <server>
> Reason: login failed for user '<domain>\administrator'
> Please verify SQL Server is running and check your SQL Server registration
> properties and try again.
> Could someone please help me. I have checked and the service MSSQL Server
> is running.
> thank you
> Mike
>

connection could not be established

Hi there,
Im running SQL server 2000 on SBS2k3. I have a couple of databases working
fine and then all of a sudden i was locked out of them when I go to server
enterprise manager with the following msg:
A connection could not be established to <server>
Reason: login failed for user '<domain>\administrator'
Please verify SQL Server is running and check your SQL Server registration
properties and try again.
Could someone please help me. I have checked and the service MSSQL Server
is running.
thank you
MikeMike
Perhasps you have changde a password for this login and your SQL Server was
registered (EM)by an old password.
"Mike Hunt" <ncc4@.hotmail.com> wrote in message
news:%23CXAyyprFHA.3836@.TK2MSFTNGP12.phx.gbl...
> Hi there,
> Im running SQL server 2000 on SBS2k3. I have a couple of databases
> working fine and then all of a sudden i was locked out of them when I go
> to server enterprise manager with the following msg:
> A connection could not be established to <server>
> Reason: login failed for user '<domain>\administrator'
> Please verify SQL Server is running and check your SQL Server registration
> properties and try again.
> Could someone please help me. I have checked and the service MSSQL Server
> is running.
> thank you
> Mike
>

Sunday, February 19, 2012

Connection

When I try to connect to my database using enterprise manager I get this error:
A connection could not be established to DBSERVER
Reason: Cannot open user default database. Login failed..
I have know that the server is running and the agent is running. There is
no login issues because I was able to login just mins before this happen. I
tried to change the default db with osql utility. I have restarted the
dbserver and still have the same issue. Can anyone if me an idea of what I
need to do.
The SQL login you're trying to use to connect to your SQL server has a
default database defined that either they don't have access to or does
not exist. To get yourself going again you can probably just login to
your server using osql with:
(assuming it's your trusted login you're having problems with)
osql -S MyServer -d master -E
or
(assuming it's a particular SQL login you're having trouble with)
osql -S MyServer -d master -U MyUsername -P MyPassword
And then change your the default DB for that login:
(assuming it's your trusted login...)
1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
2> go
or
(assuming it's a SQL login you're having problems with)
1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
2> go
This should fix up the login you're having issues with by virtue of the
fact that every login on the server can access the master DB.
*mike hodgson*
blog: http://sqlnerd.blogspot.com
new admin wrote:

>When I try to connect to my database using enterprise manager I get this error:
>A connection could not be established to DBSERVER
>Reason: Cannot open user default database. Login failed..
>I have know that the server is running and the agent is running. There is
>no login issues because I was able to login just mins before this happen. I
>tried to change the default db with osql utility. I have restarted the
>dbserver and still have the same issue. Can anyone if me an idea of what I
>need to do.
>
>
|||Thank you soooo much that got me in and now I see that my default db is
(subspect)
"Mike Hodgson" wrote:

> The SQL login you're trying to use to connect to your SQL server has a
> default database defined that either they don't have access to or does
> not exist. To get yourself going again you can probably just login to
> your server using osql with:
> (assuming it's your trusted login you're having problems with)
> osql -S MyServer -d master -E
> or
> (assuming it's a particular SQL login you're having trouble with)
> osql -S MyServer -d master -U MyUsername -P MyPassword
> And then change your the default DB for that login:
> (assuming it's your trusted login...)
> 1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
> 2> go
> or
> (assuming it's a SQL login you're having problems with)
> 1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
> 2> go
> This should fix up the login you're having issues with by virtue of the
> fact that every login on the server can access the master DB.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> new admin wrote:
>

Connection

When I try to connect to my database using enterprise manager I get this err
or:
A connection could not be established to DBSERVER
Reason: Cannot open user default database. Login failed..
I have know that the server is running and the agent is running. There is
no login issues because I was able to login just mins before this happen. I
tried to change the default db with osql utility. I have restarted the
dbserver and still have the same issue. Can anyone if me an idea of what I
need to do.The SQL login you're trying to use to connect to your SQL server has a
default database defined that either they don't have access to or does
not exist. To get yourself going again you can probably just login to
your server using osql with:
(assuming it's your trusted login you're having problems with)
osql -S MyServer -d master -E
or
(assuming it's a particular SQL login you're having trouble with)
osql -S MyServer -d master -U MyUsername -P MyPassword
And then change your the default DB for that login:
(assuming it's your trusted login...)
1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
2> go
or
(assuming it's a SQL login you're having problems with)
1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
2> go
This should fix up the login you're having issues with by virtue of the
fact that every login on the server can access the master DB.
*mike hodgson*
blog: http://sqlnerd.blogspot.com
new admin wrote:

>When I try to connect to my database using enterprise manager I get this er
ror:
>A connection could not be established to DBSERVER
>Reason: Cannot open user default database. Login failed..
>I have know that the server is running and the agent is running. There is
>no login issues because I was able to login just mins before this happen. I
>tried to change the default db with osql utility. I have restarted the
>dbserver and still have the same issue. Can anyone if me an idea of what I
>need to do.
>
>|||Thank you soooo much that got me in and now I see that my default db is
(subspect)
"Mike Hodgson" wrote:

> The SQL login you're trying to use to connect to your SQL server has a
> default database defined that either they don't have access to or does
> not exist. To get yourself going again you can probably just login to
> your server using osql with:
> (assuming it's your trusted login you're having problems with)
> osql -S MyServer -d master -E
> or
> (assuming it's a particular SQL login you're having trouble with)
> osql -S MyServer -d master -U MyUsername -P MyPassword
> And then change your the default DB for that login:
> (assuming it's your trusted login...)
> 1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
> 2> go
> or
> (assuming it's a SQL login you're having problems with)
> 1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
> 2> go
> This should fix up the login you're having issues with by virtue of the
> fact that every login on the server can access the master DB.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> new admin wrote:
>
>

Friday, February 17, 2012

Connection

When I try to connect to my database using enterprise manager I get this error:
A connection could not be established to DBSERVER
Reason: Cannot open user default database. Login failed..
I have know that the server is running and the agent is running. There is
no login issues because I was able to login just mins before this happen. I
tried to change the default db with osql utility. I have restarted the
dbserver and still have the same issue. Can anyone if me an idea of what I
need to do.This is a multi-part message in MIME format.
--020006020604030204030608
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
The SQL login you're trying to use to connect to your SQL server has a
default database defined that either they don't have access to or does
not exist. To get yourself going again you can probably just login to
your server using osql with:
(assuming it's your trusted login you're having problems with)
osql -S MyServer -d master -E
or
(assuming it's a particular SQL login you're having trouble with)
osql -S MyServer -d master -U MyUsername -P MyPassword
And then change your the default DB for that login:
(assuming it's your trusted login...)
1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
2> go
or
(assuming it's a SQL login you're having problems with)
1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
2> go
This should fix up the login you're having issues with by virtue of the
fact that every login on the server can access the master DB.
--
*mike hodgson*
blog: http://sqlnerd.blogspot.com
new admin wrote:
>When I try to connect to my database using enterprise manager I get this error:
>A connection could not be established to DBSERVER
>Reason: Cannot open user default database. Login failed..
>I have know that the server is running and the agent is running. There is
>no login issues because I was able to login just mins before this happen. I
>tried to change the default db with osql utility. I have restarted the
>dbserver and still have the same issue. Can anyone if me an idea of what I
>need to do.
>
>
--020006020604030204030608
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>The SQL login you're trying to use to connect to your SQL server
has a default database defined that either they don't have access to or
does not exist. To get yourself going again you can probably just
login to your server using osql with:<br>
</tt>
<blockquote><tt>(assuming it's your trusted login you're having
problems with)<br>
osql -S MyServer -d master -E<br>
<br>
or<br>
<br>
(assuming it's a particular SQL login you're having trouble with)<br>
osql -S MyServer -d master -U MyUsername -P MyPassword<br>
</tt></blockquote>
<tt>And then change your the default DB for that login:<br>
</tt>
<blockquote><tt>(assuming it's your trusted login...)<br>
1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'<br>
2> go<br>
<br>
or<br>
<br>
(assuming it's a SQL login you're having problems with)<br>
1> </tt><tt>exec sp_defaultdb @.loginame='MyUsername',
@.defdb='master'<br>
2> go<br>
</tt></blockquote>
<tt>This should fix up the login you're having issues with by virtue of
the fact that every login on the server can access the master DB.</tt><br>
<div class="moz-signature">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<p><span lang="en-au"><font face="Tahoma" size="2">--<br>
</font></span> <b><span lang="en-au"><font face="Tahoma" size="2">mike
hodgson</font></span></b><span lang="en-au"><br>
<font face="Tahoma" size="2">blog:</font><font face="Tahoma" size="2"> <a
href="http://links.10026.com/?link=http://sqlnerd.blogspot.com</a></font></span>">http://sqlnerd.blogspot.com">http://sqlnerd.blogspot.com</a></font></span>
</p>
</div>
<br>
<br>
new admin wrote:
<blockquote cite="midAE6D082D-667E-4F2E-817A-A603BA650462@.microsoft.com"
type="cite">
<pre wrap="">When I try to connect to my database using enterprise manager I get this error:
A connection could not be established to DBSERVER
Reason: Cannot open user default database. Login failed..
I have know that the server is running and the agent is running. There is
no login issues because I was able to login just mins before this happen. I
tried to change the default db with osql utility. I have restarted the
dbserver and still have the same issue. Can anyone if me an idea of what I
need to do.
</pre>
</blockquote>
</body>
</html>
--020006020604030204030608--|||Thank you soooo much that got me in and now I see that my default db is
(subspect)
"Mike Hodgson" wrote:
> The SQL login you're trying to use to connect to your SQL server has a
> default database defined that either they don't have access to or does
> not exist. To get yourself going again you can probably just login to
> your server using osql with:
> (assuming it's your trusted login you're having problems with)
> osql -S MyServer -d master -E
> or
> (assuming it's a particular SQL login you're having trouble with)
> osql -S MyServer -d master -U MyUsername -P MyPassword
> And then change your the default DB for that login:
> (assuming it's your trusted login...)
> 1> exec sp_defaultdb @.loginame='MyDomain\MyLogin', @.defdb='master'
> 2> go
> or
> (assuming it's a SQL login you're having problems with)
> 1> exec sp_defaultdb @.loginame='MyUsername', @.defdb='master'
> 2> go
> This should fix up the login you're having issues with by virtue of the
> fact that every login on the server can access the master DB.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
>
> new admin wrote:
> >When I try to connect to my database using enterprise manager I get this error:
> >
> >A connection could not be established to DBSERVER
> >
> >Reason: Cannot open user default database. Login failed..
> >
> >I have know that the server is running and the agent is running. There is
> >no login issues because I was able to login just mins before this happen. I
> >tried to change the default db with osql utility. I have restarted the
> >dbserver and still have the same issue. Can anyone if me an idea of what I
> >need to do.
> >
> >
> >
> >
>