« first day (1203 days earlier)      last day (3648 days later) » 
08:00 - 20:0020:00 - 23:00

8:36 AM
@MikaelEriksson that made me smile :-).
it's 100.000 units in South Asian numbering system
 
 
2 hours later…
10:19 AM
Sounds like a Star Trek Romulan currency :P
 
 
3 hours later…
JNK
12:55 PM
Should we be concerned this guy is posting SSNs and credit card numbers?
0
Q: tsql - Create table with INT column type is problematic

YakovCREATE TABLE [dbo].[Client] ( [SSNum] NCHAR(20) NOT NULL, [CCNumberPrimary] NCHAR(20) NOT NULL, [CCNumberSecondary] NCHAR(20) NOT NULL, [CCNumberTertiary] BIGINT NOT NULL ) CREATE CLUSTERED INDEX Client_Index ON Client (SSNum) INSERT INTO [dbo].[Client] ([SSNum], [CCNumberPrim...

 
@JNK I've pinged a dev to destroy the revision history
 
JNK
@bluefeet thx
 
Crikey, people can be idiotic. Almost as bad as the people that post pics of their new credit/debit cards on twitter.
 
JNK
that's just hilarious
 
1:47 PM
Hahahaahahaha
I just searched twitter for "my new credit card", and guess what? Silent moderator was top! twitpic.com/dwv8zm
 
I hate finding code with a totally unnecessary where 1=1
 
@bluefeet almost always caused by an ORM like Hibernate. Automagically generated shyte.
 
JNK
Or it's dynsql with variable number of WHERE subclauses
 
@FreshPhilOfSO sad to say when I'm sure someone actually wrote the code
@JNK it's not
 
JNK
so they always put WHERE 1=1 first so that the rest can be AND...
 
1:56 PM
@JNK I understand it's use in these cases - but randomly adding it to a view... come on
 
WHERE NULL IS NULL is more fun
 
2:59 PM
@swasheck well even though the wild played like garbage on Saturday I have high hopes because Kuemper is back in net.
 
you said "high"
 
??
 
sorry
 
Was that some sort of Beavis and Butthead sort of thing you did there?
 
something like that
with yesterday being 4/20 and Easter
 
3:04 PM
@swasheck in most parts of the world it was 20-4
 
@Kermit indeed ... but not in Boulder, CO
 
@swasheck boulder was covered in smoke?
 
@Kermit actually ... check out the first paragraph.
 
@swasheck what were they cited for? (don't feel like reading it)
 
> By late afternoon, Denver police had issued 47 citations for public marijuana consumption at the downtown rally, as well as 16 other arrests or citations for other reasons. Denver Health Medical Center paramedics had treated 14 people, including three who were taken to detox. The hospital's emergency room had treated about a half-dozen people, most of whom had passed out through a combination of sun and substance use.
> Brittany Gibbs caught one of the police citations Sunday when she lit up her chillum pipe on the outskirts of the rally just before police officers on bicycles rode by. They handed her a $150 ticket for public marijuana consumption.

"They said, 'Go into a crowd where we can't pick you out,' " Gibbs said.
@Kermit here are pictures ... because you dont read the articles
 
3:09 PM
i like pichurs
 
Too boring.
Never understood the attraction to that drug.
 
it's like the 60's all over again
 
@Kermit but with shitty music.
 
How would you know? You weren't alive in the 60s. Hell, I wasn't alive in the 60s.
 
@MikeFal i think he means that he prefers 60s music? ... which lives on through eternity
 
3:11 PM
Troof
Purple haaaaaaaayz
 
@MikeFal speaking of eternal music ... how was the practice last turdsday
 
@swasheck I think he was referring to @Kermit's comment and not mine.
 
@swasheck Wasn't practice, was a concert
 
who knows i'm stoned right now just from looking at the pictures
 
It was fine.
@swasheck How was the meeting?
 
3:21 PM
He doesn't want to talk about it.
 
or he's dead
 
@bluefeet what should I do with this thing?
-1
Q: What I should type in Description of google play developer "Game Services"?

ReReFreelancerI type description about my game in All Application tab, in tab Game Services it required Display name and Description, I only need create LeaderBoard with Game Services, what should I type in Display name and Description?

 
@Kermit zed's dead
@MikeFal eh. ok
 
@swasheck who's chopper is that
 
@Kermit +1. would set up again
 
3:27 PM
@swasheck Bummer, I was afraid of that. I had to scramble when Cox cancelled and Todd was available and has been asking me to present.
 
@Zane vote to close :)
 
@MikeFal i understand. i like todd and think he has quite a bit of experience and intelligence, but the oculus thing is kinda meh
 
@swasheck I agree. Try sitting through a road trip down to Albuquerque where that's about 70% of what he wanted to talk about. ;)
 
@MikeFal glad i just had my kids and "LET IT GO!!!!!" for 8 hours
 
I am impossibly tired. I think I'm gonna go home early.
 
3:33 PM
@Zane That should show you to drink all weekend, mourning your game 1 & 2 losses.
 
@MikeFal i like that he's passionate about it, but i think he's got much more to share with the community than oc. oh well - it was what it was. and it wasnt bad
 
@swasheck Didn't like the finch bots?
 
@MikeFal No need to mourn my friend. Kuemper is back.
 
@MikeFal hey. don't talk smack. i remember a certain goalie's last series ever in his career against a team who was down 3-0 and came back to win the series
@MikeFal meh. it was what it was. it was fun and interesting but i didnt have any major takeaways
 
Your boys will need to find a new place to put the puck because that 6 foot + beast will not be giving up that glove side shot Brysgolov(probably misspelled) gave up so readily.
 
3:35 PM
0
Q: Get into SQL Server 2008 with no management studio and no sqlcmd

NoranI got office program. This program stores his data in SQL Server 2008 Express, but there is no management studio and no sqlcmd. How can i get into pure SQL tables, to use them in my plugin.

To broad or tip of iceberg?
 
Although I will say they've got to do something to slow down that McKinnon kid.
 
@ShawnMelton magic
@Zane he's good. strength of landeskog and speed of duschene
 
@swasheck AH, that would be an awesome option: "To much magic is required to make this work"
 
@swasheck Tons of endurace as well.
 
@Zane well he's 18/19 ... still a kid. :)
 
3:37 PM
Yeah... Like I said got to slow him down.
 
@ShawnMelton Not enough information. I'm trying to understand what he's trying to do. And also, I want to beat the person who mentioned osql as an alternative.
 
@MikeFal Yeah, I snickered at that comment. It sounds like he wants to understand how to program data access from his "plugin".
 
3:50 PM
0
Q: How to get back sql table data?

user3410150IDE: Microsoft SQL Server Management Studio Mistakenly I have cleaned a table data using delete from table tblBookData and now it has cleaned that table, please tell me is there any way to get back that data? If yes than please tell me the process, as I have studied there is a way to get ba...

Kill, dupe
 
i wish we could downvote comments
SELECT id,Items,SUM(Quantity) as Quantity FROM table GROUP BY Items — Mihai 46 mins ago
^^ this is wrong
 
Has to be MySQL
 
@Mihai the only DBMS that will parse for is MySQL and even there it is illogical and incorrect. — Zane 23 secs ago
0
A: SSIS: data types just don't get converted from string

user3549056How do I bump my own question? The problem is still very actual and I'm stuck.

Tisk tisk tisk.
Aaaand it's gone.
 
4:07 PM
> The problem is still very actual and I'm stuck.
 
sigh CAST(1 AS VARCHAR)
 
@Kermit Tell him to do the needful.
 
if you know it is a single character, why not use CAST(1 AS VARCHAR(1))?
 
@MikeFal "But is the actual needful?"
 
@bluefeet Where are you seeing that?
 
4:12 PM
@Zane office code
not on SO
 
bummer
 
@bluefeet or '1'
 
@Lamak very true
see complaining in here has benefits :)
 
ha, it does
 
Someone has drained all of my energy...
 
4:23 PM
@Zane his name is Erik Johnson
 
If I overhear co-workers on the other side of my cube talking about doing something stupid is it rude to walk over there and discuss it.
 
@Zane It Depends ™
 
I just put my headphones on. They don't work in my department so I don't feel I should scold them.
 
@Zane if not, then you can be more passive-agressive. Like laughing every time they say something stupid and sigh and say "people are stupid" or something like that
(don't confuse my previous comment with an actual advice)
 
@Lamak too late I already openly mocked them.
 
4:32 PM
well, you can tell them that it's my fault ;-)
 
@Zane i find direct and frontal confrontation is a great setup for some pretty sweet flanking maneuvers
 
Hi everyone! What's the syntax for enabling multiple trace flags in SQL Server? I've tried -TXXXX YYYY ZZZZ and -TXXXX,YYYY,ZZZZ but no dice - only the first flag gets enabled...
It works when I specify it like ;-T1111;-T2222;-T3333 but that seems pretty klugy; it would be nice to just specify the -T once.
 
@MaxVernon -T4199;-T2371;-T845
 
@swasheck thanks - I guess I'll just go with that!
 
@MaxVernon or you can enable it globally
until next reboot
with DBCC TRACEON(4199,2371,845,-1);
 
4:46 PM
yeah, I wanted to do it at service startup - so your first option works.
cheers!
 
wanna know what's awesome? trying to change the recovery model of a database to add to an availability group and taking a fully backup with COPY_ONLY (hidden from screen). log backup fails. derp
 
@MaxVernon use the SQL Server Configuration Manager UI. In 2012+ you no longer have to deal with semi-colons and all that exact syntax issue...
 
@AaronBertrand that's true
 
@AaronBertrand sweet. The server I'm looking at right now is 2008R2 Web :-(
 
@MaxVernon so? You can connect to 2008 R2 from SQL Server 2012 SSMS / Configuration Manager
Your client tools need to be >= managed server @@version, not ===
 
4:53 PM
@MaxVernon which trace flags are you putting in, by the way
 
true enough! Although I don't really want to install the 2012 tools since I have to go through huge hoops with the ops team for that.
 
@MaxVernon sorry, I assume most people have 2012/2014 tools installed somewhere.
 
1439 - to add database restart and failover messages to the error log
 
If not, then yep, keep doing it the old-fashioned error-prone way.
 
3605 send output from various DBCC commands to the error log
4199 query optimizations
818 detect stale reads
 
4:55 PM
Why do you want to fill the error log with DBCC output
 
1118 and 1117 for tempddb
I guess so someone somewhere will have a chance at seeing it ?
 
Also what kind of architecture do you have where you can use web edition? Do you work for a web host?
 
right now I am, yes. As of next week I got a new new gig
 
@MaxVernon the person running it can see it, no? I don't know that I
 
this server I'm looking at has 3 instances, with around 2000 databases per instance
 
4:56 PM
've ever wished I had put DBCC output into the error log so that I could look at it later. Just seems like you'll be putting a lot of noise in there.
So your maintenance plans (whether actual MPs or manual) are going to fill the error log daily
 
yeah. i'd nix the 3605 tf
 
I'd think pretty hard about that one. YMMV.
 
@AaronBertrand probably a really good point for this server since it has such a high database count
 
Any server, really. What users have permissions to run DBCC commands on a server where you need to double-check the output of those commands after the fact?
Do the point where you need every single DBCC command to be logged? If you have maintenance plans where specific DBCC commands need to be logged, you can manually put a session-level TF on.
 
I'm really just concerned that if I'm running DBCC CHECKDB commands through an agent job, and it reports corruption that no-one would ever know
 
4:58 PM
@MaxVernon (session-level)
 
Won't DBCC raise an error with a severity that you can trap / alert? Who is really going to be poring through gigs and gigs of error log data looking for corruption?
 
@AaronBertrand An unpaid intern?
 
Don't fill up your error log with tons of useless information, build something better targeted to the actual problem.
 
I guess I'm lucky enough that I've never had corruption issues to deal with, so I'm not really sure about it. I have alerts setup for various error severitys of 16 to 25 so I assume I will get notified.
@AaronBertrand thanks for that!
@swasheck I'm going to now.
@AaronBertrand cleaning up the error log on these servers is already going to be a herculean task. I appreciate the advice.
 
I would highly recommend using the TF that suppresses "backup succeeded" information from going to the error log. On a server with 2000 databases, that is going to be a disaster (unless you're a cowboy with no backups).
Sorry I forget the TF off the top of my head and monitoring lunch on the stove
 
5:06 PM
@AaronBertrand sounds like a plan - I'll look it up!
-T3226 suppresses backup succeeded error messages. That'll help!
 
@AaronBertrand Gee mister you sure are full of useful information.
 
@Zane true dat!
 
5:24 PM
@AaronBertrand Spaghettios?
 
totally
Easter leftovers
 
5:35 PM
We plowed through the twice baked potatoes that my aunt gave us.
 
@Zane those sure are yummy
 
Need more Oracle questions on the site that aren't crap. :/
 
Working on getting Plan Explorer into the approved Wells Fargo Toolkit and be part of the standard install package for all SQL devs.
 
JNK
@FreshPhilOfSO Oracle folks are too busy counting their money to ask questions.
2
 
@JNK You're an XQuery guy, right?
 
5:50 PM
@JNK I think most sites just violate their licenses or don't have them.
 
@MikeFal He's a cybernetic organism, of course he's an XQuery kind of person
 
Maybe I should just post it as a DBA.SE question.
Or...shudder..an SO question.
 
DO IT! Then we can see him and Mikael slug it out
Plus, it'll give me an opportunity to DV you
 
@billinkc XQUERY KOMBAT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
FLWORtallity!
4
 
5:54 PM
Nice
 
I just want to concatenate the attribute values coming out of one of my XQuery statements in the query.
 
twss
@MikeFal you could just be lazy and pull the xml for that entry with .query()
 
JNK
@MikeFal I can do it
 
@FreshPhilOfSO Here's a quality one for you lol
0
Q: Group By Expression Error

user3557390Have an issue regarding the queries with GROUP BY. This is the following statement that I use so I can create the query: SQL> SELECT invoice_num, technician_num, service_advisor, invoice_date_in, customer_id 2 FROM invoices_TP 3 GROUP BY invoice_date_in; And this is error I get every time I t...

 
JNK
@MikeFal more details plz
Mr. Erikson knows a lot more XML than I do but if he's not around I'll be happy to help :)
 
6:04 PM
@JNK he's forgotten more XML than i've ever known
 
JNK
@swasheck yeah he just KNOWS XML. I know how to get XML to work in SQL Server.
 
@JNK you can love XQuery ... just don't looooooove XQuery
 
JNK
I'm competent but not passionate :)
 
@JNK that sounds like the opposite of my wedding vow
 
and the marriage still go through?
 
6:08 PM
@Lamak oops
 
@swasheck Ba dum Tish
Oh come on that's not nearly as funny.
 
^^^
 
@Zane but it's more true :)
 
Funny thing about jokes. They don't necessarily have to be true :)
 
@Zane i find the funniest jokes to be rooted in truth
 
6:09 PM
@swasheck yeah, it's better now. I imagine it would've been an awkward moment to witness that vows
 
@Lamak :)
 
Do you promise to use her as you will. To not blast her into to space (angry glare) Until such time as you, grow weary of her?
 
@JNK I'm trying to mine the plan cache for what seek predicates are used against a specific table. I can find the nodes with the attributes, but I want to pull them out in a concatenated list (1 row) so I can compare which sequence of predicates are used.
 
JNK
ok
Can you share what you have so far?
 
YEah, gimme a bit, I'm kind of in the middle of futzing. Of course, the other side of this is making sure I know that I'm getting what I should be getting.
 
6:21 PM
yeah, @JNK, what about that?
@JNK The parameters I used were pretty simple, but what if I have say 5-10 parameters that are xml with lists of ids? — test 1 min ago
 
@MikeFal hey ... i was 'bout'ta do something very similar
 
As far as licensing is concerned with Oracle, there are some amazing tools and internal views (AWR etc) that make it really easy to diagnose perf problems, but you have to buy a license. The older statspack scripts still work, but they're inferior and use less granular data
Partitioning is expensive as an option too, but people tend to overuse it anyway. It's primarily best used as an archival tool. You can emulate it with a view over many tables trivially
 
@FreshPhilOfSO so you folks have that problem too?
 
Same with some data guard licensing. You can easily script standby archive apply so you don't have to pay
Yeah
 
6:32 PM
@swasheck and I find the best humor comes from picking on ones significant other :)
 
