To modify the login page as an admin you can access it via Page Management page. Once you find the login page, right click and click "View Page". I needed to add a custom page container, and this worked.
So you can remotely connect to the server and see the restored database but when you click to expand it and view the tables it throws an error. An error like not available in security context or such other such helpful information. The problem in my case is that the user existed, and it had all the proper security. I ran the change users proc on the user...or so I thought. Actually on the upper left somehow the database selected was master. Good thing for co workers that can point out my mistake. So, my fault I guess, although these orphaned users are strange... EXEC sp_change_users_login 'Auto_Fix', ' user ' http://dbadiaries.com/using-sp_change_users_login-to-fix-sql-server-orphaned-users
Came in to a nice DNN error - Connection to the Database Failed when trying to run the website. In my case I had some stray text in the web.config that was not xml. Once I commented it out the site ran properly.
So I had a problem where one of the companies we work with wanted data for a column, however they wanted a single example. However in our system we can have multiple entries for that column. I needed to get a single example other wise when joining would show other many more rows than necessary for what they wanted. SO I turned to Common Table Expressions (CTE)s. Although turned out that because I was excluding data one of my bosses said just not to send that field, because it would be similar to misinformation. Hah. ;With PBs(accountID,PBName,rn) AS ( select ACV.accountID, B.lastName + ', ' + B.firstName + ' ' + B.middleInit, ROW_NUMBER() OVER (PARTITION BY acv.accountID ORDER BY acv.accountID DESC) as rn FROM ACV --- etc joins where --conditions group by ACV.accountID, B.lastName + ', ' + B.firstName + ' ' + B.middleInit ) SELECT --other fields PB.PBName FROM ACV ---joins LEFT OUTER JOIN PBs...
Comments
Post a Comment