Viewing 15 posts - 421 through 435 (of 709 total)
Add the CASE to the query before the PIVOT (the one that defines the data that is pivoted):
CASE WHEN @var = 'TBT' THEN Amt1
...
Eddie Wuerch
MCM: SQL
August 17, 2009 at 3:28 pm
(Note: depending on the SAN vendor and implementation, "SAN Volume" may have different meanings. I am under the assumption that "SAN Volume" means "Mounted Windows disk partition/drive")
The new named...
Eddie Wuerch
MCM: SQL
August 12, 2009 at 8:32 pm
Looks like you're getting pounded by table scans.
Do all of those foreign keys have matching nonclustered indexes? The table scripts you included have the foreign keys listed,...
Eddie Wuerch
MCM: SQL
August 11, 2009 at 1:36 pm
Love it when folks incorrectly post about stuff that may be deprecated. After all that info is so hard to come by:
http://tinyurl.com/kr7tvb (lmgtfy link) 🙂
Eddie Wuerch
MCM: SQL
August 10, 2009 at 4:06 pm
Two key points:
- use the .nodes() method to split the xml doc into a rowset of BATCH/ORDERREQUEST/DOCUMENT/FIELD nodes
- use ../../ to crawl up the tree from those nodes...
Eddie Wuerch
MCM: SQL
August 6, 2009 at 2:40 pm
Check the MSDN blog entry "Understanding "login failed" (Error 18456) error messages in SQL Server 2005"
http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx
You'll need to look in the SQL Server error logs for the full detail of...
Eddie Wuerch
MCM: SQL
August 6, 2009 at 1:03 pm
Yes, you use the virtual SQL servername\instance (and port if you specified it) to connect to the SQL instance.
When the instance fails over to a different node in the cluster,...
Eddie Wuerch
MCM: SQL
July 29, 2009 at 3:04 pm
Take a look at sys.dm_db_partition_stats. It details storage consumed by each partition in the database (unpartitioned tables and indexes exist as a single partition each), with index space detailed...
Eddie Wuerch
MCM: SQL
July 28, 2009 at 3:32 pm
DENSE_RANK(), without a PARTITION BY clause will get you the grouping you're looking for, but how to pull off the order of the ranking in your limited sample will require...
Eddie Wuerch
MCM: SQL
July 23, 2009 at 3:59 pm
The FILEPROPERTY function provides the count of pages used in a file, which can be compared to the total number of pages in the file, available in sys.database_files. All...
Eddie Wuerch
MCM: SQL
July 10, 2009 at 11:32 am
Also note that if you are using Enterprise Edition in a non-virtual instance, you must license the number of CPUs in the server available to the operating system, whether you...
Eddie Wuerch
MCM: SQL
July 1, 2009 at 2:05 pm
The high CXPACKET waits, combined with the PAGEIOLATCH_SH and PAGEIOLATCH_EX waits, likely indicate table scanning. Including the PAGEIOLATCH waits shows that you're scanning from disk and incurring additional cost...
Eddie Wuerch
MCM: SQL
June 17, 2009 at 1:33 pm
I agree with a lot of what's been said in this thread, especially that networking is still the best way to go. I heard about my current position at...
Eddie Wuerch
MCM: SQL
May 13, 2009 at 1:54 pm
It's a configuration setting, which can viewed and changed using sp_configure.
See "max text repl size option" in BOL.
-- View your current settings
exec sp_configure
-- Change the max text/image size for replication
exec...
Eddie Wuerch
MCM: SQL
February 20, 2009 at 4:52 pm
Another way to test the SAN: SQLIOSim (http://support.microsoft.com/default.aspx?scid=kb;en-us;231619)
The first step is to ensure your test server can fully saturate the SAN during the test - meaning you've got the...
Eddie Wuerch
MCM: SQL
February 18, 2009 at 2:08 pm
Viewing 15 posts - 421 through 435 (of 709 total)