SQL Server connection string

前端 未结 1 497
别那么骄傲
别那么骄傲 2020-12-21 02:50

I\'m guessing you get hundreds of these questions, but here goes:

So I\'m trying to get a Honeywell Dolphin 6100 mobile device (CE5.0, .NET Compact Framework) to tal

相关标签:
1条回答
  • 2020-12-21 03:12

    CE 5.0 does not support integrated security. I believe the first version to support it was mobile 6.1. In any case, you cannot use SSPI with your configuration. You'll have to create a SQL Server user and use that as your connection credentials.

    Another thing to try, besides using a UID/PWD to connect is to refer to the server by IP. It's possible that DNS resolution is not taking place properly on your device. Hmm, that is a whole nother issue. Is your device on the same network as the SQL Server?

    And for future reference, commit this handy URL to memory: http://connectionstrings.com

    EDIT

    Let's see something like... if Named SQL Server instance:

    @"Data Source=192.168.0.56\SERVER_NAME;DataBase=EMS_Main;User Id=joe;Password=pwd;";
    

    if not named SQL Server instance:

    @"Data Source=192.168.0.56;DataBase=EMS_Main;User Id=joe;Password=pwd;";  
    
    0 讨论(0)
提交回复
热议问题