SQL server(PC1) --- PC2: Login failed. The login is from untrusted domain and cannot be used with windows authentification

Hey,
I'want to make connection from my laptop(xxx.xxx.xxx.xxx = A) to a fixed computer(SQL server xxx.xxx.xxx.xxx =B). My connection string = "Provider=SQLNCLI11; Data source:name-pc/SQLEXPRESS; Integrated circuit=SSPI;Intial Catalog=Database name for visual
studio C#.
Laptop -> PC1 : Eror
It works when i use localhost or 127.0.0.1 and i can read my database without any problems if i install SQL server on my laptop. Know i install it to PC1 and uninstall on my laptop. When i change the name-pc by an ip-adress i get this error: Login failed.
The login is from untrusted domain and cannot be used with windows authentification. I did some research on multiple forums where they say about Local security policy(secpol.exe) but i don't have this file. 
PC2-> PC3: work fine but i want to work with my laptop and i don't understand why it isn't working with my Laptop. 
Can someone help me?
Thx a lot and sry about my english(its a disaster) 
Thibaut

Hello,
Yes, for the Windows Authentication to work you should be using the same Windows account and password.
Are you willing to create SQL logins inside SQL Server and allow your users to connect to SQL Server using SQL Authentication
instead of Windows Authentication? That could be a solution on a workgroup network.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com

