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. General Programming
  3. C#
  4. Creating UDL...

Creating UDL...

Scheduled Pinned Locked Moved C#
questionsql-serversysadmin
3 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.
  • T Offline
    T Offline
    The_Collector
    wrote on last edited by
    #1

    Hello everyone... I'm presently creating an application using a customized DLL from our original system. the said DLL uses UDL directly from "C:\" root directory to connect to MSSQL server... The new application will process the data through the said DLL and will connect to different MSSQL servers but will only use 1 UDL. My 1st attempt was to create a UDL directly using "StreamWriter" so that the new application can dynamicaly change the server name but it did not work... I compared the UDL created from a streamwriter against the one created in notepad but i found no diferences between the two..... How can i make a dynamic UDL file that can be used by the said DLL? thank you in advance ang more power...

    xxx

    D 1 Reply Last reply
    0
    • T The_Collector

      Hello everyone... I'm presently creating an application using a customized DLL from our original system. the said DLL uses UDL directly from "C:\" root directory to connect to MSSQL server... The new application will process the data through the said DLL and will connect to different MSSQL servers but will only use 1 UDL. My 1st attempt was to create a UDL directly using "StreamWriter" so that the new application can dynamicaly change the server name but it did not work... I compared the UDL created from a streamwriter against the one created in notepad but i found no diferences between the two..... How can i make a dynamic UDL file that can be used by the said DLL? thank you in advance ang more power...

      xxx

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Isn't it possible that the .DLL loads the UDL once and won't reload it on every access to the database? If that's the case, you've got a big problem. The .DLL won't unload until the app closes and relaunches.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Isn't it possible that the .DLL loads the UDL once and won't reload it on every access to the database? If that's the case, you've got a big problem. The .DLL won't unload until the app closes and relaunches.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        T Offline
        T Offline
        The_Collector
        wrote on last edited by
        #3

        I load and unload the DLL everytime i change the server. the steps are: 1. Load DLL calling the UDL. 2. Process and store the data locally using XML format. 3. Unload DLL. 4. Change UDL server. 5. Load again the DLL...go step 2....

        xxx

        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