Viewing 15 posts - 2,026 through 2,040 (of 6,038 total)
comic_rage (11/16/2016)
November 16, 2016 at 1:55 pm
comic_rage (11/16/2016)
I have the following query that is returning 1.6 M rows and about 300 columns. I can't change this factor. Here is the current
query
select Column1 ... Column290
from dob.table1
where...
November 16, 2016 at 12:13 pm
In T-SQL there is an IGNORE_DUP_KEY option that can be added to the primary key. Unlike MySQL's ON DUPLICATE keyword, it doesn't result in an update for a row with...
November 16, 2016 at 11:42 am
There are some good articles on this site related to event Auditing, including how to filter for specific types of operations and users. http://www.sqlservercentral.com/articles/Stairway+Series/130498/
You can also fall back to using...
November 16, 2016 at 11:00 am
Start with learning how to live up to your formal job description. Ask your immediate supervisor what's expected of you in terms of roles. You don't want to focus on...
November 16, 2016 at 9:47 am
When running sp_who2 or DMV queries from SSMS, rather than filtering on 'SA', perhaps excluding your own SPID is what you really want. It's entirely possible that another DBA (or...
November 16, 2016 at 9:39 am
When it comes to choice of database, it helps to understand that some platforms are much better suited for staging large amounts of data (ie: Hadoop or Cassandra), some databases...
November 16, 2016 at 9:22 am
This is a long shot, but assuming the user who executed the DELETE operation is still connection, and the last command they executed as the DELETE, then it should work....
November 16, 2016 at 8:14 am
Are the production staging tables to be entirely deleted (truncated), or will you delete only rows aged within a specific date range?
November 16, 2016 at 7:31 am
If you discover it to be a timing issue, and the job step can be repeated to completion, then consider going under Advanced properties of the step and setting it...
November 16, 2016 at 7:28 am
If MERGE isn't an option, then perhaps something like the following (pseudo-code of course). This way, if the row does happen to exist, then it's a single lookup.
UPDATE ... WHERE...
November 15, 2016 at 1:34 pm
SQL formatting tools are very useful when you have a new coding standard applied to legacy databases and applications or when there are other developers writing code outside the core...
November 15, 2016 at 10:10 am
One useful new feature for SQL Server would be something like "declarative table level DML assertions". Basically this would be sort of like a trigger that intercepts a DML operation...
November 15, 2016 at 8:56 am
Gary Varga (11/15/2016)
Eric M Russell (11/15/2016)
November 15, 2016 at 8:36 am
Viewing 15 posts - 2,026 through 2,040 (of 6,038 total)