Viewing 15 posts - 1,171 through 1,185 (of 13,838 total)
I suggest that you use a SQL query as the source for your dataflow, with output to a single column. Something like this:
DROP TABLE IF EXISTS #Place;
CREATE...
September 9, 2022 at 8:06 am
Is this a blog post, or do you have a question?
September 9, 2022 at 7:54 am
This is a very long post containing precisely zero questions.
Vetting such code is a job for a paid consultant.
September 9, 2022 at 7:53 am
To generate such a script, launch SSDT and select Tools/SQL Server/New Schema Comparison.
Select your source and target databases.
Go into Settings and select only Indexes.
Run the comparison and script out the...
September 8, 2022 at 7:01 am
Here is a dirty solution. Maybe there's a pretty solution out there that someone will come up with!
DROP TABLE IF EXISTS #Account;
CREATE TABLE #Account
(
...
September 7, 2022 at 6:10 pm
Can you provide some sample data which we can test with?
September 7, 2022 at 5:46 pm
OK, then add a Data Conversion task and convert the ContentId to an INT32, then map the converted column to ID.
September 7, 2022 at 2:06 pm
What is the datatype of the target ID column? VARBINARY, perhaps?
Is it ContentTypeId that you are mapping to it?
If yes, to both, try setting the SSIS datatype to Byte Stream.
September 7, 2022 at 1:50 pm
I'd also use a Script Task, though I'm more inclined to use C#.
Alternatively, run a DOS one-liner with an Execute Process task. The command would be something like this:
September 7, 2022 at 8:55 am
Combining two columns is a piece of cake with my code, like so:
SELECT i.employee_code
,i.paydate
,Over_time =...
September 4, 2022 at 10:04 am
Can you please post the full text of the error, as taken from the SSISDB All Executions report?
Also from the All Executions report, on the 'Overview' page, check that the...
September 4, 2022 at 8:56 am
Here's a solution which does not rely on PIVOT:
SELECT i.employee_code
,i.paydate
,Over_time = MAX(IIF(i.Paytype = 'Over_time', 1,...
September 4, 2022 at 8:50 am
doesn't work if there are more than 9 floors, or the ground floor does not have leading zeros (which it won't if it is an INT) or if basement...
September 2, 2022 at 10:58 am
Something like this should do it:
SELECT CONCAT('USE ', u.DBName, '; ALTER ROLE [db_owner] DROP MEMBER [', u.Username, '];')
FROM @USER_table u
WHERE u.Username = 'Frodo'
ORDER BY u.DBName;
September 2, 2022 at 10:51 am
I'm not sure I am convinced. How do you manage version control for the database objects which are being generated? Doing this means that you lose many of the consistency...
September 2, 2022 at 7:50 am
Viewing 15 posts - 1,171 through 1,185 (of 13,838 total)