Viewing 15 posts - 16 through 30 (of 51 total)
I can see you've got it set to "code page 1252" there; that's a strong suggestion the file is being read as a DT_STR not a DT_WSTR.
What should be...
January 27, 2023 at 10:02 am
Seems you are using a
varchar
somewhere, or you've defined the column as a DT_STR rather than a DT_WSTR in your SSIS task.
No I haven't change anything in SSIS...
January 27, 2023 at 9:53 am
Something like this?
WITH GroupedNational_Identity AS (
SELECT uniqueid, natid_type, STRING_AGG(natid_num,'|') AS natid_num, active, individual_list_id_fk
FROM national_identity_test
GROUP BY uniqueid, natid_type, active, individual_list_id_fk
)
SELECT 'CNIC' as ID_TYPE_01,
MAX(CASE WHEN NatID_Type =...
January 4, 2023 at 5:09 am
Something like this?
WITH GroupedNational_Identity AS (
SELECT uniqueid, natid_type, STRING_AGG(natid_num,'|') AS natid_num, active, individual_list_id_fk
FROM national_identity_test
GROUP BY uniqueid, natid_type, active, individual_list_id_fk
)
SELECT 'CNIC' as ID_TYPE_01,
MAX(CASE WHEN NatID_Type =...
December 16, 2022 at 6:34 am
Use ISNULL
SELECT ISNULL(
(SELECT 'CNIC' as ID_TYPE_01,
MAX(CASE WHEN NatID_Type = 'CNIC' THEN NatID_Num END) AS ID_NUMBER_01,
'PASSPORT' as...
December 15, 2022 at 5:43 am
Not sure about SSIS specifically but in T-SQL the following seems to be equivalent afaik and unless it can be proven otherwise 🙂
select case when '1900-01-01'='1900-01-01'...
December 5, 2022 at 12:37 pm
This should work for you
SELECT 'CNIC' as ID_TYPE_01,
MAX(CASE WHEN NatID_Type = 'CNIC' THEN NatID_Num END) AS ID_NUMBER_01,
...
November 30, 2022 at 10:37 am
If I run your code I get
Msg 137, Level 15, State 2, Line 17
Must declare the scalar variable "@listid".
Is it possible to have some sample data...
November 30, 2022 at 4:46 am
have a look at "SET options"
Thank you for this but is there any video out there actually explaining all of these options ?
November 4, 2022 at 11:53 am
Start with the original source system - either implement daily full backups with frequent transaction log backups, or switch the database recovery model to simple and only schedule daily...
November 3, 2022 at 1:05 pm
You can't "restore" the mdf file on its own. You can attach it though. Here's an example.
By the way, sounds like the database is in FULL recovery,...
November 3, 2022 at 12:59 pm
You can't "restore" the mdf file on its own. You can attach it though. Here's an example.
By the way, sounds like the database is in FULL recovery, but...
November 3, 2022 at 12:58 pm
The log file is an important part of the database as it is used to both roll forward and roll back on recovery. (ie When a transaction commits it...
November 2, 2022 at 11:50 am
Having said that, if you can transform your source query so that the results look like this, it would be straightforward.
Can you please tell me what...
October 19, 2022 at 7:48 am
What I am trying to do with above Update query is that I am updating value of Individual_Id of the those records whose Ind_PK_Value_Updated is null (basically...
October 19, 2022 at 4:56 am
Viewing 15 posts - 16 through 30 (of 51 total)