Unable to connect to sql server database

i run on CMD:
aspnet_regsql -C "Data Source  =Davidchamoun/sqlexpress : intergrated security= true" -ssadd -sstype p
i got 
a network-related or instance-specific error occurred while establishing a connection to sql server. the server
was not found or was not accessible. verify that the instance name is correct and that sql server is configured to allow remote connections. (provider: SQL Network interfaces . error: 25 – connection string is not valid
unable to connect to sql server database.
im using sql sever 2012 express, microsoft visual studio web 2008 express.
please help me.

i run it as :
aspnet_regsql -C "Data Source =Davidchamoun\sqlexpress : integrated security= true" -ssadd -sstype p
i got the same error :
an error has occurred . details of the exception:
a
network-related or instance-specific error occurred while establishing a connection to sql server. the server was not found or was not accessible. verify that the instance name is correct and that sql server is configured to allow remote connections. (provider:
SQL Network interfaces . error: 25 – connection string is not valid
unable to connect to sql server database.
im using also windows 8.1
pls help me
ty for ur reply

Similar Messages

  • Unable to connect to SQL Server 2008 from OBIEE 11G(on 64 bit Linux box)

    We are unable to connect to connect to SQL Server 2008 from OBIEE 11G which is on 64 bit Red Hat Enterprise Linux.
    Infrastructure: OBIEE 11.1.1.5 64bit, on 64 bit Red Hat Linux Enterprise Linux 5.6 , MS SQL Server 2008 on 64 bit Microsoft Windows Server
    Issue Description: Unable to connect to SQL Server 2008 from OBIEE11G RPD
    Details: We are unable to connect to SQL Server 2008 from OBIEE which is on a 64 bit Linux box. We created the ODBC connection on Linux box to the SQL server. Whenever we try to import metadata it throws an error that says ‘Connection Failed’.
    Here are the steps we followed to setup the ODBC connection on Linux box.
    1) We updated the user.sh file with the LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 values that point to $ORACLE_HOME/bifoundation/odbc/lib
    This is where we found the driver for SQL server SEmsss23.so.
    2) We updated the odbc.ini file with the entry for SQL server with the connection details
    SI_SQL_Server_DEV = SQL Server
    [SI_SQL_Server_DEV]
    Driver=/u001_OAS/Oracle/Middleware/Oracle_BI1/bifoundation/odbc/lib/SEmsss23.so
    Description=DataDirect 5.1 SQL Server Wire Protocol
    Address=10.230.216.52,54970
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=SVBDW_NEW
    LoadBalancing=0
    LogonID=SIDatavalidation
    Password=~~~Password123
    QuoteID=No
    ReportCodePageConversionErrors=0
    3) We updated the IDENTIFIER_QUOTE_CHAR with single quotes instead of double quotes in the DB features of the RPD
    4) We updated the bash_profile file to point the ODBCINI variable to the path where the OBIEE odbc.ini file is present.
    Export ODBCINI=/u001_OAS/Oracle/Middleware/instances/instance1/bifoundation/OracleBIApplication/coreapplication/setup/odbc.ini
    The error in nqsserver.log file says “[nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified.”

    Hi,
    Make sure SQL Configuration Manager make sure the TCP/IP enabled. please try below method
    Method 1
    Re Create a new ODBC & Oracle Bi Server DSN Configuration test it and use it in the connection pools.
    define your ODBC data source in your server where the BI Server is installed. Check your DB connections in your physical layer and make they are defined on your BI Server as well.
    Method 2:
    try using the complete TNS in below format in the datasource name section:
    (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST =DB IP)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORCL) ) and provide the credentials.
    Method 3:
    To use the OCI call interface you need to have oracle client DB to be installed so that you can establish a connection using that DB credentials and connect to the remote dB and then import the tables.....this is the rule of thumb.
    hope helps you.
    Thanks
    Deva

  • Sql developer won't connect with SQL server database on cluster

    Hello,
    I have a microsoft SQL server database on a windows cluster. Name for this cluster is like XXX/YYY
    When I try to connect to this database with SQL developer, I get a failure, mentioning:
    "Status : Failure -Cannot connect to Miscrosoft SQL Server on XXX/YYY"
    As far as I know, I have installed the correct jtds driver (version 1.2.5), since I can connect to sql server databases on single server hosts.
    Does anyone know how to connect to databases on windows clusters?
    Edited by: Ingmar on Jan 16, 2012 4:08 PM
    Edited by: Ingmar on Jan 16, 2012 4:22 PM

    Hi Ingmar,
    Try this is in the port box
    1433/dbname;instance=YYY
    dbname can be omitted
    -Turloch
    SQL Developer team
    1/Giving an instance name in SQLDeveloper connection to SQL Server (from August 2011)
    MS SQL Server Connection
    The correct syntax to deal with this is in the port box
    1433/dbname;instance=instance
    dbname can be omitted
    2/cluster configuration (uses instance name)
    http://stackoverflow.com/questions/1160024/jdbc-connect-string-for-sql-server-cluster
    where vvv\iii is the cluster address: jdbc address is:
    "jdbc:sqlserver://vvv;instanceName=iii"
    3/jtds url details available in
    http://jtds.sourceforge.net/faq.html

  • Not able to connect with Sql Server Database

    Hi,
    I'm not able to connect with Sql Server database.during making connection I'm getting the following error:
    "Status : Failure -I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property."
    Please help
    Regards,
    Neeraj Goel

    Hi,
    I'm using Sql Server 2000.
    I downloaded the driver from the given site and still having the same problem. Do I need to copy the driver file in some specific folder.
    Regards,
    Neeraj Goel

  • Compare methods in C # to connect to SQL Server database in terms of speed,quality and functionality.

    Please compare
    methods in C # to connect to SQL Server
    database (for example,
    3-tier architecture of traditional and 
    entity Framework(linq to entity or linq to sql object model)
    and Linq to SQL) in terms of speed, quality and functionality
    to give me tips.
    Thank you.
    Mojtaba Malakouti.

    That means we need to compare and post the results here?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Cannot connect to SQL Server databases

    All of a sudden I can't connect to SQL server databases from
    my local machine. The databases are on a web server. It just
    started happening, and I never had a problem with it before. I
    can't connect to them in the coldfusion administrator, and I can't
    connect to them using ODBC DSN's either. Has anyone ever run into
    this before? I didn't change anything in the cf admin, and I
    certainly didn't change any logins or passwords in SQL
    Server.

    I've been experiencing a similar problem. Everything was fine
    but I had to reboot CF 8.01.
    After the reboot all the datasources are very slow to respond
    and we get lots of errors of the form :
    Timed out trying to establish connection
    A non-SQL error occurred while requesting a connection from
    blah
    Timed out trying to establish connection
    A non-SQL error occurred while requesting a connection from
    blah
    Everything is working but very slow on database queries. This
    happened a couple of months ago when we last
    rebooted and then it went away.
    Going to have a look for a new JDBC driver from adobe and see
    if that helps ....

  • Issue with connecting to SQL Server Database in 11g

    Hi
    We successfully created odbc connection say "Test" to read SQL Server database using odbc admin.The issue we are facing in 11g is, we are unable to import tables using the database connection "Test" in to Admin tool.
    In 10g we did not come across this issue. We used the same credentials and process incase of 10g and 11g to read SQL Server database, but we are facing the connection issues incase of 11g.
    Please, let us know is there any change need to be done to any config files or is there any way to overcome this issue.
    Thanks.

    Hi,
    What do you mean by 'we are unable to import tables using the database connection'
    Do you get an error message or the connection fails or what
    Please add the details about the issue in order to help
    Regards
    Adil

  • Unable to connect to sql server 2008

    i have windows 8 64-bit on my system, i installed sql server 2008 it installed successfully, but now i'm unable to open server management studio, it is showing error like "provider:named pipes provider, error:40-
    could not open a connection to sql server microsoft sql
    server, error:2" and in configuration manager there is nothing under "sql server services and sql server network configuration"kindly help me to fix this problem

    Hello,
    Please run the Discovery Report as shown in the following resource and make sure the Database Engine Services is listed
    on the report.
    http://blogs.msdn.com/b/petersad/archive/2009/11/13/sql-server-2008-discovery-report.aspx
    If the Database Engine Services is listed on the report, please apply SP3 for SQL Server 2008 since SQL Server is not compatible with Windows 8 without that service pack.
    http://support.microsoft.com/kb/2681562
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How can I  connect to SQL server database thru local network by using JSP?

    I'm currently doing a project by using JSP..And I need to display record from the SQL Server database in our school's local network. May I know how can I do that? How can I write the code so that I can able to access the SQL Server databsase Throught school's network by using JSP? Please tell me step by step how can I do that. I'm using Tomcat 4.1 as Web Server. And I had J2SE and J2EE installed in my computer.

    first you have to establish a ODBC DSN on your computer,
    that connects to the database...you can do that from your control pannel.
    i assume that the TOMCAT server is residing on your computer....(if the webserver is in other computer then you would have to create a System DSN on the data sources ODBC option in the settings>control pannel of that machine)
    then you can use that DSN name to connect to the data base from the class file....for further assistance on how to create the class that access the tutorials in sun site.
    regards
    G

  • Linked Server unable to Connect in SQL Server 2012 after Restarting SQL Server Service it works fine. Why?

    I have created a Linked Server to Access Database of 64 MB in Size located in Remote System to SQL Server 2012.In Start for Some time it works fine and after it is giving the Error 
    OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.".
    Msg 7303, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
    Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
    Previously I thought it as Permission Issue. By trying some fixes proposed in forums it not fixed. But, after restarting the SQL Server Services without changes to the linked Server it works perfectly. How could i fix it. I don't want restart the SQL Server
    Service it leads to Some other process failures.
    RehaanKhan. M

    After all the Errors, When I am restarting the SQL Server its working correctly.
    Whats the problem it is clearing itself after restarting of SQL Server. Why ?. I can't find anything regarding this in SQL Server .
    The following are the Errors i got connecting to SQl Server.
    OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.".
    Msg 7303, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
    Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
    Error-2:
    Executed as user: RMS\Administrator. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST". [SQLSTATE 42000] (Error 7303)  OLE DB provider
    "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.". [SQLSTATE 01000] (Error 7412).  The step failed.
    After unchecking the Allow In Process in OLEDB.ACE Provider Properties.
    Msg 7399, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
    The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" reported an error. Access denied.
    Msg 7301, Level 16, State 2, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
    Cannot obtain the required interface ("IID_IDBCreateCommand") from OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
    for to fix above error i have followed the instructions in the following link,
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/08/19/permissions-needed-to-set-up-linked-server-with-out-of-process-provider.aspx
    This also failed to work. I Restarted SQL Server and make the Linked Server Properties Default to my Configuration and it works fine.
    Can you suggest me a solution for this issue. Every time i don't want to restart SQL Server Services as it effects other jobs and Processes.
    Thank you.
    RehaanKhan. M

  • SAP ECC6.0 cannot connect to SQL Server Database after recreating DB server

    We had a disaster with our ECC 6.0 Development system a few days ago.  The system is called “DEV”.  The SQL Server database server got wiped out and we didn’t have a backup.  Luckily, we did have a backup of the database.  Our system engineers rebuilt the server and our DBA reinstalled SQL Server and restored the database.  The database came up fine, but when we try to start SAP, it fails.  “R3trans –d” also fails.  The database is SQL Server 2008R2 10.50.2769.  The OS is Windows Server 2008R2.
    We verified that the “devadm” and “SAPServiceDEV” accounts have permissions on the on the server. We set the following Environment Variables for the devadm account on the database server:
    DBMS_TYPE = mss
    MSSQL_DBNAME = DEV
    MSSQL_SCHEMA = dev
    MSSQL_SERVER = <database server name>
    SAPLOCALHOST = <database server name>
    SAPSYSTEMNAME = DEV
    We also set the following Registry Key:
    HKEY_LOCAL_MACHINE/Software/SAP/DEV
    Type:     REG_SZ
    Value:   AdmUser
    String:   <database server name>\devadm
    We didn’t install any kind of SAP software on the database server.
    Is there any kind of SAP components we need to install on the database server?  Do we need to run the SAP installer on the database server to get everything setup correctly?  I looked at another one of our SQL Server database servers and it has SAP Management Console installed and there is a C:\Program Files\SAP\hostcntl folder.  I don't know what that is or it has anything to do with SAP being able to connect to the database.
    Here is the error message in the R3trans log file:
    4 ETW000  [     dev trc,00000]  Wed Apr 29 09:44:39 2015 1501385  1.531756
    4 ETW000  [     dev trc,00000]  ERROR: -1 in function ExecuteAndFlush (SQLExecDirect) [line 6702]         35  1.531791
    4 ETW000  [     dev trc,00000]  (102) [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.
    4 ETW000 22 1.531813
    4 ETW000  [     dev trc,00000]  <if user_name() != 'dev' execute as login = suser_sname(suser_sid('dev')) with no revert> failed -- connect terminated
    4 ETW000 38 1.531851
    4 ETW000  [    dblink ,00000]  ***LOG BY2=>sql error 102    performing CON 56  1.531907
    4 ETW000  [    dblink ,00000]  ***LOG BY0=>[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.
    4 ETW000 30  1.531937
    2EETW169 no connect possible: "DBMS = MSSQL ---  SERVER = '<db server name>' DBNAME = 'DEV'"
    Please let me know what we need to do to get SAP to connect to the database.
    Thanks,
    Jerry

    Here it is: 4 ETW000 R3trans version 6.22 (release 720 - 18.11.11 - 11:29:00). 4 ETW000 unicode enabled version 4 ETW000 =============================================== 4 ETW000 4 ETW000 date&time  : 29.04.2015 - 19:33:01 4 ETW000 control file: 4 ETW000 R3trans was called as follows: R3trans -d 4 ETW000  trace at level 2 opened for a given file pointer 4 ETW000  [    dev trc,00000]  Wed Apr 29 19:33:01 2015                                                  83  0.000083 4 ETW000  [    dev trc,00000]  db_con_init called                                                        28  0.000111 4 ETW000  [    dev trc,00000]  set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used        31  0.000142 4 ETW000  [    dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3 4 ETW000                                                                                                  20  0.000162 4 ETW000  [    dev trc,00000]  create_con (con_name=R/3)                                                10  0.000172 4 ETW000  [    dev trc,00000]  Loading DB library 'dbmssslib.dll' ...                                    31  0.000203 4 ETW000  [    dev trc,00000]  DlLoadLib success: LoadLibrary("dbmssslib.dll"), hdl 0, addr 000007FEEE6D0000 4 ETW000                                                                                                1865  0.002068 4 ETW000  [    dev trc,00000]      using "D:\usr\sap\DEV\SYS\exe\uc\NTAMD64\dbmssslib.dll"              14  0.002082 4 ETW000  [    dev trc,00000]  Library 'dbmssslib.dll' loaded                                            13  0.002095 4 ETW000  [    dev trc,00000]  function DbSlExpFuns loaded from library dbmssslib.dll                    15  0.002110 4 ETW000  [    dev trc,00000]  Version of 'dbmssslib.dll' is "720.00", patchlevel (0.200)                84  0.002194 4 ETW000  [    dev trc,00000]  function dsql_db_init loaded from library dbmssslib.dll                  16  0.002210 4 ETW000  [    dev trc,00000]  function dbdd_exp_funs loaded from library dbmssslib.dll                  11  0.002221 4 ETW000  [    dev trc,00000]  New connection 0 created                                                  29  0.002250 4 ETW000  [    dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =  4 ETW000                                                                                                  29  0.002279 4 ETW000  [    dev trc,00000]  db_con_connect (con_name=R/3)                                            12  0.002291 4 ETW000  [    dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3 4 ETW000                                                                                                  16  0.002307 4 ETW000  [    dev trc,00000]  find_con_by_name found the following connection:                          9  0.002316 4 ETW000  [    dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =  4 ETW000                                                                                                  21  0.002337 4 ETW000  [    dev trc,00000]  Thread ID:3492                                                          594  0.002931 4 ETW000  [    dev trc,00000]  Thank You for using the SLODBC-interface                                  17  0.002948 4 ETW000  [    dev trc,00000]  Using dynamic link library 'D:\usr\sap\DEV\SYS\exe\uc\NTAMD64\dbmssslib.dll' 4 ETW000                                                                                                  21  0.002969 4 ETW000  [    dev trc,00000]  dbmssslib.dll patch info                                                  27  0.002996 4 ETW000  [    dev trc,00000]    SAP patchlevel  0                                                      12  0.003008 4 ETW000  [    dev trc,00000]    SAP patchno  200                                                        92  0.003100 4 ETW000  [    dev trc,00000]    Last MSSQL DBSL patchlevel 0                                            20  0.003120 4 ETW000  [    dev trc,00000]    Last MSSQL DBSL patchno        200                                    14  0.003134 4 ETW000  [    dev trc,00000]    Last MSSQL DBSL patchcomment Take care of warnings during database connect (1600066) 4 ETW000                                                                                                  18  0.003152 4 ETW000  [    dev trc,00000]  ODBC Driver chosen: SQL Server Native Client 10.0 native                273  0.003425 4 ETW000  [    dev trc,00000]  Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000                                                                                                128  0.003553 4 ETW000  [    dev trc,00000]  Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000                                                                                              20908  0.024461 4 ETW000  [    dev trc,00000]  Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000                                                                                                3485  0.027946 4 ETW000  [    dev trc,00000]  Driver: sqlncli10.dll Driver release: 10.50.2769                        3695  0.031641 4 ETW000  [    dev trc,00000]  GetDbRelease: 10.50.2769.00                                              475  0.032116 4 ETW000  [    dev trc,00000]  GetDbRelease: Got DB release numbers (10,50,2769,0)                      18  0.032134 4 ETW000  [    dev trc,00000]  ERROR: -1 in function ExecuteAndFlush (SQLExecDirect) [line 6702]      6505  0.038639 4 ETW000  [    dev trc,00000]  (102) [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'. 4 ETW000                                                                                                  27  0.038666 4 ETW000  [    dev trc,00000]  failed -- connect terminated 4 ETW000                                                                                                  31  0.038697 4 ETW000  [    dblink  ,00000]  ***LOG BY2=>sql error 102    performing CON                              49  0.038746 4 ETW000  [    dblink  ,00000]  ***LOG BY0=>[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'. 4 ETW000                                                                                                  27  0.038773 2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = 'XXSQLSAPDEV01' DBNAME = 'DEV'"

  • Unable to connect to sql server 2008 r2 after upgrading from framework 4.0 to 4.5.2 in windows 7 environment

    Hi  All,
    BackGround
    I used to connect to database with Encrypt set true  in sql connection which helps  established encrypted data base connection . I verified  that created certificate in order
    to provide Encrypted connection to database for client is valid.
    Issue :Issue
    is un-able to connect to sql sever2008 r2 from vs2013 by enforcing encryption to true.
    while trying to test the connection from vs2013 error log getting recorded as well as error notification is getting populated as below .
    Step1 :
    from Vs2013 trying to connect to sql server 2008 r2
    step 2: on Click test Connection . getting below mentioned error notification
    Event Viewer Log:<o:p></o:p>
     <o:p></o:p>
    (Process Id: 7472)
    <o:p></o:p>
    .Net SqlClient Data Provider:<o:p></o:p>
    A connection was successfully established with the server, but then an error
    occurred during the login process. (provider: SSL Provider, error: 0 - The
    target principal name is incorrect.)<o:p></o:p>
       at
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception,
    Boolean breakConnection, Action`1 wrapCloseInAction)<o:p></o:p>
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)<o:p></o:p>
       at
    System.Data.SqlClient.TdsParserStateObject.SNIWritePacket(SNIHandle handle,
    SNIPacket packet, UInt32& sniError, Boolean canAccumulate, Boolean
    callerHasConnectionLock)<o:p></o:p>
       at System.Data.SqlClient.TdsParserStateObject.WriteSni(Boolean
    canAccumulate)<o:p></o:p>
       at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte
    flushMode, Boolean canAccumulate)<o:p></o:p>
       at System.Data.SqlClient.TdsParser.TdsLogin(SqlLogin rec,
    FeatureExtension requestedFeatures, SessionData recoverySessionData)<o:p></o:p>
       at
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo
    serverInfo, String newPassword, SecureString newSecurePassword, Boolean
    ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)<o:p></o:p>
       at
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo
    serverInfo, String newPassword, SecureString newSecurePassword, Boolean
    redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential
    credential, TimeoutTimer timeout)<o:p></o:p>
       at
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer
    timeout, SqlConnectionString connectionOptions, SqlCredential credential,
    String newPassword, SecureString newSecurePassword, Boolean
    redirectedUserInstance)<o:p></o:p>
       at
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity
    identity, SqlConnectionString connectionOptions, SqlCredential credential,
    Object providerInfo, String newPassword, SecureString newSecurePassword,
    Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions,
    SessionData reconnectSessionData)<o:p></o:p>
       at
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
    options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo,
    DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions
    userOptions)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool
    pool, DbConnection owningObject, DbConnectionOptions options,
    DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
    owningObject, DbConnectionOptions userOptions, DbConnectionInternal
    oldConnection)<o:p></o:p>
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection
    owningObject, DbConnectionOptions userOptions, DbConnectionInternal
    oldConnection)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
    owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate,
    Boolean onlyOneCheckConnection, DbConnectionOptions userOptions,
    DbConnectionInternal& connection)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection
    owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions,
    DbConnectionInternal& connection)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection
    owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions
    userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&
    connection)<o:p></o:p>
       at
    System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection
    outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1
    retry, DbConnectionOptions userOptions)<o:p></o:p>
       at
    System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)<o:p></o:p>
       at
    System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)<o:p></o:p>
       at System.Data.SqlClient.SqlConnection.Open()<o:p></o:p>
    Inner Exception:<o:p></o:p>
    :<o:p></o:p>
    The target principal name is incorrect

    The target principal name is incorrect
    Hi Rahul.U,
    Are you able to connect to SQL Server successfully from SQL Server Management Studio (SSMS) when enforcing encryption?
    According to above error message, it could be caused by the inappropriate server name or incorrect TrustServerCertificate configuration in the connection string from Visual Studio. There are some proposals for you troubleshooting this error.
    1. Make sure that you connect to the SQL server using the fully qualified domain name (FQDN).
    2. When connecting to a SQL Server instance with a valid certificate, please add the
    TrustServerCertificate
    parameter and set it to true in the connection string. For more details, please review this
    article.
    However, if you can successfully connect to SQL Server via SSMS, but still fail to connect to SQL Server from Visual Studio, I would like to recommend you post the question in the .Net Framework forum at
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment . It is appropriate and more experts will assist you.
    There are similar articles about error “The target principal name is incorrect” for your reference.
    http://serverfault.com/questions/458935/aws-rds-sql-server-ssl-connection-the-target-principal-name-is-incorrect
    http://www.derekseaman.com/2013/09/sql-2012-failover-cluster-pt-12-kerberos-n.html
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Connecting to sql server database mdf file without installing sql server on client machine?

    I am creating a window application that need to use sql server database. I want to install this application to client machine without installing sql server so that my application can still connect to a database i.e mdf file that i will be providing at client
    system.
    How can i connect to a database(mdf) on client machine through my window application without installing sql server. ? I dont know is it possible or not.
    If possible what will be the connection string in that case. Database need not be used in network.

    you cant connect and view the internals of mdf file unless it being attached to a sql server instance as a database.
    The sql server instance can be installed in any box which is in the same domain and then you can connect from your application to it.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Connection to SQL Server Database

    I am working on 4.6C. How can i connect to SQL Sever database ? I am new to this type of concept. Kindly do provide some suggessions !!!

    Hi,
    In general, if we want to hit database directly, we use..
    EXEC.
    ENDEXEC.
    ex:
    DATA: BEGIN OF wa,
            connid   TYPE spfli-connid,
            cityfrom TYPE spfli-cityfrom,
            cityto   TYPE spfli-cityto,
          END OF wa.
    DATA c1 TYPE spfli-carrid VALUE 'LH'.
    EXEC SQL PERFORMING loop_output.
      SELECT connid, cityfrom, cityto
      INTO   :wa
      FROM   spfli
      WHERE  carrid = :c1
    ENDEXEC.
    FORM loop_output.
      WRITE: / wa-connid, wa-cityfrom, wa-cityto.
    ENDFORM.

  • SQL developer connect to SQL server database

    Hi Friends,
    I have a sql developer 3.2. I download jtds1.2 as a thirty part driver in window. It works and SQL server tab appear on connection window.
    But Retrieve database button does not work and not able to enter a sql database name.
    Without database name , I got error message as failure 0 test failed:unknow server host name 'CACI1111\SQLEXPRESS'. I use defolt 1433 port.
    However, I can open SQL server 2008 express in my local PC.
    What  do I need to do it?
    Thanks
    newdba

    Hello,
    my syntax to connect to a non-local SQL Server 2005 Express database is nn.nn.nn.nn/testdb in the hostname field, where nn.nn.nn.nn is the IP address of the other PC and testdb is the name of the database.
    Regards
    Wolfgang

Maybe you are looking for

  • 802.1X Authentication with InTouch

    Dear Community, does anybody know if/when it's possible to use 802.1X authentication with the TelePresence InTouch 10? It perfectly works on the C/SX codecs and as long as the Panels are connected directly to the Codec, there is no issue. But on some

  • Uploading to Lightroom

    I am fed up with the upload times from my Nikon D4 and Nikon D800E cameras to Lightroom, they have the latest firware....yet it is taking 15 hours sometimes much longer to upload 10 Gig of images it is time i can ill afford....im tempted to dump my L

  • Mi424wr-gen3I no internet access from secondary subnet / router

    All, I am looking to provide internet access to my internal LAN / WLAN devices on another router.  I have configured my second router to connect to the 192.168.1.0/24 network on the mi424wr LAN.  Static routes: 192.168.2.0/24  next hop 192.168.1.254

  • Lion reduced the screen bit depth - any solution?

    When I was on Snow Leopard I was painting in Photoshop in 16-bit mode on my 21" Wacom Cintiq. It was a fantastic experience to finally have true control in settle changes in hues and shades all over the spectre. Now that I've updated to Lion, the scr

  • Creative Zen 8gb- unknown error/access denied when adding mu

    This is so frustrating....please help!? I have already reformatted, disk cleanup, reset and still nothing. When I'm trying to add new music to my Creative Zen 8gb I get the both error messages : "unknown error" when using the Media Zen 'browse media'