Viewing 15 posts - 961 through 975 (of 5,841 total)
But do NOT DO THIS AS A SCALAR UDF IN SQL SERVER!!! They are HORRIBLY BAD!!!!!!!!!
If you cannot simply inline the code into your TSQL (best), then do this...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 14, 2016 at 11:10 am
Luis Cazares (6/14/2016)
UNION will need to add a sort which is expensive.
If your queries have adequate indexes, I'd...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 14, 2016 at 9:48 am
AFAIK you will need to write your own file processor either in TSQL or externally with the scripting language of your choice. I would do it with the latter.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 14, 2016 at 8:13 am
What you are missing is that you should never, EVER use maintenance plans!! 🙂
Ola.Hallengren.com. Every single client I ever visit starts using the awesomeness found there.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 13, 2016 at 11:23 am
Glenn Berry SQL Diagnostic Scripts has some good stuff. IIRC the SQL Server Internals books may have a useful section too.
I think there was a tool someone wrote to show...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 13, 2016 at 10:05 am
gxdatareal (6/13/2016)
I Have a serious problem
I am trying to run an sql query (uodate)
UPDATE DBO. GENERIC
SET TITLE= B.TITLE
FROM DBO. GENERIC AS A with (nolock)
INNER JOIN DBO. DISTINCT AS...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 13, 2016 at 7:13 am
tomd-982312 (6/9/2016)
Luis Cazares (6/8/2016)
You're doing ETL work, use the ETL...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 9, 2016 at 7:51 am
Mick Opalak (6/8/2016)
Memory = 2TBFill Factor = 75 because our system (OLTP) is so active (3500 transactions at any given time) that indices get highly fragmented (like over 90%) daily.
1)...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 3:40 pm
Mick Opalak (6/8/2016)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 3:06 pm
I have done what you did (in doing no index mx and allowing the system to come to something approaching a "steady state fill factor" with just a couple of...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 9:18 am
Jonathan Kehayias did a benchmark that showed that SSDs were actually slower at random IO than sequential. But the difference is pretty small.
But there are other reasons to be...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 7:08 am
tomd-982312 (6/8/2016)
I'm just trying to find simple code that reads sequentially row by row from table. It's...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 7:04 am
1) Did you do what I said about sp_whoisactive??
2) How much memory do you have on this sql server? IIRC XML can be a MASSIVE consumer of memory and if...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 8, 2016 at 7:00 am
crcoracle (6/7/2016)
May be the picture is confusing. The "mirror" is made by SQL Server AG (not by the SAN)
As far as I know, I'm using 3 nodes, but there is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 7, 2016 at 2:14 pm
Believe it or not, prior to SQL Server 2012 and it's enhanced Windowing Function support the most efficient way to do running-total style calculations in SQL Server is to use...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 7, 2016 at 1:40 pm
Viewing 15 posts - 961 through 975 (of 5,841 total)