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. SAVING A DATABASSE FILE

SAVING A DATABASSE FILE

Scheduled Pinned Locked Moved Visual Basic
databasequestioncsharpsql-server
4 Posts 3 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.
  • L Offline
    L Offline
    len_ems
    wrote on last edited by
    #1

    Dear guys, Good afternoon! We are currently using VB.NET as our programming language and MS SQL Server as our database. I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server? Thanks... More power.... len_ems

    D L 2 Replies Last reply
    0
    • L len_ems

      Dear guys, Good afternoon! We are currently using VB.NET as our programming language and MS SQL Server as our database. I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server? Thanks... More power.... len_ems

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

      len_ems wrote: I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server? This doesn't make any sense. Save what database file? SQL Server maintains it's own files completely isolated from your VB code. Are you asking how you can create your own database file to maintain data in your app? Have you looked at XML? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        len_ems wrote: I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server? This doesn't make any sense. Save what database file? SQL Server maintains it's own files completely isolated from your VB code. Are you asking how you can create your own database file to maintain data in your app? Have you looked at XML? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        B Offline
        B Offline
        beowulfagate
        wrote on last edited by
        #3

        If you mean saving the *.mdf file of the database to another location, try this: dim source as string = path_to_mdf_file\*.mdf dim dest as string =path_to_copy_to\*.mdf 'last parameter determines whether to overwrite an 'existing file or not system.io.file.copy(source,dest,true)

        1 Reply Last reply
        0
        • L len_ems

          Dear guys, Good afternoon! We are currently using VB.NET as our programming language and MS SQL Server as our database. I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server? Thanks... More power.... len_ems

          L Offline
          L Offline
          len_ems
          wrote on last edited by
          #4

          Good afternoon... I'm sorry if my query is vague. I just want to save or backup my database or database file by using a VB.Net code. It's just like backuping a file to a destination. But I already found a code for that and it has a lot of features like : login to MS SQL Server; backup, restore and repair databases; upload and delete databases; checks connection; controls server; etc... Thank you for your advices...

          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