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. Visual Basic
  4. VB6 Lost Code - DLL Help [modified]

VB6 Lost Code - DLL Help [modified]

Scheduled Pinned Locked Moved Visual Basic
databasehelpquestion
5 Posts 4 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
    Tim Carmichael
    wrote on last edited by
    #1

    We have a VB6 DLL in production, but, the source code that can be found is missing a function found in the DLL. The source code has sections of hard-coded SQL statements that are used to extract data from a legacy system (Ingres II). All I really need is the SQL statements for the missing function. Does anyone know of a way to open and read the DLL? I have tried notepad, but, it doesn't appear to show me the missing section. Yes, the code SHOULD have been replaced in SourceSafe, but, it wasn't. And, the 3 most likely developers left the company some time ago. Thanks, Tim

    modified on Wednesday, October 8, 2008 11:42 AM

    C S J T 4 Replies Last reply
    0
    • T Tim Carmichael

      We have a VB6 DLL in production, but, the source code that can be found is missing a function found in the DLL. The source code has sections of hard-coded SQL statements that are used to extract data from a legacy system (Ingres II). All I really need is the SQL statements for the missing function. Does anyone know of a way to open and read the DLL? I have tried notepad, but, it doesn't appear to show me the missing section. Yes, the code SHOULD have been replaced in SourceSafe, but, it wasn't. And, the 3 most likely developers left the company some time ago. Thanks, Tim

      modified on Wednesday, October 8, 2008 11:42 AM

      C Offline
      C Offline
      Chinners
      wrote on last edited by
      #2

      Just a thought - If the SQL was MS SQL2000, I am pretty sure you can use SQL Profiler to dump all sql queries run on the database, which would show the queries actually run by the DLL... Sql Profiler may be availiable for other DBEngines, but I have only used the one in SQL2000.

      1 Reply Last reply
      0
      • T Tim Carmichael

        We have a VB6 DLL in production, but, the source code that can be found is missing a function found in the DLL. The source code has sections of hard-coded SQL statements that are used to extract data from a legacy system (Ingres II). All I really need is the SQL statements for the missing function. Does anyone know of a way to open and read the DLL? I have tried notepad, but, it doesn't appear to show me the missing section. Yes, the code SHOULD have been replaced in SourceSafe, but, it wasn't. And, the 3 most likely developers left the company some time ago. Thanks, Tim

        modified on Wednesday, October 8, 2008 11:42 AM

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #3

        You're best option is to run a tool like SQL Profiler which can show you all of the active database connections and the SQL statements being performed. SQL Profiler specifically is only available for Microsoft SQL Server, but Ingres should have something similar. Red-Gate may also have a similar tool that will work as well.

        Scott Dorman

        Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


        Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

        1 Reply Last reply
        0
        • T Tim Carmichael

          We have a VB6 DLL in production, but, the source code that can be found is missing a function found in the DLL. The source code has sections of hard-coded SQL statements that are used to extract data from a legacy system (Ingres II). All I really need is the SQL statements for the missing function. Does anyone know of a way to open and read the DLL? I have tried notepad, but, it doesn't appear to show me the missing section. Yes, the code SHOULD have been replaced in SourceSafe, but, it wasn't. And, the 3 most likely developers left the company some time ago. Thanks, Tim

          modified on Wednesday, October 8, 2008 11:42 AM

          J Offline
          J Offline
          Jon_Boy
          wrote on last edited by
          #4

          Ack what a head ache. Profiler could work to get the queries, but of course requires that you know how each part of the logic is called to hit all the different queries/statements. I feel for ya.

          Any suggestions, ideas, or 'constructive criticism' are always welcome.

          1 Reply Last reply
          0
          • T Tim Carmichael

            We have a VB6 DLL in production, but, the source code that can be found is missing a function found in the DLL. The source code has sections of hard-coded SQL statements that are used to extract data from a legacy system (Ingres II). All I really need is the SQL statements for the missing function. Does anyone know of a way to open and read the DLL? I have tried notepad, but, it doesn't appear to show me the missing section. Yes, the code SHOULD have been replaced in SourceSafe, but, it wasn't. And, the 3 most likely developers left the company some time ago. Thanks, Tim

            modified on Wednesday, October 8, 2008 11:42 AM

            T Offline
            T Offline
            Tim Carmichael
            wrote on last edited by
            #5

            For those that tried to help, thank you. If this was a SQLServer database, I could have used Profiler, unfortunately, this is an Ingres II database (legacy, text only environment). So, since I could see the data for process was generating (the DLL was storing data in SQLServer), I talked to the people working on the legacy system and showed them the data. From there, I slowly rebuilt the query to produce identical results. The new query is stored in a table in SQLServer; the DLL will call a stored procedure that returns an SQL statement. If the source data changes, SQL changes are then made in SQL, not in the code itself. Thanks, Tim

            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