Viewing 15 posts - 136 through 150 (of 1,315 total)
If you're trying to generate a dynamic SQL command to return rowcounts for every table, this would work.DECLARE @sql NVARCHAR(MAX) = STUFF((
SELECT CONCAT(' UNION ALL SELECT...
December 20, 2017 at 11:12 am
Simplistic answer for Question 3: Import CSV data into data warehouse.
Import the CSV file into a staging table.
For each dimension:
Find all new dimension values in...
December 14, 2017 at 11:47 am
Are any of the new tempdb data files on a different disk? Too much data to fit on the disk is still going to be too big when split into...
December 12, 2017 at 3:39 pm
You could use "INSERT INTO ... SELECT NULLIF(a, ''), NULLIF(b, ''), ... FROM OPENQUERY()" to convert empty strings to NULL.
December 12, 2017 at 3:35 pm
You have to add the day number, or however you define your 24-hour periods, to the PARTITION BY clause. Then you will get a row 1 for every widget ID...
December 12, 2017 at 3:13 pm
If the stored procedure exists on server A, the EXEC statement must refer to where it is stored.
"EXEC dbo.[Test]" when connected to the same database.
"EXEC master.dbo.[Test]" when...
November 30, 2017 at 8:00 am
I have been lucky to work for companies that had very enjoyable parties, even though I'm more of an introvert.
My first job back in the 80's had some...
November 16, 2017 at 11:51 am
If you're building these queries dynamically, " QUOTENAME(Description, '''') " puts quotes around a string and doubles any embedded quotes. Or " QUOTENAME(Description, CHAR(39)) " if you don't like the four-apostrophe literal.
November 16, 2017 at 11:34 am
The SSISConfiguration.sql attachment on the original article should be all you need. You don't say what's not...
November 13, 2017 at 9:20 am
I think these schemas are historical artifacts. These security roles were part of SQL back at least to version 6.0. To be a role, they also had to be defined...
November 10, 2017 at 11:07 am
This is an approach that worked well with SQL 2005 and 2008, maybe through 2012. But with SQL 2016 you're better off using package variables that are set by project...
November 9, 2017 at 2:44 pm
In case there were other databases on the server that did not have the target table, I thought it would be nice to include a filter for only the databases...
November 3, 2017 at 12:03 pm
I would not be afraid of using a trigger to capture all event info you need (primary key, new column value, time, user login). Your description makes it clear that...
September 26, 2017 at 11:20 am
If nothing inside the For Each File container is logging any progress, the most likely explanation is that it isn't finding any files.
You can get more details by...
September 26, 2017 at 10:39 am
Older Management Studio versions can connect to newer servers and run queries. You could probably even get SQL 2000 Query Analyzer to connect and run a query on SQL 2016....
September 18, 2017 at 10:38 am
Viewing 15 posts - 136 through 150 (of 1,315 total)