@Zane nah. someone else's significant other is usually the funniest target
 
Alright kids I've got to go home and plan for this party.
 
Well, SQL Server locking and serialisation baffles me. Load of shit. Every Oracle app I've ever worked with has used the default [sane] isolation level. No NOLOCK crap :P
 
@FreshPhilOfSO It's because Oracle had their isolation mechanics built better from the ground up.
 
I need to change my name back soon. I'm confusing myself with @kermit/@FreshPrinceOfSO and that can only ever do the world a massive disservice !
 
6:37 PM
@MikeFal tacit look in sybase's direction to find blame?
 
@MikeFal I knew Sybase first :)
 
hipster
 
Eh, Microsoft has had plenty of time to "fix" it. And they sort of did with Snapshot Isolation, but a lot of it is just the foundation they chose to build upon.
 
Lock promotion really screwed our software and Sybase didn't scale past 300Gb, so we ported to Oracle
 
JNK
@MikeFal I'll take a look v shortly
 
6:39 PM
@JNK No rush. I'm gonna go get lunch.
 
We had to "shard" (in 1999 before the cool NoSQL kids did) the sybase deployments and the biggest one ended up at 14 dataservers I think
 
@FreshPhilOfSO did you check your pants after you sharded?
 
They were brown
 
@Phil how RMAN friendly are you?
 
