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