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. Why can't I set a connectionString?

Why can't I set a connectionString?

Scheduled Pinned Locked Moved Database
helpquestionworkspace
2 Posts 2 Posters 12 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.
  • D Offline
    D Offline
    Dave Midgley
    wrote on last edited by
    #1

    I am writing a VB app (called FISWDC) with a data environment (called DataEnv). I believe I should be able to do: DataEnv.Connection.connectionString = "File Name=" & App.Path & "\FISWDC.UDL;" or, at least DataEnv.Connection.connectionString = "File Name=FISWDC.UDL;" or maybe DataEnv.Connection.Open "File Name=" & App.Path & "\FISWDC.UDL;" or something like that, but whatever I do I just keep getting the error "The parameter is incorrect" or "Connection was denied. New connection you requested has different characteristics than the one already in use." Can anyone help? Dave

    L 1 Reply Last reply
    0
    • D Dave Midgley

      I am writing a VB app (called FISWDC) with a data environment (called DataEnv). I believe I should be able to do: DataEnv.Connection.connectionString = "File Name=" & App.Path & "\FISWDC.UDL;" or, at least DataEnv.Connection.connectionString = "File Name=FISWDC.UDL;" or maybe DataEnv.Connection.Open "File Name=" & App.Path & "\FISWDC.UDL;" or something like that, but whatever I do I just keep getting the error "The parameter is incorrect" or "Connection was denied. New connection you requested has different characteristics than the one already in use." Can anyone help? Dave

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Have you double-checked the UDL-files contents? Try using the UDL on a clean connection object: Dim cnn As New ADODB.Connection cnn.Open "File Name=c:\test\file.udl"

      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