September 10, 2024 at 1:34 am
Team,
Please suggest or if you have an example please share the link for loading AML (anti moneylaundering)files into SQL Server. Meaning file having multiple recs in the .txt/.cvs file. Loaded to multiple tables .. Basically it is AML files if anyone who has done that do suggest
Thanks in advance
September 10, 2024 at 5:48 am
Where's your question?
Are you asking if there's a standard format for "AML" files? Are they XML? Is there an example of one somewhere?
September 10, 2024 at 8:23 am
You appear to be suggesting that there is a standard format for AML files ... which is fine, but the number of people here who know both how to import text files and the ins and outs of AML files is likely to be vanishingly small.
Therefore, please supply an (anonymised) sample of an AML file, along with how you wish to import it (transformations, target tables etc), to help.
The absence of evidence is not evidence of absence.
Martin Rees
You can lead a horse to water, but a pencil must be lead.
Stan Laurel
September 11, 2024 at 3:49 am
Team,
Please suggest or if you have an example please share the link for loading AML (anti moneylaundering)files into SQL Server. Meaning file having multiple recs in the .txt/.cvs file. Loaded to multiple tables .. Basically it is AML files if anyone who has done that do suggest
Thanks in advance
There are a whole bunch of ways to import "CSV" files. One of the fastest methods is to use the BULK INSERT command. For SQL Server 2017 and above, it actually has a dedicated "CSV" setting you can use. Here's a search for BULK INSERT...
https://duckduckgo.com/?q=bulk+insert+sql+server&t=newext&atb=v278-1&ia=web
The first link will be the MS documentation and the others are articles and 'tubes on the subject.
If you need special formatting not automatically done by the "CSV" setting or you're using SQL Server 2016 or earlier, you should also lookup about the BCP Format File, which can be used by BULK INSERT to describe the file you're importing.
Here's a starter on that... I generally always use the "non-XML format" on those.
You can also use SSIS (Phil Parkin on this thread will be the person to ask on that) but you'll probably need to cough up the example he requested.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2024 at 5:22 am
Looking for an example .. to load AML files ... not XML here
September 11, 2024 at 5:23 am
@Phil--will try to get
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply