Solved

sql server and asp.net give me error

Posted on 2011-02-10
2
571 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

735 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