@rfusca I know a fair bit
 
6:41 PM
there's still something I don't 'get' about channels and stuff
so, I take backups and normally "allocate channel c1 type disk format '/mnt/abc123'"
 
for ...certain stupid sysadmin reasons... I can longer access the mount point at /mnt/abc123 and the same drive is now located at /mnt/abc456
so, how do I tell RMAN that all the old stuff is at /mnt/abc456?
 
Depends how you're invoking rman. Alter it in the script
 
right, that will send the new stuff there
how does it know that the old stuff is there?
 
Or ask them to symbolic link it to the old location
 
6:45 PM
can't symlink the old location
they pulled the power to something during an NFS write do the drive and the mount point is broken, can't unmount so I can't put anything at /mnt/abc123
 
Change your script then
 
RMAN will figure out that old stuff lives at the new point as well?
 
Are the old backups still available?
 
yes, there at /mnt/abc456
its the same drive, with all the old backups, just mounted to a different point
 
Ok. Are they backupsets? rman catalog is probably what you want to go for. Loads of good blogs. I remember from when I had to do something similar
 
6:48 PM
ya, we're using the catalog
but all the catalog entries point to /mnt/abc123
@FreshPhilOfSO oh, nevermind, i see there's a seperate command 'catalog' gotcha
 
Yeah, sorry. It's catalog backup or catalog backupset? Wasn't clear, apologies
 
