Viewing 15 posts - 61 through 75 (of 14,952 total)
Most likely, SQL Server will resolve the OR and the Union options the same way: Split the query in two and then merge the results together.
Look at the execution plans...
June 14, 2016 at 8:55 am
Clarification needed: Are you loading 2 files at the same time, or are you loading 1 file that might be in a different format different times?
I.e.: Do you have an...
June 14, 2016 at 8:53 am
Sean Lange (6/7/2016)
Jeff Moden (6/7/2016)
Eric M Russell (6/7/2016)
They're asking the wrong type of questions for a job interview.
I think it's a great question. It shows whether or not you...
June 9, 2016 at 11:55 am
mcfarlandparkway (6/9/2016)
These variables...
June 9, 2016 at 11:50 am
Do your users know that you're planning on doing that? It sounds seriously drastic.
If you really want to do this, you can find this data in sys.dm_exec_requests. https://msdn.microsoft.com/en-us/library/ms177648.aspx
June 9, 2016 at 11:47 am
The most common cause of "sudden slowdown of what used to be fast" is a change of data volume.
The second most common is hardware degradation (RAID rebuild, etc.).
After that, it's...
June 9, 2016 at 11:44 am
It's hard to help you write a query with this little to go on.
Any chance you could include the table structure (as a "Create Table" statement, not just text), and...
June 9, 2016 at 11:33 am
The logic I see is a cascading calculation from some row in a table with an "F" in it, up to a value from another table.
If the variables aren't used...
June 9, 2016 at 11:29 am
What kind of testing? In what environment?
June 9, 2016 at 11:27 am
It looks like you want to use 1 of 2 end date values. 1 from the query, 1 from a variable.
Any rules? Like use the lowest value? ...
June 9, 2016 at 11:27 am
The subject you're asking about is called "data hygiene". It's about things like duplicates, unexpected NULL values, out-of-expected-range values, and a whole lot of other similar issues.
It takes a...
June 9, 2016 at 9:07 am
Sounds about right.
In SSIS, you'd set it to redirect error rows.
In T-SQL, you have to write your own error-handling routine.
June 9, 2016 at 8:38 am
Have you tried replacing the computed column with a static column?
Does the data in this table get changed frequently through direct connections? That's the main reason to use computed...
June 9, 2016 at 8:21 am
You can drop and recreate foreign key constraints if you want to load data in the main table first. This can create problems with untrusted constraints. It can...
June 9, 2016 at 8:13 am
Multiple possible reasons:
1. They don't know better and don't have a good reason
2. If the length variation falls in certain patterns, fixed-width stores more efficiently because of the 2-byte variable-length...
June 9, 2016 at 7:53 am
Viewing 15 posts - 61 through 75 (of 14,952 total)