Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

Thursday, March 22, 2012

Cannot open user default database, login fails

hi:
I got the problem, which lots of people might encounter before.

In my case, I use login control and sqlexpress to build a login page.
when password & user name were entered. It gave me:
"Cannot open user default database, login fails"

The solution given by msdn is:

SQL Server 2005

You can use the sqlcmd utility to change the default database in SQL Server 2005. To do this, follow these steps:

1.Click Start, click Run, type cmd, and then press ENTER. 2.Use one of the following methods, depending on the kind of authentication that the SQL Server login uses:

?If

the SQL Server login uses Microsoft Windows authentication to connect

to the instance, type the following at the command prompt, and then

press ENTER:

sqlcmd –E -S InstanceName –d master

?If

the SQL Server login uses SQL Server authentication to connect to the

instance, type the following at the command prompt, and then press

ENTER:

sqlcmd -S InstanceName -d master -U SQLLogin -P Password

Note InstanceName is a placeholder for the name of the SQL Server 2005 instance to which you are connecting. SQLLogin is a placeholder for the SQL Server login whose default database has been dropped. Password is a placeholder for the SQL Server login password.3.At the sqlcmd prompt, type the following, and then press ENTER:

ALTER LOGIN SQLLogin WITH DEFAULT_DATABASE = AvailDBName

Note AvailDBName is a placeholder for the name of the existing database that can be accessed by the SQL Server login in the instance.4.At the sqlcmd prompt, type GO, and then press ENTER.

I wonder what are InstanceName, SQLLogin & AvailDBName. It would be nice if someone can give me a specific example, since I am not sure how to type them in a command line. :)

You're in the wrong forum. Try here: http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=84&SiteID=1

-Jamie

Sunday, March 11, 2012

Cannot Login with Web Data Administrator

With Cassini web server, the hour glass stays on after I type in "sa" and password with SQL Login. Does anyone know how to resolve the issue?

With IIS, it simply displays the content of default.aspx as text. Are there some settings need to be changed?

My system is: Windows XP Professional with SP2.

Any help is appreciated.

Chinghuh? let's be more descriptive.|||Kay,

After I installed the SQL Web Data Administrator on my computer, I started it with IIS selected. It comes back displaying the content of http://localhost/webadmin/default.aspx in IE.

I then change the selection to Cassini Personal Web Server and start. The desired port is changed to 111. The logon page displays in IE. I type in "sa" in Username field and myPassword in Password field. The server field is (local) and the Authentication Method is "SQL Login". After I click the Login button, the hour glass stays.

Do you know how to solve this problem? Thank you for any help.

Ching|||Is your database installed and running? Unfortunately, I don't use Cassini, so I don't know what's wrong.

Cannot login using 'sa' user name and password

Used configuration and enabled IP and is fiexed. Thanks.
--
Mike
"Mike9900" wrote:

> Hello,
> When I try to connect it give the following message I copied from the log:
> Source Logon
> Message
> Login failed for user 'sa'. The user is not associated with a trusted SQL
> Server connection. [CLIENT: <local machine>]
>
> I am using Win 2003 Ent. and is domain controller. I use administrator
> login in win 2003. I recently installed a new win2003, but I had Win2003
> before and was fine.
> In SQL Server, it is a mixed mode and everything seems to be fine.
> What could be the other problems?
> Thanks
> --
> MikeHello,
When I try to connect it give the following message I copied from the log:
Source Logon
Message
Login failed for user 'sa'. The user is not associated with a trusted SQL
Server connection. [CLIENT: <local machine>]
I am using Win 2003 Ent. and is domain controller. I use administrator
login in win 2003. I recently installed a new win2003, but I had Win2003
before and was fine.
In SQL Server, it is a mixed mode and everything seems to be fine.
What could be the other problems?
Thanks
Mike|||Used configuration and enabled IP and is fiexed. Thanks.
--
Mike
"Mike9900" wrote:

> Hello,
> When I try to connect it give the following message I copied from the log:
> Source Logon
> Message
> Login failed for user 'sa'. The user is not associated with a trusted SQL
> Server connection. [CLIENT: <local machine>]
>
> I am using Win 2003 Ent. and is domain controller. I use administrator
> login in win 2003. I recently installed a new win2003, but I had Win2003
> before and was fine.
> In SQL Server, it is a mixed mode and everything seems to be fine.
> What could be the other problems?
> Thanks
> --
> Mike

Cannot login using Integrated Authentication

I can't seem to login using Integrated Authentication. I enter the user name / password and receive "You are not authorized". I messed with everything I can find and no solution.

* I can browse a simple web page.

* I cannot browse LocalStart.asp (get asked for User/Password)

* I can set security on the reports folder to Anon and browse to Home.aspx

* I have disabled the loopbackcheck.

This is my dev box running Media Center 2005 w/SP2, IIS 5.1, SQL Server 2005

Any help would be appreciated.

try going into internet explorer, go to tools / options thne security tab then custom level, right at the bottom of the list check the radio button for login automatically using current username and pass and try again.....