@FreshPhilOfSO I think I just need to crosscheck to remove the now 'invalid' entries and then "CATALOG start with '/mnt/abc456'"
 
@FreshPhilOfSO thanks for the help
 
I've not done anything, no worries mate :)
 
7:04 PM
@JackDouglas You are a diplomat
@Martijn SE have a long track record of caring what the community wants. Not necessarily doing what the community wants, but definitely caring. The goal of this post is find out the strength of feeling among us, in the hope that SE will be prompted to start making plans for the future of our Markdown. — Jack Douglas 2 days ago
 
Is locking still a big problem in SQL Server?
 
JNK
@MikeFal you back?
@MikeFal Try this pastebin.com/J4R66JPu
 
@JNK blocked ... could you gist it?
 
JNK
its not long so here it is
DECLARE @TableName sysname = 'Journal';
SET @TableName = QUOTENAME(@TableName,'[');

WITH XMLNAMESPACES (DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan')
,IndexSearch
AS (
SELECT qp.query_plan
,cp.usecounts
,ix.query('.') AS StmtSimple
FROM sys.dm_exec_cached_plans cp
OUTER APPLY sys.dm_exec_query_plan(cp.plan_handle) qp
CROSS APPLY qp.query_plan.nodes('//StmtSimple') AS p(ix)
WHERE query_plan.exist('//Object[@Table = sql:variable("@TableName")]') = 1
)
SELECT TOP 10
StmtSimple.value('StmtSimple[1]/@StatementText', 'VARCHAR(4000)') AS sql_text
just change the param at the top
 
yay STUFF
 
JNK
7:09 PM
one thing I'm not sure about is I'm not using an order by
but the order is correct and I'm assuming will always be in the provided XML
i.e. predicate 1 will always be first in the xml elements
 
XML is satan
6
I was quite happy with CSV etc when I started my career. Then all files became 20 times bigger!
Was a massive problem though. Previous clients had a section break, then comma seperated. So "10" would be "10". Then it became <CallDuration>10</CallDuration> and <SMSDateDelivered>2010090510203030</SMSDateDelivered>
Clients went bananas about the storage space increase, as did i
Soon sorted it back to proper relational stuff :)
 
