The server principal "XYuser" is not able to access the database "Ydb" under the current security context

SQL2005 on winserver 2003. I have a view in Xdb that accesses tables in 2 different databases (Xdb and Ydb) on the same server. I have mixed mode security. I have a SQL user (XYuser) that has read access to all tables and views on both databases, yet when I try to access the view using a C# windows application I get the following error:
The server principal "XYuser" is not able to access the database "Ydb" under the current security context
This same scenario works under SQL 2000. I looked through the postings and tried to set TRUSTWORTHY ON on both databases but that didn't help. I can access any other views or tables on the SQL 2005 server, just not the one that joins the tables cross databases. Any help is much appreciated... john

This appears to be a Login/Database Mapping issue.  I was having this problem, but was able to resolve it as follows:
Using the SQL Server management Studio:
In the Object explorer, under the SERVER security folder (not the database security folder), expand Logins. 
That is: ServerName -> Security -> Logins
NOT: ServerName -> Databases -> DatabaseName -> Security -> Users
Select the Login that is having the troubles.  Right click on the Login and select ‘Properties.’
The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.  When I was getting the error, the database in question was not checked (even though the Login was assigned as a User on the database itself).  Map the Login by checking the box next to the database name.  Set the default schema.  Then select the roles for the Login in the Database role membership list box.  I selected db_datareader and public.  After clicking OK to save the changes, the problem was resolved.
In order to ‘Map’ the Login, the Login must not already be as User on the database, so you may have to go to the database security (ServerName -> Databases -> DatabaseName -> Security -> Users) and delete the Login from the list of database Users before mapping the Login to the database.