Let m enow the outcome, it may not be this...

|||

The only way that seems to work is if I change it in the Internet zone and not the Intranet zone. Changing the Intranet zone still fails. Doesn't this create a huge security hole because it will now send my username and password to every site that wants it?

|||

Hey Andy,

I fiddled a little bit more and figured out that if I explicitly added http://localhost to my intranet sites it fixed the problem. No need to change the security level setting in the Internet zone. Everything is left at Automatic logon for Intranet only.

Thanks a bunch. You got me on the right track!!!

Paul

Cannot login SQL Server with 'sa'

Hi,
After I setup 'sa' password in SQL Server 2005, I get out SQL Server and
re-login using SQL Authentication mode with 'sa' and pasword, I get error:
"A connection was successfully established with the server, but then the
error occured during the login process. (Provider: Shared memeoryprovider,
error 0 - No process is on the other end of the pipe.) (Microsoft SQL Server
: error 233)"
Please help
Thanks
kaiDo you have Shared Memory connections enabled? Run the SQL Server
Configuration Manager and look at the protocols and shared Memory to see if
it is enabled or not.
Andrew J. Kelly SQL MVP
"kai" <kailiang@.earthlink.net> wrote in message
news:5HZqf.9593$nm.595@.newsread2.news.atl.earthlink.net...
> Hi,
> After I setup 'sa' password in SQL Server 2005, I get out SQL Server and
> re-login using SQL Authentication mode with 'sa' and pasword, I get error:
> "A connection was successfully established with the server, but then the
> error occured during the login process. (Provider: Shared memeoryprovider,
> error 0 - No process is on the other end of the pipe.) (Microsoft SQL
> Server : error 233)"
> Please help
> Thanks
> kai
>|||Andrew,
Thanks for your help. I checked it, it is enabled. I found additional
error when I login second time:
"Login failed for user 'sa'.The user is associated with a trusted SQL Server
connection. (Microsoft SQL Server, error: 18452)
Kai
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message
news:%23pGIiaACGHA.736@.TK2MSFTNGP10.phx.gbl...
> Do you have Shared Memory connections enabled? Run the SQL Server
> Configuration Manager and look at the protocols and shared Memory to see
> if it is enabled or not.
> --
> Andrew J. Kelly SQL MVP
>
> "kai" <kailiang@.earthlink.net> wrote in message
> news:5HZqf.9593$nm.595@.newsread2.news.atl.earthlink.net...
>|||See if this may help:
http://support.microsoft.com/?id=328306
Andrew J. Kelly SQL MVP
"kai" <kailiang@.earthlink.net> wrote in message
news:jB_qf.9068$3Z.3336@.newsread1.news.atl.earthlink.net...
> Andrew,
> Thanks for your help. I checked it, it is enabled. I found additional
> error when I login second time:
> "Login failed for user 'sa'.The user is associated with a trusted SQL
> Server connection. (Microsoft SQL Server, error: 18452)
> Kai
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message
> news:%23pGIiaACGHA.736@.TK2MSFTNGP10.phx.gbl...
>|||Is it possible you're trying to connect multiple times over the dedicated
Admin connection?
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"kai" <kailiang@.earthlink.net> wrote in message
news:jB_qf.9068$3Z.3336@.newsread1.news.atl.earthlink.net...
> Andrew,
> Thanks for your help. I checked it, it is enabled. I found additional
> error when I login second time:
> "Login failed for user 'sa'.The user is associated with a trusted SQL
> Server connection. (Microsoft SQL Server, error: 18452)
> Kai
> "Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message
> news:%23pGIiaACGHA.736@.TK2MSFTNGP10.phx.gbl...
>
>|||Hi Kai,
Generally speaking, error code 18452 suggests SQL Authentication is not
enabled. Would you please check to see whether it was enabled?
- Right Click the instance name in the Object Explorer, select Properties
- Select Security page and make sure SQL Server and Windows Authentication
mode is selected.
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.|||Michael ,
Thank you for your help.
It is enabled. I check my other two SQL Servers, they all have the same
problems.
Kai
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:8qxTKFFCGHA.3992@.TK2MSFTNGXA02.phx.gbl...
> Hi Kai,
> Generally speaking, error code 18452 suggests SQL Authentication is not
> enabled. Would you please check to see whether it was enabled?
> - Right Click the instance name in the Object Explorer, select Properties
> - Select Security page and make sure SQL Server and Windows Authentication
> mode is selected.
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ========================================
=============
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||Michael,
Thank you very much for your help.
When I installed SQL Server 2005 initially, I use Wondows Authentication
mode. After the installation, I changed to Mixed mode. Then I setup the new
password for 'sa' and other SQL Server logins, I cannot login with any SQL
logins.
I just found out the Login properties (status) for those SQL logins ware
setup to "Disable" by default, after I change them to "Enaled", I can login
with SQL logins.
Thank you so much !!!
Kai
"Michael Cheng [MSFT]" <v-mingqc@.online.microsoft.com> wrote in message
news:g8q%235hfCGHA.3992@.TK2MSFTNGXA02.phx.gbl...
> Hi Kai,
> This issue occurs because SQL Server Management Studio cannot correctly
> report the error when the maximum number of concurrent connections has
> been
> reached.
> To work around this issue, you can use the sp_configure Transact-SQL
> procedure to increase the maximum number of concurrent connections. You
> can
> also manage the instance of SQL Server 2005 in other ways. For example,
> you
> can use the sqlcmd utility.
> To use sp_configure to increase the maximum number of concurrent
> connections, follow these steps:
> 1. Click Start, click Run, type cmd, and then click OK.
> 2. At the command prompt, type the following command, and then press
> ENTER.
> sqlcmd.exe -E -S servername
> 3. When you successfully connect to the instance of SQL Server 2005,
> execute the following Transact-SQL statements at the SQL Server prompt.
> sp_configure 'user connections', <NewNumber>
> Go
> Reconfigure
> Go
> 4. Restart the SQL Server service for the change to take effect.
> Thank you for your patience and cooperation. If you have any questions or
> concerns, don't hesitate to let me know. We are always here to be of
> assistance!
>
> Sincerely yours,
> Michael Cheng
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ========================================
=============
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||Hi Kai,
Happy New Year! You are welcome!
If you have any questions or concerns next time, don't hesitate to let me
know. We are always here to be of assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.|||By default max no. of connections is set to 10.
To increase the maximum no. of connections
1. In Object Explorer, right-click a server and click Properties.
2. Click the Connections node.
3. Under Connections, in the Max number of concurrent connections box, type
or select a value from 0 through 32767 to set the maximum number of users
that are allowed to connect simultaneously to the instance of SQL Server.
set it to 0 (it means unlimited connections)

