Viewing 15 posts - 1,591 through 1,605 (of 5,841 total)
Just get out books online and review the RESTORE LOG section.
Or you can use SSMS GUI to fully script out your options and then click the Script button...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 11, 2015 at 6:07 am
dan-572483 (3/10/2015)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 10, 2015 at 5:28 pm
krypto69 (3/9/2015)
We have H/A setup on SQL2012. Seems to work fine.
I thought there was code I could add that would check to see if it was running on the primary...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 9, 2015 at 11:47 am
So you did 600K reads, with 80K being physical, and you are upset it takes 5 mins?? 😀
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 9, 2015 at 7:56 am
I sit with and work closely with the developers, they work with me, and we all work together on the common goal. More companies should do such a thing because...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 8, 2015 at 5:33 am
t.mounika01 (3/6/2015)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 7, 2015 at 2:50 pm
Scott Coleman (3/6/2015)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 6, 2015 at 6:24 pm
Your "real time" doesn't make any sense to me. Real time happens in SQL Server all the time. You INSERT data - it goes in in "real time". ...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 6, 2015 at 5:31 pm
Oh, I should also ask WHY do you want to bring back the entire table to SSMS?
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 6, 2015 at 11:00 am
So you are spooling 1M+ rows (fat or otherwise) back to the client, in this case SSMS?!? That isn't going to work out well for you!!
Declare variables...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 6, 2015 at 10:59 am
Nevyn (3/4/2015)
Started doing it with a CTE for the max(case) and then it just occurred to me that I really didn't need it to be in a CTE just to...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 4, 2015 at 2:28 pm
Nevyn (3/4/2015)
SELECT PERSID,
CASE MAX(CASE DUESTATUS
WHEN 'Overdue' THEN 2
WHEN 'DUE' THEN 1
ELSE 0
END)
WHEN 2 THEN 'Overdue'
WHEN 1 THEN 'Due'
ELSE 'Unknown'
END DUESTATUS,
CASE MAX(CASE COMPSTATUS...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 4, 2015 at 12:37 pm
There are DMVs that expose Always On metadata and status information. If you aren't familiar with them and can't find a blog post just set up Profiler and open...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 4, 2015 at 10:13 am
Sangeeth878787 (3/3/2015)
I want to check if column 1 = 'ab' then I need all the other columns (column2, column3 ) values need to be zero
I tried doing this
select case when...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 3, 2015 at 3:38 pm
What's wrong with this?
USE AdventureWorks2012 ;
GO
--Returns 5 records
SELECT pp.Name
FROM Production.Product AS pp
WHERE pp.Name LIKE N'Short%'
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 1, 2015 at 6:45 pm
Viewing 15 posts - 1,591 through 1,605 (of 5,841 total)