Similar Messages

  • Since the last update, I am not able to access my itunes music on my computer. Help

    Since the last update, I am not able to access my itunes music on my computer.  I have an error message, The song could not be used because the file could not be found.   Would you like to locate it.  HELP!!

    1.10.6 works in Yosemite, I suggest removing it and installing a new copy, from the App Store or from Amazon. They both work.

  • I am not able to access my icloud account as the apple id it defaults to no longer exists and when i try to use it by resetting the password it says email verification sent but I never receive anything.  It is hung up on verifying and I can not do a thing

    The apple id I used to set up my ipad no longer exists and it is the same id for icloud and itunes.  I have changed my apple id but can not access my icloud account to change the id.  I am hung up on "verifying" and have tried everything.  It does not send any emails verification even though it says it has sent it.  I have trie the security questions and it says wrong birthdate but it is not the wrong birthdate.  I can not delete the account without a password and when I enter the password that was originally with that id it says wrong password.  As a result I am not able to update twitter, facebook, etc and basically unable to do anything until I can delete and reestablish this icloud account. 

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT5622 had not used my itunes in awhile and the other day I was not able to access my itunes account, had to reinstall itunes and now I can not find any of my apps that I had in my library.

    Have not accessed my itunes account in some time, the day I found that I could not get itunes to run or even open up, I then tryed to reinstall itunes to my computer, I then was able to access my account and some of my library, but not any of my APPS??? How does one recover APPS lost in a reinstall.

    Are the files still physically on your HD?
    [User]/Music/iTunes/Media/Music is the default location. Unless you suddenly have a bunch of new "free space" on your hard drive, they're still where they were, you just need to create a new library file.

  • I just purchased an I pad mini and when I send an email a get the message  "a copy has been placed in the outbox.  Recipient was rejected by the Server.  I do not know what that means.  Who is the server.  Why are the emails not sent?

    I just purchased the new I pad mini Retina display 16 GB and have AT&T Lite.
    I cannot send emails.  I do receive them.
    The message is "copy placed in outbox.  Recipient rejected by the server".
    Who is the server?

    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • I am not able to access gmail. Error reading -The proxy server is refusing connections. Please help

    I get the attached error message when trying to access my gmail account "The proxy server is refusing connections. Firefox is configured to use a proxy server that is refusing connections. The problem started today. No issues before.
    Second problem although less of a concern - I am using Firefox 16.0.2.I tried to update to latest version and got the following message " ERROR The requested URL could not be retrieved"
    I can still access my gmail account though my IPAD

    hello, i've tried it with a fresh copy of a catalan firefox & it's showing up as expected for me...
    please try if it's the same when you launch firefox in safemode once (then it might be an issue with an extension hiding this setting) or else try a reset of firefox.
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    [[Reset Firefox – easily fix most problems]]

  • Not able to create a database link using the database gateway of oracle 11g

    HI,
    While trying to create a database link to SQL server from Oracle ,using the database gateway provided with 11g, i am getting the following error while making use of it in selecting columns from tables :
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    These are the steps i have followed for setting up:
    1.Ran the set up for the Database gateway.and mentioned the SQL server name and database .ALos set up a listener.
    2. Added the following in the Listener.ora of Oraclehome 11/NETWORK/ADMIN:
    LISTENER_SQL_FCD =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost) (PORT = 1541)
    SID_LIST_LISTENER_SQL_FCD =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME=dg4msql)
    (ORACLE_HOME= D:\app\20537\product\11.1.0\db_3)
    (PROGRAM=dg4msql)
    3.Added the following in tnsnames.ora inOracle home/NETWORK/ADMIN:
    dg4msql=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1541))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    4. Following is the entry in initdg4msql.ora in C:\product\11.1.0\tg_5\dg4msql\admin:
    HS_FDS_CONNECT_INFO=10.148.45.242:1433//SalesDemo
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    5. Created the database link :
    create database link dblink
    connect to "sa" identified by "<pswd>"
    using 'dg4msql'
    On running :select * from test1@dblink i get the following error:
    Error starting at line 1 in command:
    select * from test1@dblink
    Error at Command Line:1 Column:20
    Error report:
    SQL Error: ORA-28513: internal error in heterogeneous remote agent
    ORA-02063: preceding line from DBLINK
    Is there any issue with the set or definition that I get the above error?

    What is the version of the Oracle database in which you have specified/and use the database link?
    If it is for example 10.2.0.3.0 you need to apply the mandatory patch for RDBMS bug 5965763 first before being able to use an 11g gateway. Have a look at MetaLink note 457808.1 for details about this patch.
    Regards,
    Ed

  • Not able to connect to database: ORA-28001: the password has expired

    I started getting the 'password has expired' error in my SOA server log today (six months after installing my SOA Suite 11.1.1.4 development environment). I found a tip in an old forum thread:
    Failed to connect to database instance: ORA-28001: the password has expired
    and changed the password expiration time as suggested, and bounced my SOA server hoping for the best. But I'm still getting the password has expired error. Is there a way to clear that out so that I don't have to go back and figure out which user(s) are being affected and what their passwords should be reset back to so that my SOA environment will work again? Thanks!

    Hi,
    Better to check the password_life_time unlimited for all your schemas, suppose your prefix is DEV you may have:
    DEV_MDS
    DEV_ORABAM
    DEV_ORASDPM
    DEV_SOAINFRA
    Cheers,
    Vlad

  • I purchased iTunes $15 card at Dollar Store.  I recall entering the code somewhere but was not able to access iTunes . What can I do to get the card added to my Apple store account .

    I have misplaced the card or accidentally threw it away! I recall entering the code on back somewhere in my apple store app. Is there a way to find out if I did it right? If I did not do it correctly can u help me? Pleeeease!!

    Launch the App store or iTunes store...scroll all the way to the bottom...your Apple ID & any credit balance will be displayed. If not there, & you no longer have the card, don't waste your time contacting iTunes support, as there is nothing they can do for you.
    You can also login to iTunes on your computer, & any credit balance will be displayed next to your Apple ID.

  • I'm not able to access to the internet with my ipod ..help! Non riesco a connettermi su internet via wi-fi !

    Salve, ho appena comprato il mio ipod di 8G..  connettendomi wi-fi al router di casa mia, aprendo safari (o le altre applicazioni che richiedono la connessione internet) spunta la finestra con scritto "Impossibile aprire pagine, Safari non può aprire la pagina perché non è connesso a Internet" Ho provato e riprovato, ma niente! Spero possiate aiutarmi, grazie! :)
    Hello, I've just bought my ipod (8Gb)... even with the wi-fi I'm not able to access to the internet, opening any app that needs internet my ipod shows this " Cannot open page, Safari cannot open the page because it is not connected to the internet"  I tried and I tried but it was useless..! I hope You can help me! Thank you and sorry if my english isn't right

    I can connect to the site using another computer on my network. It's completely isolated to my iMac.

  • Not able to access webservice after migrating from 8.1 to 10.3,plz help

    Hi All,
    Prev our application was running in weblogic 8.1 and now we moved to 10.3
    We are able to deploy our webservice in 10.3 and access the wsdl but we are not able to access the webservice from the client.
    Even the testclient is not comming up.
    After spending long time in that,now i dont have any clue on this issue.
    Plz help on this
    Thanks ni advance,
    Mouli

    Sunil,
    We are not seeing any exception.We regenerated the webservice and then deployed in the 10.3
    When we make req from the client ,we are getting null response but thing is there are no log trace in the server side for that
    folllowing is the input string we are pasing to the method notifyservice
    IN the client we pass the wsdl url and then pass the following input string and hit the notifySerivce method
    Req:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><object><GLCCode>102431</GLCCode><callBackNumber>888256798</callBackNumber></object>
    Res:
    <m:notifyService xmlns:m="http://www.testportal.com/outbound/tsp/WowWebservices">
    <result xsi:nil="true"/>
    </m:notifyservice>
    Therre was an exception in the client side,plz check below
    javax.xml.rpc.soap.SOAPFaultException: Failed to get operation name from incoming request
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
    Thanks For your time,
    Mouli

  • Enterprise manager is not able to connect to database instance

    Hi
    I am having a problem with Oracle EM. I would appreciate very much if anyone can help me.
    I installed Oracle on XP which runs on virtual pc on XP as well. Everything is fine, I can connect to database with sqlplus, and there were no errors during installation.
    But the problem is that, when I try to connect to database with EM, it says:
    Enterprise manager is not able to connect to database instance . The state of the components are listed below.
    Can anoyone help me?

    user10637311 wrote:
    When you want OEM DB , your existing DB should be created by DBCA or if suppose manually creaed DB then you have to configure that DB to EM by
    "emca -config dbcontrol db -repos create". for these two cases istener should be running.
    emctl start dbconsole -> to start dbconsole service
    emctl status dbconsole-> status of servicesI am sorry, I was looking at $ORACLE_HOME\admin . And in the proper path, both listener.ora and tnsnames.ora do exist.
    emca -config dbcontrol db -repos create :
    <last part>:
    INFO: This operation is being logged at C:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-02-18_02-01-40-AM.log.
    Feb 18, 2010 2:02:46 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
    INFO: Stopping Database Control (this may take a while) ...
    Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error creating the repository
    Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
    cl\emca_repos_create_<date>.log for more details.
    Feb 18, 2010 2:03:19 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-02-18_02-01-40-AM.log for more details.
    Could not complete the configuration. Refer to the log file at C:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-02-18_02-01-40-AM.log for more deta
    ils.
    C:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\or
    cl\emca_repos_create_<date>.log:
    Check if repos user already exists.
    old 6: WHERE username=UPPER('&EM_REPOS_USER');
    new 6: WHERE username=UPPER('SYSMAN');
    old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
    new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
    old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
    new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
    old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
    new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
    old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
    new 17: raise_application_error(-20001, 'SYSMAN already exists..');
    old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
    new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
    DECLARE
    ERROR at line 1:
    ORA-20001: SYSMAN already exists..
    ORA-06512: at line 17

  • I am not able to access anything on my macbook pro, including safari, appstore, finder, etc

    I was having ad pop ups issue in my browsers and i was following the starred answer in the following link,
    Safari keep Pop-up Ads with new tab
    But after deleting the files mentioned, i am not able to access anything.. i have restarted many times and opened it in safe mode. but i cant access anything.. can someone help me ?
    Thanks..
    Vignesh

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.
    If you bought the product in the U.S. directly from Apple (not from a reseller), you have 14 days from the date of delivery in which to exchange or return it for a refund. In other countries, the return policy may be different. If you bought from a reseller, its return policy applies.

  • The build directory of the test run either does not exist or access permission is required.

    i am trying to run automated tests
    i follow the steps in the web but when i have 2 issues that does not solve
    1. i created console project and add build definition without drop folder and queue builds that success.
    2. i created C# unit test and add build definition and run it from VS and it worked and done what i want to do.
    3. i built lab with 1 machine and define the controller on this pc ( the machine in the lab is another pc)
    4. i created test suite with test cases and from vs 2013 i associated automation nethod that i created in 2.
    5. when i try to associate the builds for the test plan i have a PROBLEM(1):
    this happened every new build that i try to assign - all the builds appears after refresh and when i press assign to plan button
    a pop up shown with error : " The build that you selected for this plan no longer exist " but he chose it in build in use but there no work item under it - the list is empty even that there are 2 tests under this test suite.
    and than when i try to run the automated tests i have this PROBLEM(2):
    The build directory of the test run either does not exist or access permission is required. and the test failed.
    Please Help
    Roey

    Hi Rory,
    Thank you for posting in MSDN forum.
    According to the error message:
    (1) a pop up shown with error : " The build that you selected for this plan no longer exist "
    I tried to create a build definition without the drop folder location for unit test solution from the VS IDE, and then I try to select the Build in use option to add the Available builds, then click this Assign to plan. I found that I get same error message
    with yours like the following screen shot.
    However, when we try to create a build definition with drop folder location for this same unit test solution and then build successfully in the VS IDE.
    After you add the Available builds and then click this Assign to plan in the MTM, it work fine.
    Therefore, I assume that the issue is related to that you did not specify a build directory for automated test case. MTM need to know where is the drop location of the build building your tests.
    http://stackoverflow.com/questions/20033217/couldnt-run-my-test-using-microsoft-test-manager
    In addition, I did some research about the problem 2:"The build directory of the test run either does not exist or access permission is required. and the test failed."
    I know that the error message occur in either of the following conditions:
    1. The account under which test controller is running does not have read permission on the build directory. (The build directory is same as the drop location of build associated with this test run.) 
    2. The build directory itself does not exist.
    So please refer the following blog to check this issue:
    http://blogs.msdn.com/b/aseemb/archive/2009/11/25/error-starting-the-test-run-build-directory-of-the-test-run-is-not-specified-or-does-not-exist.aspx
    Therefore, I suggest you can try to specify a drop location for build when you run the automated test from the MTM and then check this issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I keep getting a pop up dialogue box telling me the URL is not supported and that it can't connect to the server, even though I am able to surf the net

    I keep getting a pop up dialogue box telling me the URL is not supported and that it can't connect to the server, even though I am able to surf the net

    Are you using OS X Server here, or is this a connection with some other server?  If this is OS X Server, what version is running?
    Please post a screen shot of the dialog box, and an example of a URL that's failing.  (You can use ⌘⬆4 (command shift 4) to activate the screen capture mechanism, and the camera icon here to upload the image.  Please make sure you don't include any sensitive information in what you're uploading.)

Maybe you are looking for

  • Web Dynpro context field limitation for the form

    Hello,    I have created a Web Dynpro with the context fields for Adobe form data from a structure (about 51 fields). When the form is created with reference to the context, the context is not transferred to the Adobe form. Similarly created another

  • Inserting a document from the web

    I would like to know how to insert this .txt file into this web page like this site has done. Any help will be greatly appreciated.

  • Help with today's date - 2 days as a string for a file name

    This will be an Expression/Connection String for a Flat File Connection Manager. Need it in this format COMPANY20150402.txt except the formula needs to incorporate the DATEADD("D", -2, Getdate()) "COMPANY" + (DT_STR,4,1252) DatePart("yyyy",getdate())

  • GRC10: Mandatory Comments on SPM Log Review

    Gurus, is there a way to make comments mandatory when approving the SPM Log Report that the controller reviews? I have set the Task Setting to Comments Mandatory -> Approval (activated the workflow). Yet this has no impact. The controller is not forc

  • Split & Join

    Hi Everyone. i have a signle column in a source for name field but i in target table i define three column for name(first name, middle name and last name). how i will map one source column to these three target column. Similary if i want to join two