Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 No Backup To Use to restore data

Author  Topic 

alexmax2003
Starting Member

1 Post

Posted - 2007-07-11 : 03:42:32
I have a problem i set old backup for my database all the new data gone any one know how to reset database to specific date that before the day i restore the old data
i know it may be impassable

b.veenings
Yak Posting Veteran

96 Posts

Posted - 2007-07-11 : 05:48:24
if you backup the current database and try an point in time restore before you did the earlier restore.

Good Luck!

Need an SQLDB consultant?
check www.veeningsengineering.nl
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-07-11 : 08:33:14
If your database is in Full Recovery model you can take a Transaction backup (now) and then restore previous Full back, every Transaction log Backup since the full backup, in order, and on the last one use the STOPAT command to restore up to a specific point in time.

If you are not using Full Recovery Model then this is not possible, but you may be able to use a 3rd party log reader to rescue information from the Log, but I doubt it!

Kristen
Go to Top of Page

MANJULAVANI
Starting Member

2 Posts

Posted - 2007-08-07 : 02:51:24
how to retrieve the second higest salary

manjulavani
Go to Top of Page

MANJULAVANI
Starting Member

2 Posts

Posted - 2007-08-07 : 02:52:07
how to retriev the even records


manjulavani
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-07 : 04:01:35
quote:
Originally posted by MANJULAVANI

how to retrieve the second higest salary

manjulavani


Your question is not at all related to this thread. You post post your question as new topic

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-07 : 04:02:30
quote:
Originally posted by MANJULAVANI

how to retriev the even records


manjulavani


Again, follow my previous suggession

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-08-07 : 09:45:42
quote:
Originally posted by MANJULAVANI

how to retriev the even records


manjulavani



This should get you started:

SELECT id, CASE WHEN Abs( Sin(Ascii(Reverse (id) ) *
355.0 / 226)) < 7e-6 THEN 'Even' ELSE 'Odd' END FROM
(SELECT t1 + t2 + t3 + t4 AS id
FROM (SELECT 0 AS t1 UNION SELECT 1
UNION SELECT 2) AS z1 CROSS JOIN (SELECT 0 AS t2
UNION SELECT 3 UNION SELECT 6) AS z2 CROSS
JOIN (SELECT 0 AS t3 UNION SELECT 9 UNION
SELECT 18) AS z3 CROSS JOIN (SELECT
0 AS t4 UNION SELECT 27 UNION SELECT 54) AS z4
) AS z ORDER BY 1




Solution courtesy by Pat Phelan




CODO ERGO SUM
Go to Top of Page
   

- Advertisement -