Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Sql String Connection Error

Sql String Connection Error

Scheduled Pinned Locked Moved Managed C++/CLI
sysadminhelpdatabasesql-serversecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmed EL Gendy
    wrote on last edited by
    #1

    hi all , i have a problem when i am trying to connect to the data base via Network or via Web. this is my connection string : static private string GetConnectionString() { return "Data Source=10.0.0.25\\SQLEXPRESS\\Databases\\FWR.MDF;Integrated Security=True;User Instance=True"; } and i recive this error exption : (An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). i want to know how to solve this error. Best Regards Ahmed EL Gendy

    M 1 Reply Last reply
    0
    • A Ahmed EL Gendy

      hi all , i have a problem when i am trying to connect to the data base via Network or via Web. this is my connection string : static private string GetConnectionString() { return "Data Source=10.0.0.25\\SQLEXPRESS\\Databases\\FWR.MDF;Integrated Security=True;User Instance=True"; } and i recive this error exption : (An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). i want to know how to solve this error. Best Regards Ahmed EL Gendy

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Shouldn't Data Source point to the instance of SQL server and not the database? Configuring Provider-Specific Connection Strings[^] SqlConnection.ConnectionString Property[^] Mark

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups