error on ASP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sha407
    New Member
    • Aug 2006
    • 9

    error on ASP

    Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Pls help me
  • lipsa
    New Member
    • Aug 2006
    • 35

    #2
    hi,
    plz check ur database connection string.

    Comment

    • sha407
      New Member
      • Aug 2006
      • 9

      #3
      Originally posted by lipsa
      hi,
      plz check ur database connection string.

      I am alredy chk my string

      Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
      [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

      I am using following script,when i am connected to VB it's work,


      Sub OpenDB()
      Set conDB = Server.CreateOb ject("ADODB.Con nection")
      conDB.Connectio nTimeOut=60
      If Request.ServerV ariables("HTTP_ HOST")="www.sha n.com" Or Request.ServerV ariables("HTTP_ HOST")="shan.co m" Then
      conDB.Open "shan", "shan1", "test"
      Else
      conDB.Open "shan", "", "test1"
      End If
      End Sub

      Comment

      Working...