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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. ADO.NET & SQL

ADO.NET & SQL

Scheduled Pinned Locked Moved Database
csharpdatabasesysadminquestion
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
    Andy H
    wrote on last edited by
    #1

    Using the SQL object in the System.Data Namespace, not ODBC, how do you normally work out what the user's server name is for assigning to the 'server' property of the ConnectionString? Andy

    M 1 Reply Last reply
    0
    • A Andy H

      Using the SQL object in the System.Data Namespace, not ODBC, how do you normally work out what the user's server name is for assigning to the 'server' property of the ConnectionString? Andy

      M Offline
      M Offline
      Morten Abrahamsen
      wrote on last edited by
      #2

      You can't use the System.Data.SqlClient namespace for this. As it requires an active connection to work. You should let the user configure the name of his SQL Server on initial startup. Morty

      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