Viewing 15 posts - 1,606 through 1,620 (of 7,191 total)
I assume that the SaleCustomerContact table is one of the base tables in the v_SaleCustomerContact view? You said that the views were a union of several base tables. Therefore please clarify...
April 19, 2017 at 4:46 am
Yes, bad database design, almost certainly. Are the tales being UNIONed Sales2017, Sales2016, Sales2015 and so on, by any chance? When you said you updated the statistics, did you update...
April 19, 2017 at 4:03 am
I take it from the names of the three objects in question that they're all views? This adds a further layer of abstraction that makes it even harder for us...
April 19, 2017 at 3:52 am
I suspect that you have values of FULLNAME that don't contain a ",". In such cases, your CHARINDEX expressions will evaluate to -1, which is an invalid length parameter to...
April 18, 2017 at 8:41 am
You can use LOGINPROPERTY(name, 'IsMustChange') to check whether the password has to be changed.
Please, please, please, though.... take an afternoon (or however long it takes) to read...
April 18, 2017 at 3:03 am
Edvard
Not easy to visualise without sample data, but do you just need to do a LEFT JOIN and add B.personalid IS NULL to your WHERE clause?
John
April 18, 2017 at 2:48 am
Satish
Yes, that's possible. Please start by reading about log shipping and database mirroring. You might also consider upgrading to a more recent version in order to take advantage...
April 18, 2017 at 2:34 am
Do the values in ORDERDATE have a time portion? If so, that'll explain the discrepancy, since in the ORDERDATESTRING column, you chop that portion off.
April 13, 2017 at 9:53 am
103 is dd/mm/yyyy, which is an ambiguous date format. Could it be that your report server is set up to interpret dates as mm/dd/yyyy?
John
April 13, 2017 at 9:40 am
Please see this article about execution plans - or make your own investigations. There's a lot of stuff out there. The article is specifically about SQL Server execution...
April 13, 2017 at 8:38 am
There's no cost in making your code look readable, just as there's no cost in writing in paragraphs instead of one long sentence. Laying out your code will become second...
April 13, 2017 at 7:13 am
What error are you getting? It might be easier to import the raw dates into a staging table and convert them from there.
John
April 13, 2017 at 5:10 am
You're not partitioning by j - you're doing the rank over the whole data set, so just remove the PARTITION BY clause and you'll get the desired result.
John
April 13, 2017 at 5:08 am
Dominik
You don't have to back up to a local drive - you can back up to a network share, thus rendering the copy step unnecessary. Even if you...
April 13, 2017 at 3:44 am
Viewing 15 posts - 1,606 through 1,620 (of 7,191 total)