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. Connect to a database

Connect to a database

Scheduled Pinned Locked Moved Database
csharpdatabaseasp-netsql-servervisual-studio
5 Posts 4 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
    Aptiva Dave
    wrote on last edited by
    #1

    I am some what new at this, but I need some help connecting a sql database to my asp.net app, and I keep getting security errors. Now, I've connected to databases before, but that was in a class where our instructor created all of our dbs since it wasn't a database class. I've created the table using SQL Server Express 2005 and I am trying to connect it to a website I have built in Visual Studio 2005. What am I doing wrong?

    N G 2 Replies Last reply
    0
    • A Aptiva Dave

      I am some what new at this, but I need some help connecting a sql database to my asp.net app, and I keep getting security errors. Now, I've connected to databases before, but that was in a class where our instructor created all of our dbs since it wasn't a database class. I've created the table using SQL Server Express 2005 and I am trying to connect it to a website I have built in Visual Studio 2005. What am I doing wrong?

      N Offline
      N Offline
      Nouman Bhatti
      wrote on last edited by
      #2

      check your connection string and make sure that u write the server name and database name correct

      A 1 Reply Last reply
      0
      • N Nouman Bhatti

        check your connection string and make sure that u write the server name and database name correct

        A Offline
        A Offline
        Aptiva Dave
        wrote on last edited by
        #3

        I'm not even getting that far. When I go to set up the settings to my sql connection I get an error saying that SQL server doesn't allow remote connections. Do I need to create a user in the security settings in the database and then use that account for authentication? I'm use to doing this in mysql and php, but not to sure with the setup with the Microsoft products.

        P 1 Reply Last reply
        0
        • A Aptiva Dave

          I'm not even getting that far. When I go to set up the settings to my sql connection I get an error saying that SQL server doesn't allow remote connections. Do I need to create a user in the security settings in the database and then use that account for authentication? I'm use to doing this in mysql and php, but not to sure with the setup with the Microsoft products.

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          You need to run the Configuration Manager and set everything there...

          1 Reply Last reply
          0
          • A Aptiva Dave

            I am some what new at this, but I need some help connecting a sql database to my asp.net app, and I keep getting security errors. Now, I've connected to databases before, but that was in a class where our instructor created all of our dbs since it wasn't a database class. I've created the table using SQL Server Express 2005 and I am trying to connect it to a website I have built in Visual Studio 2005. What am I doing wrong?

            G Offline
            G Offline
            ganti r
            wrote on last edited by
            #5

            Check this link[^] it might help

            rAm i Think, i Wait, i Fast -- Siddartha

            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