Viewing 15 posts - 1,186 through 1,200 (of 13,849 total)
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
Agreed, which is why it should be stored as two separate fields. Could do it on the table with a couple of computed columns.
Or do it the way I...
September 1, 2022 at 7:55 am
Please read this article for details showing how to post sample data.
August 31, 2022 at 7:26 am
If you are hoping for a coded solution, please provide some sample data in the form of consumable CREATE TABLE and INSERT statements, along with desired results based on that...
August 30, 2022 at 6:30 pm
WHERE ROOM_NUMBER <500 or ROOM_NUMBER >= 600
perhaps? If it's an INT. If it's a string, you could do something like this:
WHERE ROOM_NUMBER NOT LIKE '5%'
August 30, 2022 at 6:25 pm
Viewing 15 posts - 1,186 through 1,200 (of 13,849 total)