Viewing 15 posts - 1,156 through 1,170 (of 3,480 total)
If you don't use a date in tabular model, you can't mark the column as a date, so you can't use a lot of the built in time intelligence functions......
November 25, 2018 at 9:49 am
November 24, 2018 at 2:30 pm
A cursor for that is all kinds of overkill. How about a simple not exists subquery?
SELECT *
FROM Employee e
WHERE NOT EXISTS (
SELECT s.EmployeeID
November 24, 2018 at 12:08 pm
(Wait, so you can update directly?)
Wouldn't you have to run this on each column?
UPDATE HumanResources.Employee SET EncryptedNationalIDNumber = EncryptByKey(Key_GUID('SSN_Key_01'), NationalIDNumber);
November 21, 2018 at 10:17 am
You mean by querying the sys.all_columns table and using dynamic SQL to automate it?
November 21, 2018 at 8:46 am
The belwo is my sample table structure and I will be buildinga sample website...
November 20, 2018 at 7:44 pm
Also, how do you fix a "slow database" when you don't know exactly what is slow? Do you have benchmarks? A list of the most used stored procedures?
November 20, 2018 at 4:51 pm
Of course, if you want to recover the records you deleted, and you're in Simple Recovery, you're out of luck. You'd have to restore an old copy of the database...
November 20, 2018 at 2:56 pm
???
Recovery models don't have anything to do with what SQL works in a database. That's controlled by the Compatibility Level the database is set to.
November 20, 2018 at 2:43 pm
A data warehouse is just another database with a star schema instead of a standard 3NF schema.
November 20, 2018 at 11:20 am
You're looking for something called Market Basket Analysis.
This article might be helpful
November 20, 2018 at 10:03 am
We can't see your data. How are we supposed to advise you?
PowerBI is sort of cool, but the fact that you can't write back to sources BLOWS.
use SSIS instead?
November 20, 2018 at 9:12 am
DECLARE @start_date date
DECLARE @end_date date
SET @start_date = DATEADD(YEAR, -1, GETDATE())
SET @end_date = GETDATE()
Instead of the above value for @start_date, you could do something...
November 14, 2018 at 9:07 pm
Should be in the ExecutionLog
https://docs.microsoft.com/en-us/sql/reporting-services/report-server/reporting-services-log-files-and-sources?view=sql-server-2017
Here's a really helpful article I found...
https://www.sqlchick.com/entries/2011/2/6/querying-the-report-server-execution-log.html
Sue's right... I think your question is backwards... SSRS reports connect to databases...
November 14, 2018 at 5:07 pm
Difference between what? The SSI1, SSI2, and SSI3 columns?
If they're dates, use DATEDIFF(), otherwise just subtract.
November 14, 2018 at 12:48 pm
Viewing 15 posts - 1,156 through 1,170 (of 3,480 total)