Viewing 15 posts - 4,006 through 4,020 (of 6,035 total)
You can prevent duplication of service codes by leveraging an INSTEAD OF INSERT, UPDATE trigger where each service column is conditionally populated depending on whether a preceeding service column has...
April 1, 2015 at 11:29 am
If the procedure uses BEGIN TRY / BEGIN CATCH error handling, then confirm what it's doing with trapped errors. Consider commenting out the error handling blocks and just let...
April 1, 2015 at 10:56 am
Really, your disposable audit records that you purge after five days must have referential integrity and must be totally consistent? Let's consider that over engineering on the part of the...
April 1, 2015 at 9:40 am
Eric JOATMON (4/1/2015)
April 1, 2015 at 9:17 am
Maddave (3/30/2015)
I've been asked to come up with a better solution to delete the data. I can delete it in batches, which would solve the tlog growth, but it wouldn't...
March 31, 2015 at 2:13 pm
sqlfriends (3/31/2015)
The query is:
(@p0 datetime,@p1 datetime,@p2 bigint,@p3 datetime,@p4 datetime,@p5...
March 31, 2015 at 12:03 pm
sqlfriends (3/31/2015)
Any suggestions about the solution according to the chart I attached?Thanks!
Post the text for the actual UPDATE statement and also for the statement that is blocking.
Am I...
March 31, 2015 at 11:32 am
Once a year I watch 'The Sound of Music' with the family. This is one movie that could never be properly redone.
March 31, 2015 at 10:19 am
Michael Valentine Jones (3/31/2015)
Lost in Space
The Brady...
March 31, 2015 at 9:37 am
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
Viewing 15 posts - 4,006 through 4,020 (of 6,035 total)