Heh, we had the Mainframe folks generate us an extract using their automagic XML tool. 100k row file was 60GB.
Dump it to a fixed width file, something like .5GB
 
Same shit, mate. Ridiculous
All for the sake of technology.
 
Not to mention speed of processing. Somebody changed a process here several years ago that went from directly inserting some data into the db in a 'queue table' through a connection, to writing it out to a series of XML files which gets put in a queue and then the queue reads the files and writes to the DB...1000x slower, at least
 
JNK
@rfusca XML is verbose
I have been trying to ingrain in folks here the importance of using short element names for anything that gets sent into the database
 
7:21 PM
"But we can easily swap out the database from OraSQL to PostServer and it'll be seamless"
 
JNK
They use a lot of xml in the web side and have element names like "AuditItemCountMeasurementCollection"
 
Was on a project for a very big telco and the clueless IT security bloke was trying to enforce strong encryption between the app and DB server. Their firewall rules were so strong that I had to go into the data center and install the app via a serial cable. The 2 servers were in a rack next to each other. The performance hit for encryption doubled the hardware needed
 
@FreshPhilOfSO niiiiiice
 
@rfusca clueless!
 
@FreshPhilOfSO ya, this whole mess I'm in now started because our sysadmin setup two Exagrid nodes to replication...across a 10Mb/s network. And the initial replication was about 1.8 TB
and the two Exagrid boxes are like....6 ft from each other. And he could have set them up on the gigabit network
 
