Viewing 15 posts - 4,006 through 4,020 (of 6,026 total)
SQL_Kills (3/31/2015)
Hi,I tried to do a cross join but it wasn't working, do you have a example?
Thanks
What I was referring to is something like the following. Here we have a...
March 31, 2015 at 8:08 am
SQL_Kills (3/29/2015)
A0001 still needs to appear as 50 as a Difference for the InjectedDate 2015-03-05 23:19:01.727
To pad a resultset with missing rows required to form a complete set, you can...
March 31, 2015 at 7:19 am
Most ETL jobs from source to target want to perform both inserts for new rows and updates for existing rows having the same primary key. However, if you only need...
March 30, 2015 at 12:29 pm
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
Viewing 15 posts - 4,006 through 4,020 (of 6,026 total)