Solved

sql server and asp.net give me error

Posted on 2011-02-10
2
566 Views
Last Modified: 2012-05-11
Logon failed for login 'shivadmin' due to trigger execution.
Changed database context to 'shivdiamond'.
Changed language setting to us_english.

lots of time i get this error i try every thing but not work.
0
Comment
Question by:ajaymaster143
2 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 34868322
0
 
LVL 13

Expert Comment

by:geek_vj
ID: 34868807
This happens when you drop the database before the trigger is fired. As the database is dropped, you cannot login through the SQL management studio. So, you need to use DAC connection as below from cmd prompt:

sqlcmd -S LocalHost -d master -A

Drop Trigger <Triggername> On All Server

Please replace Localhost in the first query with your servername\Instancename if it is not the default instance.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now