7:29 PM
@JNK erm ... you there?
 
@rfusca loopback cable mate!
I'll openly admit I worked for bskyb on a contract and sat next to their head of IT security. I used a SSH tunnel for all my browsing, sent external DBS via that, and he always joked he'd catch me if I did anything wrong. "Just been on another security course blah". If you need to go on one then..... Well
 
JNK
@swasheck yeah whats up
 
@JNK are you any good with reading execution plans?
 
JNK
I'm no @PaulWhite but I'm good enough
 
@JNK a key lookup is generally attempting to satisfy either an output or a separate seek. is that correct?
 
JNK
7:32 PM
@swasheck Yeah ordinarily it's for the SELECT but could be for another filter or something
 
@JNK as i thought. but now, how can i tell which it's attempting to satisfy
 
JNK
Its really any column from the row that the engine needs that's not in the index given
well you look at the query
it processes the SELECT last
or you can comment it out of the select and see
 
@JNK Perfecto! Thank you sir.
 
JNK
but if the column is both in a filter and in the select then it's for the filter
and it will likely just propogate down to the select from there
@MikeFal happy to help!
Nice thing about XML is you can nest subqueries in the SELECT list
 
@JNK so there's nothing in the plan or the plan xml that would help me automagically detect that, right?
 
JNK
7:35 PM
@swasheck I mean you can use SSPE and I think it has some tools to make it easier
 
