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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to select the last sucessful backup

Author  Topic 

k_babb
Starting Member

2 Posts

Posted - 2014-02-04 : 08:55:42
Hi i am new to sql i have created a powershell script to load some data into a table

i have servername, result, date as headings they are text,text anddate

i want to select each severname where the result was successful but only one of each so for example

if servername "test server" backup sucessfully twice i only want to return the latest date

k_babb
Starting Member

2 Posts

Posted - 2014-02-04 : 09:56:50
Can i do something like
select Distint servername where result like 'Success'and date(max date)
Go to Top of Page
   

- Advertisement -