Viewing 15 posts - 1,966 through 1,980 (of 5,841 total)
Sathvik (6/12/2014)
Recently we have migrated sql server 2008R2 server to 2012, But after migration one of the stored procedure is taking 2mins execute in 2012 server. It took...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 12, 2014 at 3:41 pm
ramana3327 (6/10/2014)
I do have table Ex: customer. I do have some select statements based in where clause studentid.
I am retrieving
student name, age , marital status, contact no from...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 10, 2014 at 6:26 pm
1) SSMS Tools Pack. Not free, but you get WAY more than you pay for! Tell Mladen I sent you. 🙂
2) util_generate_inserts. OLDIE BUT GOODIE, and I...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 10, 2014 at 6:22 pm
Here's an oldie but goodie for deadlock troubleshooting: http://blogs.msdn.com/b/bartd/archive/2006/09/09/deadlock-troubleshooting_2c00_-part-1.aspx. Be sure to follow all 3 parts of the blog series.
Some deadlocks are a no-brainer to fix (once you...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 10, 2014 at 6:53 am
The windowing function does indeed perform better than the double-hit. I just tested to 100K rows and it was anyway.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2014 at 3:25 pm
This will work for ANY constant or deterministic function.
I was hoping the OP would work that out and either figure things out for himself or come back for some details....
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2014 at 2:56 pm
singhgurvindersaini (6/9/2014)
the ghost cleanup task cannot keep up, its...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2014 at 2:54 pm
Can you tell us what you were trying to solve with this?
I note you get the same output with this:
SELECT
Country ,
MAX(CustID) ...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2014 at 2:31 pm
Agree - not possible.
I would use this construct (with each "check for error" being a rollback and terminate and message):
BEGIN TRAN
delete table1 where ...
check for error
delete table2 where ...
check for...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2014 at 1:27 pm
tcronin 95651 (6/6/2014)
can a reporting server node also be used for the backups?
Yes. As can checkdbs. But just knowing something can be done doesn't tell you why they...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 7, 2014 at 9:29 am
Wow - all that for 30GB of space?!? Sad to be worried about so little in today's age! :w00t:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 6, 2014 at 2:26 pm
tcronin 95651 (6/6/2014)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 6, 2014 at 2:25 pm
No way I am trying to muddle through that many words of complex logic and actions/outcomes!! I doubt anyone else will bother either. Even if you can't post...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 6, 2014 at 6:11 am
Shrinks SUCK!!! They will no matter what you try to do - unless you can do a truncate_only shrink and get back the space you need, but how often...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 5, 2014 at 11:50 pm
Viewing 15 posts - 1,966 through 1,980 (of 5,841 total)