wow, how did I never know about the 'disown' linux command before
 
JNK
I'm concerned if you don't know whats in the select list though, @swasheck
;)
assuming this is a hairy query
Hairy Query™ is a cool phrase I just made up
 
@JNK i dont want to eyeball it. i want to find the plans in cache that are doing lookups and see if i can get the columns that are least "covered" by our current indexing
so i've got the lookup retrieval down pat
and i have my output columns and my seek columns
but i dont want to irresponsibly aggregate them
and misclaim that a column needs to be included in some sort of indexing strategy revamp
 
@swasheck There a three basic reasons a lookup can exist. (1) to retrieve additional columns; (2) to apply a predicate to an uncovered column; (3) both operations on the same column.
The "seek" columns are typically not that useful because the lookup seek is just locating the row in the base table using the clustered key or RID.
 
@PaulWhite so that's the way you're supposed to say it. neat!
@PaulWhite OutputList/ColumnReference is what i'm looking for if i want to find columns that could benefit from being covered?
 
7:42 PM
@PaulWhite I wonder if you get pinged everytime someone on the internet says "execution plan"
 
@Lamak @JNK pinged me. Though I'm happy for you to believe I am psychic :)
@swasheck Not quite. Let me show you an example:
SELECT P.ProductID, P.Name
FROM Production.Product AS P
WHERE P.Name LIKE N'G%'
AND P.Color = N'Red'
 
@PaulWhite psychOTic
 
@PaulWhite I have intrinsic evidence
 
That query has a predicate on a column the Name index does not cover. So, we get a Key Lookup to fetch Color and apply a predicate, but the column is not returned from the lookup (and so does not appear in the OutputList).
 
Did I hear XML :)
3
 
7:47 PM
@PaulWhite ok. so now we're back at where i thought i was :). i guess i dont understand this in that context, 'The "seek" columns are typically not that useful because the lookup seek is just locating the row in the base table using the clustered key or RID.'
 
@MikaelEriksson 2 psychics on the Heap :)
 
@PaulWhite right ... as expected (though not desired)
 
@swasheck Point is, that Key Lookup has an empty <OutputList /> because no looked-up column is returned. It's not the seek column (ProductID) that needs to be added to the index, it's the <Predicate> ... <ColumnReference>, Color.
This might be tricky to extract programmatically.
 
@PaulWhite ah. thanks.
@PaulWhite gathering that
 
7:54 PM
Then again, everything is unnecessarily hard using XML.
 
<BinaryValue>0</BinaryValue><WasteOfSpace/>
 
@PaulWhite i'll drink to that
 
Especially on a super-strength encryption Token Ring network.
 
@PaulWhite - can I get your opinion on "lock pages in memory" for a server with 3 instances, where each instance has 2000+ databases? We're using 2008 R2 Web Edition
 
Final point, the seek column will already be in the n/c index because otherwise how would it find the base row? All regular indexes include the cluster key/RID.
 
7:56 PM
Just wait a minute. Trying to get some sleep here. Every time someone uses XML on the internet there is this thing that goes bing.
 
XML
 
I quite fancy <spread "value=Marmite" /> on my toast this morning.
 
That's not XML :)
 
i wiped with XML this morning
 
JNK
<Toast Topping='Vegemite' />
 
7:57 PM
The messed up thing is, all the new java kids struggle parsing comma delimited stuff as it is :/
 
<squeeze @type="Charmin" />
 
@fresh you are only two Replace calls fromturnibg the comma list to XML and then it all make sense for the kids.
 
@MaxVernon My natural instinct is to start by assuming LPIM would be A Good Thing. There would have to be a good reason NOT to do it. Useful reading
 
@FreshPhilOfSO BSON is the BizzOmb
 
@PaulWhite cheers!
 
7:59 PM
Bit-packing and compressing FTW
@JNK Ugh. Vegemite! Ack ack ack
 
08:00 - 20:0020:00 - 23:00

« first day (1203 days earlier)      last day (3648 days later) »