Viewing 15 posts - 5,611 through 5,625 (of 7,608 total)
Jeff Moden (11/20/2014)
ZZartin (11/20/2014)
November 20, 2014 at 3:37 pm
No, DBAs should not know and definitely not store end user passwords, period.
App passwords are a different matter, and it can depend on the app. But stored passwords should...
November 20, 2014 at 2:02 pm
You can't calculate "work hours" without "in" and "out" markers. The work time calc is very easy if you a matching "out" for every "in".
November 20, 2014 at 1:46 pm
In other words, you need to create a new table that explicitly specifies the clause:
CREATE TABLE ... (
...
TEXTIMAGE_ON [new_filegroup_name]
...
November 20, 2014 at 1:23 pm
It's almost certainly the NTEXT that is the bulk of the data, and you can't move it without recreating the table entirely. Btw, you should change the ntext to...
November 20, 2014 at 1:21 pm
No, that's true, but you could use it in a view.
November 20, 2014 at 10:53 am
I wasn't not sure what '20140601' was relative to the run date. Is it the current month, the next month, 6 months ago?
Therefore, I used @month_1 to hold the...
November 20, 2014 at 10:50 am
swhetsell (11/20/2014)
ScottPletcher (11/19/2014)
November 20, 2014 at 10:35 am
NULL will never be "LIKE" or "=" anything. To allow NULL values, you'd have to add:
WHERE (column_name LIKE '%' OR column_name IS NULL)
November 19, 2014 at 4:33 pm
Try "LIKE" '%' rather than "=" :-).
November 19, 2014 at 3:37 pm
Something else to check:
Did you explicitly specify the schema name of the table on the ALTER?
If not, make sure you are not accidentally working with a similar table / table...
November 19, 2014 at 3:37 pm
D'OH, got interrupted by work, forgot one thing.
Let's see if we can also reduce the number rows in the dates side of the JOIN. I'm assuming here that "Sunday"/"Saturday"...
November 19, 2014 at 3:00 pm
Yeah, that join is not being processed well.
First, try just forcing a HASH join, i.e. writing "INNER HASH JOIN" instead of just INNER JOIN: that should be better here than...
November 19, 2014 at 2:40 pm
swhetsell (11/19/2014)
ScottPletcher (11/19/2014)
November 19, 2014 at 2:22 pm
Better would be an inline-table-valued-function.
If you intend to stick with a scalar function, at least get rid of the variable:
create function dbo.fu_salesTotal(@idSale int)
returns decimal(12,2)
as
begin;
return isnull((
...
November 19, 2014 at 2:20 pm
Viewing 15 posts - 5,611 through 5,625 (of 7,608 total)