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. Accessing SQL Servers in the DMZ

Accessing SQL Servers in the DMZ

Scheduled Pinned Locked Moved Database
sysadmincsharpc++asp-netdatabase
1 Posts 1 Posters 1 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.
  • S Offline
    S Offline
    Stone Free
    wrote on last edited by
    #1

    I have written a program to archive user reports to a temporary area and then deleting them after a set number of days. This program works fine on our Local Area Network, but it cannot connect to an SQL Server which is in the DMZ. ASP.NET programs do not seem to have any trouble. My program is written in C++ and Classic ADO. My connection details are as follows: (written as VB as this is probably the most familiar) Conn.Mode = adModeReadWrite OR adModeShareExclusive Conn.CursorLocation = adUseClient Conn.ConnectionTimeout = 15 Conn.CommandTimeout = 128 Conn.Provider = "sqloledb" Conn.ConnectionString = "Data Source=TheServer;Initial Catalog=TheDB" Conn.Attributes = 0; Conn.IsolationLevel = adXactReadCommitted Conn.Open( , UserNameVar, DBPasswordVar,adConnectUnspecified)

    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