Results of 1,2 and 3 below are same. Just need to know whether this logic is correct that both of the queries return the value of no. of primary keys..
1.
SELECT *
FROM sys.indexes i
INNER JOIN sys.tables t ON i.object_id = t.object_id AND
t.type = 'U'
LEFT JOIN sys.extended_properties AS EP ...
From [jwz.org:](http://www.jwz.org/blog/) *'Kenobi prefers the obliging company of droids which, long story, accounts in part for the Cantina's policy against them.'*
@ypercube My flatmate is an estate agent manager. Current branch is Kingston but prior to that she was in Tooting Broadway, so she'll know a bit about surrounding areas. What would you like me to ask her?
Iran Air Flight 655 was an Iran Air civilian passenger flight from Tehran to Dubai that was shot down by the United States Navy guided missile cruiser USS Vincennes on 3 July 1988. The attack took place in Iranian airspace, over Iran's territorial waters in the Persian Gulf, and on the flight's usual flight path. The aircraft, an Airbus A300 B2-203, was destroyed by SM-2MR surface-to-air missiles fired from the Vincennes.
All 290 on board, including 66 children and 16 crew, died. This attack ranks seventh among the deadliest disasters in aviation history, tenth if including the 9/11 attacks, which...
In the history of commercial aviation, there have been many airliner shootdown incidents which have been caused intentionally or by accident. This is a chronologically ordered list meant to document instances where airliners have been brought down by gunfire or missile attacks, including wartime incidents, rather than terrorist bombings or sabotage.
== 1940s ==
=== Kaleva OH-ALL ===
Junkers Ju 52-3/mge "Kaleva" OH-ALL was a civilian transport and passenger plane operated by the Finnish carrier Aero O/Y, shot down by two Soviet Ilyushin DB-3 bombers on June 14, 1940, while en route from Tallinn,...
I do realize that the spirit of what I am trying to do could be in violation of the terms. I'll have to do some more research into the terms before I role this out. Otherwise, I do have another software I could use for the data integration portion of my project. — Andrew Corson2 mins ago
I think I'll keep striking these two matches together while showering in gasoline. I'm sure nothing bad will happen
@billinkc More like "I'll just keep taking all these free boxes I find on people's doorsteps. How am I supposed to know they aren't for me and/or I should pay for them?"
It's all just free stuff that nobody worked for thousands of hours to produce!
Tell me if this is too snarky
@user44098 I've always heard and practiced the opposite - the table is a collection of "Users" where each row is a "User". There's a reason that in the object explorer tree it says "Databases" not "Database" and "Stored Procedures" not "Stored Procedure". As well, not to be too trite, it's a little jarring to be lectured about proper English usage in a comment with a misuse of "there". — JNK ♦14 secs ago
@bluefeet That's exactly how I got into it. I hated the idea of presenting to co-workers, tried everything to get out of it. Funny how things turn out.
@user44098 That is bizarre logic indeed. A table is a set of things. A set of users, a set of packages, a set of messages. It is not a set of user, a set of package, or a set of message. You update all the users, you don't update all the user. I think the singular nomenclature comes from object-oriented people who are always thinking of things as acting on a single item at a time, which is not how we think in SQL Server. — Aaron Bertrand ♦22 secs ago
We've got a proc that is used for an SSRS report - we are having some parameter sniffing issues with it. Basically this goes through and runs 20 or so queries to get the final result. Based on the parameter we can have 200 rows up to 400k+ rows returned.
I've compared the execution plans for each of the separate queries to see what could be helped by the OPTION RECOMPILE and it is most of the statements but adding this could kill the CPUs if we have multiple people trying to run this report at the same time, correct?
@bluefeet can you run it with that recompile and see if you get a better plan? maybe just get the estimated plan (based on stats) to see if you get a better/different plan
Area 51 wouldn't allow me to use the tag 'music' for a suggestion in music. And its a stipulation at the end of my effort here at stack exchange. Is this a bug?
@swasheck Yes, I've already done lots of improvements to this proc. Added some indexes that were missing. But I ran across this parameter sniffing issue today
First off, let me try to provide some context. I'm developing an app that is used to check which tests have been requested, which test results have been received, and which results are extra. These are basically groundwater tests. Each "Sample" has many "Analytes"; an "Analyte" is just one test t...