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. Web Development
  3. ASP.NET
  4. Can we access MS SQL 2005 from the website ...

Can we access MS SQL 2005 from the website ...

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-serversysadmin
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.
  • M Offline
    M Offline
    MinhajuddinK
    wrote on last edited by
    #1

    Hi there! I am hosting my website on a web-host which gives support for ASP.NET. But I don't have a MS SQL2005 resource in that account.... I have a MS SQL DB hosted on another server. Can I somehow get data from this MS SQL server...... Thank you.

    K 1 Reply Last reply
    0
    • M MinhajuddinK

      Hi there! I am hosting my website on a web-host which gives support for ASP.NET. But I don't have a MS SQL2005 resource in that account.... I have a MS SQL DB hosted on another server. Can I somehow get data from this MS SQL server...... Thank you.

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      Just point your connection string to the server on the network. People do this all the time. I wrote an article about setting up asp.net on .net 2.0 to point to different sql servers in different environments. http://www.codeproject.com/useritems/SingleWebConfigFile.asp[^] Anyway, you can see some examples of connection strings there. Hope that helps. Ben

      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