Cannot Login as sa

SQL 2000 on Windows2003
When we remote desktop to our SQL server we cannot login using the “sa”
user. We get a message saying the user name or password is in error.
The “sa” has permissions to do anything on the database (Not my idea).
The
password is correct as I can login to Query Analyzer from my desktop using
“sa” and password.
The only user we can login as is administrator.
This issue seems to have caused an application to fail, as it uses the “sa
”
account.
Interestingly, we can log on to the original SQL Server, on Windows 2000,
using the “sa” user. The app works fine there. We migrated everything
to
w2003 last November. We could never login as “sa” but the app was okay.
During some vender work on the app, the "sa” password was changed, that br
oke
the app. We changed the password back, app is still broke. Vendor says it
is because we can’t log on as “sa”.
CrystalJimYou shouldn't be logging in as 'sa' anyway - it's a mark of laziness of
the developer that created the app. Anyway, <stepping down off my
hobby-horse> is the server in Windows Authentication mode or mixed
mode? You should be able to tell by executing this statement:
SELECT SERVERPROPERTY('IsIntegratedSecurityOnly
')
*mike hodgson*
http://sqlnerd.blogspot.com
CrystalJim wrote:

>SQL 2000 on Windows2003
>When we remote desktop to our SQL server we cannot login using the “sa”
>user. We get a message saying the user name or password is in error.
>The “sa” has permissions to do anything on the database (Not my idea).
The
>password is correct as I can login to Query Analyzer from my desktop using
>“sa” and password.
>The only user we can login as is administrator.
>This issue seems to have caused an application to fail, as it uses the “s
a”
>account.
>Interestingly, we can log on to the original SQL Server, on Windows 2000,
>using the “sa” user. The app works fine there. We migrated everything
to
>w2003 last November. We could never login as “sa” but the app was okay
.
>During some vender work on the app, the "sa” password was changed, that b
roke
>the app. We changed the password back, app is still broke. Vendor says it
>is because we can’t log on as “sa”.
>
>|||You shouldn't be logging in as 'sa' anyway - it's a mark of laziness of
the developer that created the app. Anyway, <stepping down off my
hobby-horse> is the server in Windows Authentication mode or mixed
mode? You should be able to tell by executing this statement:
SELECT SERVERPROPERTY('IsIntegratedSecurityOnly
')
*mike hodgson*
http://sqlnerd.blogspot.com
CrystalJim wrote:

>SQL 2000 on Windows2003
>When we remote desktop to our SQL server we cannot login using the “sa”
>user. We get a message saying the user name or password is in error.
>The “sa” has permissions to do anything on the database (Not my idea).
The
>password is correct as I can login to Query Analyzer from my desktop using
>“sa” and password.
>The only user we can login as is administrator.
>This issue seems to have caused an application to fail, as it uses the “s
a”
>account.
>Interestingly, we can log on to the original SQL Server, on Windows 2000,
>using the “sa” user. The app works fine there. We migrated everything
to
>w2003 last November. We could never login as “sa” but the app was okay
.
>During some vender work on the app, the "sa” password was changed, that b
roke
>the app. We changed the password back, app is still broke. Vendor says it
>is because we can’t log on as “sa”.
>
>