Viewing 15 posts - 4,021 through 4,035 (of 6,038 total)
Steve Jones - SSC Editor (3/27/2015)
Eric JOATMON (3/27/2015)
You mention "extra columns in a result set" as being a downside to deploying database changes prior to application code changes. That...
March 27, 2015 at 9:49 am
You can use the following to identify what procedures or queries are using "SELECT *".
SELECT DISTINCT objtype, db_name(dbid)dbname
, object_name(objectid,dbid)objname, usecounts, [text]
FROM sys.dm_exec_cached_plans P
CROSS APPLY sys.dm_exec_sql_text (plan_handle)
WHERE [text]...
March 27, 2015 at 8:35 am
When clustering on a composite natural key, perhaps something like OrderDate + StoreID + SKU, then place the most sequential column in the left most position. Not only does this...
March 27, 2015 at 7:48 am
RonKyle (3/27/2015)
btw. natural keys will make the index wider than an integer. I would prefer to see a database properly normalised and applications properly thought through, but then again the...
March 27, 2015 at 7:24 am
Installing SQL Server in a production environment is one area that few of us will ever master. Even in a large organization, there just enough enough opportunity for an in-house...
March 26, 2015 at 10:31 am
The debate about Integer versus GUID really hinges around whether we're talking about the clustering key. For obvious reasons, whether your table is clustered on a sequential versus random key...
March 26, 2015 at 10:27 am
Please provide a description of what this query is attempting to accomplish. For example, if all you're trying to do is return the most recent row for each BL_ID, then...
March 25, 2015 at 1:34 pm
SharePoint has a Wiki feature, if you want to create something that visible within your team or organization.
March 25, 2015 at 7:09 am
If you've already granted access to other accounts, and the issue is that you can't remember your own the SA login password, then you can can login under a different...
March 25, 2015 at 6:51 am
The worst comments are where someone has /* commented */ out blocks of code, sometimes pages and pages, with no explanation for when or why.
March 24, 2015 at 3:05 pm
RonKyle (3/24/2015)
For that reason, a sequential integer will generally prove more efficient than a GUID.
Why did you qualify this? Wouldn't this always be true? That doesn't mean that...
March 24, 2015 at 12:10 pm
GUID versus Integer, in terms of how efficiently the CPU can process them, is practically irrelevent in the databse realm. The vast majority of database are page crunchers, not number...
March 24, 2015 at 10:19 am
Chris Harshman (3/24/2015)
Eric M Russell (3/20/2015)
Yes, I do that sometimes, but the catch is that it has to be a 'persisted' computed column. Adding these persisted columns to an existing...
March 24, 2015 at 8:31 am
Chris Harshman (3/24/2015)
Iwas Bornready (3/24/2015)
March 24, 2015 at 7:33 am
Jeff Moden (3/22/2015)
Eric M Russell (3/20/2015)
Chris Harshman (3/20/2015)
Eric M Russell (3/20/2015)
March 24, 2015 at 7:17 am
Viewing 15 posts - 4,021 through 4,035 (of 6,038 total)