Similar Messages

  • Error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication" on SQL Server 2008 R2 Enterprise Edition 64-bit SP2 clustered instance

    Hi there,
    I have a Windows 2008 R2 Enterprise x64 SP2 cluster which has 2 SQL Server 2008 R2 Enterprise Edition x64 SP2
    instances.
    A domain account "Domain\Login" is administrator on both physcial nodes and "sysadmin" on both SQL Server instances.
    Currently both instances are running on same node.
    While logging on to SQL Server instance 2 thru "Domain\Login" using "IP2,port2", I get error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication". This happened in the past
    as well but issue resolved post insatllation of SQL Server 2008R2 SP2. This has re-occurred now. But it connects using 'SQLVirtual2\Instance2' without issue.
    Same login with same rights is able to access Instance 1 on both 'SQLVirtual1\Instance1' and "IP1,port1" without any issue.
    Please help resolve the issue.
    Thanks,
    AY

    Hello,
    I Confirm that I encountred the same problem when the first domain controller was dow !!
    During a restarting of the first domain controller, i tried to failover my SQL Server instance to a second node, after that I will be able to authenticate SQL Server Login but Windows Login returns Error 18452 !
    When the firts DC restart finishied restarting every thing was Ok !
    The Question here : Why the cluster instance does'nt used the second DC ???
    Best Regards     
    J.K

  • Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

    Hello,
    I have gone through couple of posts regarding this issue but couldn't get the right solution. Could you please help what exactly we are missing here.
    Details:
    1) we have two SQL instances on one standalone machine (Default Instance (2008 SP3) + Named Instance (SQL 2012 SP1))
    2) Both instances are configured to accept SQL+ Windows authentication.
    3) when we give access to our users they are getting following exception if they connect with 'windows authentication'. (For both instances)
    Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
    Note: (Being a sys + windows admin I'm able to connect both the instances from same client machine without
    any issues)
    4) Also, we observed following error in windows application event log,
     SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure.
    The logon attempt failed   [CLIENT: 192.168.xxx.xyx]
    5) If we create SQL login it is working fine without any issues.
    Could someone guide/help  me identifying and fixing this issue.
    Thank you

    Hello,
    Are those Windows Logins associated to domain Windows accounts? Windows Logins work for domain accounts and local Windows account created on the server where the SQL Server instance is installed (and used to login locally to the server).
    Could you try to delete one of the Windows logins that fail to login , and try to recreate them?
    The following resources may help:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/12/19/error-message-quot-login-failed-the-login-is-from-an-untrusted-domain-and-cannot-be-used-with-windows-authentication-quot.aspx
    http://support.microsoft.com/kb/555332
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • HT1937 Have a AT&T iphone 4 and it will not let me login to the iPhone without a sims card and if you use a AT&T sims card it won't work

    Have a AT&T iphone 4 and it will not let me login to the iPhone without a sims card and if you use a AT&T sims card it won't work

    Define "won't work"...
    You can not activate an iPhone without a SIM. If the phone is carrier locked, you must have a valid Sim from the correct carrier.
    What EXACTLY is the message you're getting?

  • Error: The chosen certificate was not exported and cannot be used for SSL

    Hello there,
    when I try to configure the profilemanager in OS X Server and it comes to choose a certificate i get the following message:
    The chosen certificate cannot be used.
    The chosen certificate was not exported and cannot be used for SSL.
    I chose our Wildcard certificate we received from Thawte.
    It is completely imported in the Keychain from the Mac.
    (Sorry if any sentence is wrong, I translated it from german to english)
    Best regards,
    Christoph

    Is this a regular web ssl cert or a code signing cert?

  • The backup file contains unrecognized data and cannot be used

    I am trying to restore files from an NT back up on a SBS 2003.   The backup was taken on this machine and trying to restore to the same.   I get this error: The backup file contains unrecognized data and cannot be used.
    I tried copying it to a different machine with no luck.  Any suggestions?
    Robert

    Hi,
    Since the backup file cannot be restored on a different machine, the backup file could be corrupt. You need to use some third party recovery utilities to restore the backup file.
    For more detailed information, please refer to the article below:
    Windows NTBackup restore troubleshooting tips
    http://searchdatabackup.techtarget.com/tip/Windows-NTBackup-restore-troubleshooting-tips
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    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.

  • Can the academic version of Photoshop CS 5 Extended be used with Windows 7 64 bit operating system?

    Can the academic version of Photoshop CS 5 Extended be used with Windows 7 64 bit operating system?

    Yes.
    Adobe - Photoshop CS5 Extended System Requirements

  • I just updated my MacBook Pro to 10.7.5 and got a message that the AppleUSBEthernetHost.kext was improperly installed and cannot be used. How to I find and install this extension?

    I just updated my MacBook Pro to 10.7.5 and got a message that the AppleUSBEthernetHost.kext was improperly installed and cannot be used. How to I find and install this extension?

    Open the AppleScript Editor in the /Applications/Utilities/ folder, copy and paste the entire following line into it, and press the Run button:
    do shell script "chown -R root:wheel /System/Library/Extensions/AppleUSBEthernetHost.kext" with administrator privileges
    If it doesn’t work, throw that item away and then reinstall iTunes.
    (114264)

  • Mac OS X Server 4.1, Xcode 6.3.1 "This version of Xcode cannot be used with this server"

    I'm utterly confused.
    The documentation for Mac OS X Server (from https://help.apple.com/serverapp/mac/4.0/#/apdA154F061-7CE4-4A58-843D-DC2CE3A1AE 8C ) shows that Xcode 6 or later (my emphasis). I have installed Mac OS X 10.10.3, Mac OS X Server 4.1, Xcode 6.3.1. I have no apps in the App Store's "Update" tab that need to be updated (just now double-checked). I clicked to the Xcode tab under "Services" in OS X Server, clicked the "Choose Xcode…" button, selected the version of Xcode from the Applications folder on the root HDD, and got the error message "This version of Xcode cannot be used with OS X Server."
    So .... now what?

    Well, for some reason it just started working.  I was busy trying to fix another issue when I noticed that the Xcode service was running.  I would still like to know what happened in case I have a similar problem with the next OS/Server upgrade, but for now it's at least running.

  • I have deleted my iCloud app from my iPad and cannot get it back.  I've reset the home screen, everything else appears but not that

    Not sure if I had to submit my question:
    I have deleted the iCloud app from my iPad and cannot get it back.  I've reset the home screen, everything else appears but not that

    There isn't an iCloud app, I'm not sure what it is that you have deleted, but it isn't iCloud.

  • Cannot open database " " requested by the login. The login failed. SQL Server 2008 Express

    I am getting this message when I try to create a path to a work file from my application.
    Cannot open database " " requested by the login.  The login failed. 
    SQL Server 2008 is installed.  I have placed the computer name and instance in the application's config file as connection source. 
    The database is also not showing up in SQl Server Management Studio in list of databases.
    Thanks.

    Hello,
    Can you please confirm login exist in the sql server and its mapped to particular database.
    Are you directly connecting to SSMS?
    Or using any 4 part query?
    Please share how you are accessing the DB and screen hots of error messages.
    Thank You.
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'

    I want to grant permissions to all domain users to view reports on our Report Server. Domain users are able to access our Report Server URL and folder, but when they click on a report item they get an error message: 
    "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'"
    I'm using windows authentication and configured the local service account in SSReportS Config Manager as the credentials to connect to the Report Server DB. 
    Can someone please help how I should properly do this step by step to give all domain users permissions to view a report in SSRS?
    Thanks much! - Rookie DBA

    Hi IWAR,
    The error message "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'" means the user 'USER LOGON' does not have permissions to access the "ReportServer" database.
    To fix this issue, please verify that the user has a valid database user login. For more details, please refer to the following steps.
    In SQL Server Management Studio, open Object Explorer and expand the Databases folder.
    Expand the database in which to create the new database user.
    Right-click the Security folder, point to New, and then click User.
    On the General page, enter a name for the new user in the User name box.
    In the Login name box, enter the name of a SQL Server login to map to the database user.
    Click OK.
    Reference:
    http://technet.microsoft.com/en-us/library/ms156468(v=sql.105).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Cannot open database " " requested by the login. The login failed for user " "

    Am noticing application event log error that states as the title Cannot open database "ReportingService_4a1e5b9cd6364e8389ed0af69d2628f5_Alerting" requested by the login. The login failed for user "domain\user"
    I think a couple weeks ago while troubleshooting something for a new backup appliance we were installing a password was changed on the user that it is displaying...it seems that this has happened before and I had to go into SQL Server Management studio to
    update the password but I'm not sure where it is I need to do this.
    Any assistance greatly appreciated.

    DOMAIN\User would refer to a domain user account, and SQL does not store passwords for those accounts. It does store passwords for SQL users. Can you validate the type of account and what level of access it has to that db?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM

    Dear ALL 
    After successfully shifting the CRM from 2011 to 2013 i found a problem in Reporting section none of the report is working after some finding i conclude that MSCRM_FetchDataSource is not able to connect successfully 
    Through my report manager i tried to test the connection of MSCRM_FetchDataSource but i got the following error 
    System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for
    user 'NT AUTHORITY\SYSTEM'. 
    I already add the NT Authority \ System as a db_owner under my database user of MSCRM_CONFIG
    But still no success any one have any idea why it's happaning 
    Regards 
    RB

    I found a solution I hope my post will help other
    I gave the  db_owner to 'NT AUTHORITY\SYSTEM' and 'NT AUTHORITY\NETWORK' and assigned with both CRM and Config database
    It resolved my issue
    RB

  • SQL Server Import Export Wizard fails while trying to retrieve the data from FastObjects Database

    When trying to import data from FastObjects database to SQL Server 2008 R2 using import/ export wizard we get the following error message :
    "Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
    Clicked on View button, the source data is retrieved correctly.
    Clicked on Edit Mapping button, the Import Export Wizard failed with the below error message:
    ===================================
    Column information for the source and destination data could not be retrieved.
    "Test" -> [dbo].[Test]:
    - Cannot find column -1.
    (SQL Server Import and Export Wizard)
    ===================================
    Cannot find column -1. (System.Data) 
    at System.Data.DataColumnCollection.get_Item(Int32 index) at System.Data.DataRow.get_Item(Int32 columnIndex) at Microsoft.DataTransformationServices.Controls.ProviderInfos.MetadataLoader.LoadColumnsFromTable(IDbConnection myConnection, String[] strRestrictions)
    at Microsoft.SqlServer.Dts.DtsWizard.OLEDBHelpers.LoadColumnsFromTable(MetadataLoader metadataLoader, IDbConnection myConnection, String[] strRestrictions, DataSourceInfo dsi)at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfoFromDB(IDbConnection
    mySourceConnection) at Microsoft.SqlServer.Dts.DtsWizard.TransformInfo.PopulateDbSourceColumnInfo(IDbConnection mySourceConnection, ColumnInfoCollection& sourceColInfos)

    Hi Chennie,
    Thank you for the post.
    Does the issue persists after you use the "Write a query to specify the data to transfer" option instead of “Copy data from one or more tables or views” option? If so, the issue may occur due to incorrect data type matching between the FastObjects database
    data types and SSIS data types. In this condition, I don’t think it is necessary to upgrade the SQL Server version. Since you can open the Column Mappings dialog box, please try to modify the data type mapping manually.
    In addition, the issue seems to be the same as the issue described in the following blog:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/09/09/sql-server-import-export-wizard-fails-while-trying-to-retrieve-the-data-from-pervasive-database.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • In Photoshop Elements 12 eigener Ortner Löschen

    Guten Abend Kann mir jemand sagen, wie ich bei Photoshop Elements 12 bei Eigene Ortner ein solchen löschen kann. Damit die Fotos da drauf verschwinden.  Lg Speedpic

  • Updating a managed metadata column from choice column value

    I am trying loop through all lists in a web, and for each list,  1. create a managed metadata column->Working 2. Pull value from choice column->Working 3. Move choice column value to managed metadata column->Not Working Point number 3 is not working.

  • Printing - Terrible Margin Problem

    I have read all of the posts regarding margin problems. Ill tried creating the custom 'iCal' size in Safari but nothing works. When printing in week view all 4 margins spill over the edge. This occurs whether printing to paper or PDF. Any fixes to th

  • Photoshop CS4 on new PC

    I have Photoshop CS4 on my PC. I have just bought a new PC and want to download the software onto that too - where do I download it from? Regards Rick

  • Help transferring - ahhh!

    I can transfer tunes no problem, as long as i dont use album art. As soon as i use album art the first tune i transfer will hange at 80-90%. It sometimes says something about a "thumb" database file. Help i am using xp with all service packs and late