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. Sql File in DLL problem

Sql File in DLL problem

Scheduled Pinned Locked Moved Visual Basic
databasetoolshelpquestion
4 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.
  • A Offline
    A Offline
    anom2m
    wrote on last edited by
    #1

    Hi all, i have SQL script that i will execute it in class and i have to add this SQL file to the class ,but i need no one else see this file ,so i make the copy option to be"Do not copy" , but i use this file to read from it ,so when i use the created dll in another solution , it can't find that file what exactly shall i do? your answers will be appreciated Thank you

    R 1 Reply Last reply
    0
    • A anom2m

      Hi all, i have SQL script that i will execute it in class and i have to add this SQL file to the class ,but i need no one else see this file ,so i make the copy option to be"Do not copy" , but i use this file to read from it ,so when i use the created dll in another solution , it can't find that file what exactly shall i do? your answers will be appreciated Thank you

      R Offline
      R Offline
      Rizwan Bashir
      wrote on last edited by
      #2

      I think your SQL file is inside the Project so when you use the dll in the project . you find it but when you try to use the same DLL from another project it does not give you path. So two solutions. 1. encrypt the file and let it be with copy on the system. and decrypt it when required. 2. make a function in the class and it will hold the query in string array and will return it back to you when you call it or directly run it when you pass some required parameters. Rizwan Bashir

      A 1 Reply Last reply
      0
      • R Rizwan Bashir

        I think your SQL file is inside the Project so when you use the dll in the project . you find it but when you try to use the same DLL from another project it does not give you path. So two solutions. 1. encrypt the file and let it be with copy on the system. and decrypt it when required. 2. make a function in the class and it will hold the query in string array and will return it back to you when you call it or directly run it when you pass some required parameters. Rizwan Bashir

        A Offline
        A Offline
        anom2m
        wrote on last edited by
        #3

        thank you Rizwan , can u guide me how to do the encryption? so that when file exist in the customer's machine can't be opened!!!

        R 1 Reply Last reply
        0
        • A anom2m

          thank you Rizwan , can u guide me how to do the encryption? so that when file exist in the customer's machine can't be opened!!!

          R Offline
          R Offline
          Rizwan Bashir
          wrote on last edited by
          #4

          try google. you will find million of exmaples http://www.google.com.pk/search?hl=en&q=encryption+vb.net&meta=[^]

          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