Accidentally overwritten a sql database - Recover possible?

Hi there, 
My wife uses a piece of software called salon Iris.
It uses an SQL database to store client info etc.
She accidentally overwrite her original database with a 'practice template' of clients.
This has overwritten her original.
I have no back up.
Can anyone help?
Thanks

Hi there, 
My wife uses a piece of software called salon Iris.
It uses an SQL database to store client info etc.
She accidentally overwrite her original database with a 'practice template' of clients.
This has overwritten her original.
I have no back up.
Can anyone help?
Thanks
If it means restoring the database with the 'Practice Template' then hardly there is a way except some previous MDF or LDF files placed somewhere.
Restores operation overwrites everything including schema, data etc. so hard to rollback.
However, if it just a matter of overwriting a few tables (check how the overwriting was done. Was it through the User Interface or the application or through the SSMS or script etc.
I am not sure about Salon Iris app but many application who allows a template to be imported to overwrite the database operates on few master tables to change the status (accessibility) of the records. But it all depends and varies for application based
on their Technical design. As Erland has suggested you may contact the vendor for to understand this more clearly.
Keep Learning!! Regards Vishal Singh Please take a moment to mark this reply as answered if it solved your issue however if it doesn't but looks helpful to you or for someone else you may vote as helpful. This will enable the reply for other forum members
to benefit from. My Blogs: http://vishalhsingh.blogspot.com

Similar Messages

  • Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?

    Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?
      Now a days we are saving / extracting data in a excel spreadsheet, but we would like to do that using a database because it is better.

    You can use ODBC connection to work with SQL Server database.
    Use SQLExec object to execute the SQL statement. Here is a KB about the SQL statement.
    http://digital.ni.com/public.nsf/allkb/4ADEEA04CD24AE0B862565E20002A16F?OpenDocument
    To write data to spreadsheet is more straightforward because Lookout has built-in spreadsheet object. But you need to write SQL statement by yourself to interact with other database.
    To read the data back is the same way. Just use "select" SQL statement to query. You can use Datatable object to query.
    The "Data Source" can be "DSN = data source name;". The data source name is configured in Control Panel->Administrative Tools->Data Sources(ODBC).
    Ryan Shi
    National Instruments

  • Is it possible to migrate WebCenter Portal data from a SQL database to an Oracle database?

    We have our WebCenter Portal applications set up using a SQL database. Now we're wanting to migrate to an Oracle database and I'm wondering if that is possible.

    Yes it should be possible though i have not tried it myself. You basically export a file from mds ( xml) and import it into oracle db.
    Thanks
    manish

  • Is it possible using SQLite to collect data from an older SQL database?

    Is it possible using SQLite to collect data from an older SQL database? Where can I find a possible answer. Thanks in advance.

    There are 3rd-party tools (see comprehensive list at http://www.kenhamady.com/bookmarks.html) that provide extra pdf functionality on top of the pdf export from Crystal. 
    In the case of my Visual CUT software, you can use hidden formulas inside your Crystal report to generate form fields (pre-populated as well as empty) as part of the pdf export process.
    hth,
    ido

  • Is it possible to load SWF files from an SQL database?

    Hi all, I am very new to flash (I am primarily a C'# developer!) and I have been asked to investigate the possibility of doing the following;
    Create an application that allows swf files to be uploaded and stored inside of a SQL database as binary data (Why a database is a long story!)
    Allow this binary data to be extracted via a http request to be dynamically loaded inside of a web page.
    Now the first part was easy. I have all of my swf's uploaded and stored inside of the database. I have code that can make a request for the binary and write it to the response, so far so good. Now this is where I am stuck.
    I thought I could dynamically load the swf binary data by creating a very basic swf that simply contains a movie clip holder and for now a simple loadMovie statement. My idea being that I can could provide a url for the loadMovie statement that returns the swf binary data. This is where I have ground to a halt.
    I can see the call being made from the swf, I can see the data being returned but I cannot get it to render. I remember seeing an article some time agao where someone stated that they had used this method with success but I cannot find now. Has anyone ever done anything like? Is it even possible? Am I missing something simple?
    I have tried to return both the raw binary data and also used response.write but to no avail. Can anyone help?

    You are possibly trying to load AS3 swf into an AS2 Container at least the use of loadMovie() points in that direction. Be sure to use AS3 and target at least Flash 9 in your Loader/Main.swf. Also the AS3 concept of how to load swfs  differs a lot from the old concept.
    Look into the docu:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml
    But the biggest Problem seems to me -what you mentioned- that Loader needs a (defined) URLRepuest and since your swf files have no "real" URL and you surely don`t want to let the user directly write to your server, a workaround would be to write the BinaryStream with AIR-functionality to a local installlation directory and load it then from there.

  • More than one "RECOVER DATABASE" session possible ?

    Can two separate rman sessions try to execute the "recover database" command at the same time or will the database forbid it ? (hopefully).
    Sorry but I am not in a position to test this currently.
    johnnied

    Many thanks Sybrand for your help on this.
    I managed to try it and the message is :-
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 04/16/2009 10:48:01
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
    start until cancel using backup controlfile
    ORA-00283: recovery session canceled due to errors
    ORA-01124: cannot recover data file 1 - file is in use or recovery
    ORA-01110: data file 1: '+DATA/oracle/datafile/system.298.682412027'
    regs
    johnnied

  • What is max capacity of Azure SQL database? 500GB? Possible to compress?

    I have 1TB data on SQL Server VM and would like to migrate to Azure SQL.
    Is 500GB really the max? Any compression available so that I can fit 1TB data?
    Kenny_I

    Hi,
    on the contrary, this was announced a while back but for some reason the announcement was pulled out
    it seems there's support for compression though, check:
    http://thomaslarock.com/2014/06/microsoft-azure-sql-database-data-compression/
    I don't think you can compress 1TB data to SQL Azure.
    Request to provide your feedback
    http://feedback.azure.com/forums/217321-sql-database/suggestions/403510-allow-data-compression-to-improve-size-performanc
    Girish Prajwal

  • Retrieve a version of a document accidentally overwritten

    Is it possible to retrieve a spreadsheet (numbers file saved as ".xls") that was accidentally overwritten?
    Unfortunately I do not utilize timemachine.
    Please help.  13 hours worth of work.

    Hi Kappy,
    Maybe you can just clarify or reiteriate what you already stated.
    I am so upset because I lost the contents of an ongoing Pages document since March 2013 and it was medical information on a client.
    The contents of the document was erased while my keyboard was in my bag jostling around.
    So the document had a random bunch of letters on it.
    I tried to recover an older version of the document by erasing the contents of the Ipad and recovering ICloud from June 11th but the Pages document was still empty. It recovered it from yesterday not June 11th.
    So I believe the document has been overwritten.
    There is no way to recover an earlier version?
    Thanks in advance for your help.
    Beth

  • SQL Database is corrupted

     unfortunately hard disk of my system is damaged, now i recovered my database. but it cannot be attached again to SQL management studio 2005.
      the error is
     myfile.mdf is not a primary database file. (SQL server , error 5171)

    not a primary database file. (Microsoft SQL Server, Error: 5171) ? 
    The aforementioned error message conveys that the database is corrupt and is, therefore, not accessible. 
    Cause: 
    The root cause of this error message is that the database file is corrupt. It may be possible because of various reasons such as power surges, human errors,
    virus infections, etc. 
    Resolution: 
    To address this issue, there are few things that you can perform. First of all, take a backup of this corrupted database lest it is further damaged. Then,
    you should try to check the database consistency using the DBCC CHECKDB utility. For this, you should run the utility without any clause. The command is executed and the reason for corruption is provided. Then, run the utility using the mentioned clause. However,
    if you are still not able to repair sql, then you should use a third-party ms sql repair tool for mdf repair. Such tools recover corrupted SQL database components after all kinds of logical crash scenarios. 
    SQL Recovery software is a robust tool that is used to recover corrupt databases created in MS SQL Server 2000, 2005, and 2008. It is able to repair sql
    components such as tables, defaults, stored procedures, triggers, views and rules. It can also repair database constraints such as primary key, foreign key, unique key, check, etc. It is a highly interactive tool that does not overwrite the original database
    while scanning it. It is compatible with Window 7, Vista, 2003 Server, XP, 2000, and NT.

  • SQL Database Recovery

    Hi,
    We have accidentally deleted a database from SQL server. Then we have used NTFS file recovery tools such as R-Studio and scanned the entire drive. As a result of the scanning process we found a set of MDF files. Then we tried to attach the MDF files using
    SQL Management Studio. While doing so we got an error stating "MDF File is corrupted". Then we purchased a "Kernel for SQL Database" tool and opened the MDF file using that. We were able to recover only partial data. Is there any way that
    we can recover the full data from the MDF files.
    Any help on this would be greatly appreciated.
    Thanks,
    Sairam
    Sairam Avacorp Technologies

    Hi,
    We have accidentally deleted a database from SQL server. Then we have used NTFS file recovery tools such as R-Studio and scanned the entire drive. As a result of the scanning process we found a set of MDF files. Then we tried to attach the MDF files using SQL
    Management Studio. While doing so we got an error stating "MDF File is corrupted". Then we purchased a "Kernel for SQL Database" tool and opened the MDF file using that. We were able to recover only partial data. Is there any way that we
    can recover the full data from the MDF files.
    Any help on this would be greatly appreciated.
    Thanks,
    Sairam
    Sairam Avacorp Technologies

  • Check for duplicate record in SQL database before doing INSERT

    Hey guys,
           This is part powershell app doing a SQL insert. BUt my question really relates to the SQL insert. I need to do a check of the database PRIOR to doing the insert to check for duplicate records and if it exists then that record needs
    to be overwritten. I'm not sure how to accomplish this task. My back end is a SQL 2000 Server. I'm piping the data into my insert statement from a powershell FileSystemWatcher app. In my scenario here if the file dumped into a directory starts with I it gets
    written to a SQL database otherwise it gets written to an Access Table. I know silly, but thats the environment im in. haha.
    Any help is appreciated.
    Thanks in Advance
    Rich T.
    #### DEFINE WATCH FOLDERS AND DEFAULT FILE EXTENSION TO WATCH FOR ####
                $cofa_folder = '\\cpsfs001\Data_pvs\TestCofA'
                $bulk_folder = '\\cpsfs001\PVS\Subsidiary\Nolwood\McWood\POD'
                $filter = '*.tif'
                $cofa = New-Object IO.FileSystemWatcher $cofa_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
                $bulk = New-Object IO.FileSystemWatcher $bulk_folder, $filter -Property @{ IncludeSubdirectories = $false; EnableRaisingEvents= $true; NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' }
    #### CERTIFICATE OF ANALYSIS AND PACKAGE SHIPPER PROCESSING ####
                Register-ObjectEvent $cofa Created -SourceIdentifier COFA/PACKAGE -Action {
           $name = $Event.SourceEventArgs.Name
           $changeType = $Event.SourceEventArgs.ChangeType
           $timeStamp = $Event.TimeGenerated
    #### CERTIFICATE OF ANALYSIS PROCESS BEGINS ####
                $test=$name.StartsWith("I")
         if ($test -eq $true) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("L")
           $tempItem=$left.substring(0,$pos)
           $lot = $left.Substring($pos + 1)
           $item=$tempItem.Substring(1)
                Write-Host "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\CofA.csv -Append -InputObject "in_item_key $item in_lot_key $lot imgfilename $name in_cofa_crtdt $timestamp"
                start-sleep -s 5
                $conn = New-Object System.Data.SqlClient.SqlConnection("Data Source=PVSNTDB33; Initial Catalog=adagecopy_daily; Integrated Security=TRUE")
                $conn.Open()
                $insert_stmt = "INSERT INTO in_cofa_pvs (in_item_key, in_lot_key, imgfileName, in_cofa_crtdt) VALUES ('$item','$lot','$name','$timestamp')"
                $cmd = $conn.CreateCommand()
                $cmd.CommandText = $insert_stmt
                $cmd.ExecuteNonQuery()
                $conn.Close()
    #### PACKAGE SHIPPER PROCESS BEGINS ####
              elseif ($test -eq $false) {
                $pos = $name.IndexOf(".")
           $left=$name.substring(0,$pos)
           $pos = $left.IndexOf("O")
           $tempItem=$left.substring(0,$pos)
           $order = $left.Substring($pos + 1)
           $shipid=$tempItem.Substring(1)
                Write-Host "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"  -fore green
                Out-File -FilePath c:\OutputLogs\PackageShipper.csv -Append -InputObject "so_hdr_key $order so_ship_key $shipid imgfilename $name in_cofa_crtdt $timestamp"
    Rich Thompson

    Hi
    Since SQL Server 2000 has been out of support, I recommend you to upgrade the SQL Server 2000 to a higher version, such as SQL Server 2005 or SQL Server 2008.
    According to your description, you can try the following methods to check duplicate record in SQL Server.
    1. You can use
    RAISERROR to check the duplicate record, if exists then RAISERROR unless insert accordingly, code block is given below:
    IF EXISTS (SELECT 1 FROM TableName AS t
    WHERE t.Column1 = @ Column1
    AND t.Column2 = @ Column2)
    BEGIN
    RAISERROR(‘Duplicate records’,18,1)
    END
    ELSE
    BEGIN
    INSERT INTO TableName (Column1, Column2, Column3)
    SELECT @ Column1, @ Column2, @ Column3
    END
    2. Also you can create UNIQUE INDEX or UNIQUE CONSTRAINT on the column of a table, when you try to INSERT a value that conflicts with the INDEX/CONSTRAINT, an exception will be thrown. 
    Add the unique index:
    CREATE UNIQUE INDEX Unique_Index_name ON TableName(ColumnName)
    Add the unique constraint:
    ALTER TABLE TableName
    ADD CONSTRAINT Unique_Contraint_Name
    UNIQUE (ColumnName)
    Thanks
    Lydia Zhang

  • Updating array data in sql database

    HI,
    Im facing problems in updating array data in SQL database.
    As of now, i am able to write an "insert" query and insert array data in an image datatype field. Im using image datatype because the array size is very big(around 80,000 x and y values).
    Althoug inserting data is easy im unable to write a query to update this data.
    Referring to the help of SQL server and Labview database connectivity toolkit, i came across a method of accessing image datatype....using textpointers, which are 16 bit binary values and using the WRITETEXT function instead of the UPDATE function.
    but the problem im facing is that ive to pass the array as a 2d string array in the query as a result the updated array is retrieved in the form of a string a
    nd not as an array. how do I get over this problem?

    Hi Pavitra,
    I'm not very clear on how you have inserted the data into your application, but I do know that when you call the UPDATETEXT or WRITETEXT function you use the TEXTPOINTERS to point to the first location of a 1d array. So, depending on how you've stored the data, you may have problems updating your data if you're looking at it as a 1d array instead of how you originally formatted it. If you are able to successfully access the data as a 1d array, you can use the database variant to data type vi and pass in a string array constant for the data type. This will convert the variant datatype into whatever you specify. You may have to index the row and column of the variant (you receive a 2d array of variant) first before you convert. If possible, can yo
    u provide some more detail and maybe some example code of how you perform the insert and plan to do the update? I can probably give you a better solution if I know how you are formatting the data. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Storing WORD or PDF files in SQL database

    Can WORD document or PDF documents be stored in SQL database?
    If so, how? I would like an example (if possible).
    I do realize that I can store a reference pointer that points
    to a physical file on the server, but I don't want to do
    that.

    You should do a little research on using BLOB data types.
    Repository engine provides interfaces to handle properties that
    are binary large objects (BLOBs) and large text fields. BLOBs are
    properties that have values containing text or image data that can
    be in excess of 64 kilobytes (KB). You can use BLOBs to perform
    database operations that require you to work with large segments of
    data at a time.
    Phil

  • Displaying the data from a "LINQ to SQL database"

    I have created a LINQ to SQL database with a simple table/class with the following properties:
    Counter
    Subject
    Description
    About the Counter, how do I set the properties so it behaves like a "Counter". For each row I want it to automatically add new numbers like this:
    1 Subject1 Decsription1
    2 Subject2 Description2
    3 Subject3 Description3...and so on for every new data inserted.
    For now I have "Auto Generated Value=True" and "Primary Key=True". Is that the right way to go? What do I set for "Auto-Sync"? There are options like "Never, OnInsert, OnUpdate, Always".
    I believe I've manage to do the coding for the insert part:
    private void btnAddReminder_Click(object sender, RoutedEventArgs e)
    DataClasses1DataContext db = new DataClasses1DataContext("db");
    Reminders reminder = new Reminders();
    reminder.Subject = txtSubject.Text;
    reminder.Description = txtDescription.Text;
    db.Reminders.InsertOnSubmit(reminder);
    MessageBox.Show("Content added!");
    Now first of all, is there a way I can display the database content directly in Visual Studio so I can see if I've manage to add any content in the table? I haven't yet find a way so far.
    Second how do I get the content from the datatable row by row and display it in MainWindow.xaml? What would the code look like? For every row I would like it to be displayed like this:
    1. Subject1
    Description1
    2. Subject2
    Description2
    3. Subject3
    Description3
    Is it possible to display "1. Subject1" in a Label. It should be sort of a headline.
    Then would it be possible to display "Description1" in a TextBlock?
    The idea is that Subject along with the number should have a larger font size, and the Description shoud be a bit smaller font size.
     

    >>For now I have "Auto Generated Value=True" and "Primary Key=True". Is that the right way to go?
    Yes, this means that the database takes care of the actual incrementation for you which is perfectly fine and probably what you want.
    >>how do I get the content from the datatable row by row and display it in MainWindow.xaml
    You need to an ItemsControl that can render all items in a collection somewhere in the MainWindow, e.g.:
    <ItemsControl x:Name="ic">
    <ItemsControl.ItemTemplate>
    <DataTemplate>
    <StackPanel>
    <StackPanel Orientation="Horizontal" Margin="0 0 0 10">
    <TextBlock Text="{Binding Counter}"/>
    <TextBlock Text=". "/>
    <TextBlock Text="{Binding Subject}"/>
    </StackPanel>
    <TextBlock Text="{Binding Description}"/>
    </StackPanel>
    </DataTemplate>
    </ItemsControl.ItemTemplate>
    </ItemsControl>
    The ItemTemplate (DataTemplate) of the ItemsControl defines the appearance of each item in its ItemsSource collection, i.e. a Reminders object in your case.
    You then simply set the ItemsSource of the ItemsControl to the collection of Reminders object that you want to display in it in your code:
    private void btnAddReminder_Click(object sender, RoutedEventArgs e)
    DataClasses1DataContext db = new DataClasses1DataContext("db");
    Reminders reminder = new Reminders();
    reminder.Subject = txtSubject.Text;
    reminder.Description = txtDescription.Text;
    db.Reminders.InsertOnSubmit(reminder);
    MessageBox.Show("Content added!");
    ic.ItemsSource = db.Reminders;
    >>is there a way I can display the database content directly in Visual Studio so I can see if I've manage to add any content in the table?
    First of all, please don't ask several questions in the same thread. Second, this is not a WPF question. If you are using a service-based database, you could select data from it from the Server Explorer in Visual Studio:
    http://msdn.microsoft.com/en-us/library/vstudio/ms233763(v=vs.120).aspx. Otherwise you typically use SQL Sever Management Studio to query a database. For Visual Studio specific questions, please use the Visual Studio forums:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
    Please remember to mark helpful posts as answer and/or helpful.

  • MBAM bitlocker-protected removable drives recovery keys saved on sql database not active directory

    Hi Guys
    I need help in saving bitlocker protected removable drives on the sql database instead of active directory .
    I have tried to play around with the policy and I am not winning , currently my GPO : Choose how bitlocker-protected removable drives can be recovered has only the allow data recovery agent chosen and I have left out all the AD DS option unticked
    Please point me in the right direction on how to achieve this , I want all my keys in a SQL database so the users can recover the keys themselves using the mbam helpdesk website

    Under client management, define your endpoint URLs. You can see the help and the description section for that particular policy. Copy and paste the URL removing the port number and replace the name of the Server with that of your MBAM Web server.
    Also, Disable or don't configure the policy "Choose how bitlocker protected removable Drives can
    be recovered".
    This will save your recovery keys to the MBAM DBs.
    Gaurav Ranjan

Maybe you are looking for

  • Probably a stupid question, so should be easy answer! : )

    Okay, I have a mac.com email address.  I just moved everything over to iCloud.  Does this now mean my email address changes to [email protected] or can I continue to use the @mac.com?  Are they interchangeable or what is the deal?  I want to keep mac

  • Cant watching streaming video keep get error code 2048

    I cant figure out how to watch the video every time i open the link it sends me to a new page which shows the video loading then this message show up - the operation couldnt be completed the file is not a movie file(-2048) the video works on my dads

  • Need to transfer moviefrom iPod  to iTunes

    Some how a movie I had disappeared from iTunes but I still have it on my 5th Gen iPod. How can I transfer it to iTunes? It was Family Guy's Blue Harvest Free download from iTunes that came with the DVD.

  • Adobe FrameMaker 12.0.3 Update Failed

    FM 12 has been crashing regularly, and I am hopeful that the 12.0.3 update will help, but I'm getting the message "Update Failed" when I run the update. The "Error Log" simply says: Adobe FrameMaker 12.0.3 Update Installation failed. Error Code: U44M

  • Requesting for your kind help...(want to preserve Leading & trailing spaces)

    Hello Team,<br /><br />Can you please help in the following issue:<br />I am trying to preserve white space(leading and trailing  L&T) as is on the User Interface.  We have built our UI using Flex 3.0 SDK. <br /><br />From Java side, I am able to car