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. General Programming
  3. C#
  4. Data Source Wizard for SQL [modified]

Data Source Wizard for SQL [modified]

Scheduled Pinned Locked Moved C#
databasecsharpcsstutorialquestion
3 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.
  • P Offline
    P Offline
    PyroManiak
    wrote on last edited by
    #1

    I know how to connect to a database on a networked machine using C# code directly, thats pretty simple. But I'm trying to use things like data grid forms that have to just select the data source. Using the Data Source Wizard I can't figure out how to tell it to connect to machine X, database X, pass X, username X just like I would using code. It keeps insisting I connect it directly to a database file, which isn't shared. Am I missing some REALLY obvious answer? -- modified at 17:15 Thursday 1st June, 2006 C# Express 2005 Doesn't have this feature?

    E 1 Reply Last reply
    0
    • P PyroManiak

      I know how to connect to a database on a networked machine using C# code directly, thats pretty simple. But I'm trying to use things like data grid forms that have to just select the data source. Using the Data Source Wizard I can't figure out how to tell it to connect to machine X, database X, pass X, username X just like I would using code. It keeps insisting I connect it directly to a database file, which isn't shared. Am I missing some REALLY obvious answer? -- modified at 17:15 Thursday 1st June, 2006 C# Express 2005 Doesn't have this feature?

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      What type of database are you connecting to?  I'd assume based on your comments so far that it's an access database in which case you must specify the a valid network path to the database, e.g. \\machineX\c\database.mdb in the connection string, the username and password can also be specified in the string if requried.


      You know you're a Land Rover owner when the best route from point A to point B is through the mud. Ed

      P 1 Reply Last reply
      0
      • E Ed Poore

        What type of database are you connecting to?  I'd assume based on your comments so far that it's an access database in which case you must specify the a valid network path to the database, e.g. \\machineX\c\database.mdb in the connection string, the username and password can also be specified in the string if requried.


        You know you're a Land Rover owner when the best route from point A to point B is through the mud. Ed

        P Offline
        P Offline
        PyroManiak
        wrote on last edited by
        #3

        "data source wizard for SQL" is the topic, so I'm not connecting to access =P I just got a full copy of 2005 from work and solved my problem. I dont think the data objects are predefined and all that in Express for a server connection.

        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