I have an Ms Excel file listing the users of my application. This file contains a set of informations of them(firstname, lastname, email...) but it does not contain the password and of course the Id fields. I want to load this file into the AspNetUsers table defined by the Ms Identity framework. How could i do this task?
thanks for your help
what i can suggest to you is to creat a consolen application or maybe a test Which can get the items from excel and isert them in sql by EF
Related
I have a question, hopefully someone in the forum could give some help here. I am able to pull data from Soap API call to SQL Server table (xml data type field actually) via Copy Data Activity. The pipeline that runs this process is metadata driven, so how could I write other parameters in the same SQL Server table for the same run? I am using a Copy Data Activity to load XML data to SQL Server table but in Mapping tab I am not able to select other parameters in order to point them to others SQL table columns.
In addition, I am using a ForEach Activity in order the Copy Data Activity iterates for several values of one column on SQL Server table.
I will appreciate any advice on this.
Thanks
David
Thank you for your interest, I will try to be more explicit with this image: Hopefully this clarify a little bit. Given the current escenario, how could I pass StoreId and CustomerNumber parameters to the table Stage.XmlDataTable?
Taking in to account in the mapping step I am just able to map XML data from the current API call and then write it into Stage.XmlDataTable - XmlData column.
Thanks in advance David
You can add your parameters using Additional Columns in the Copy data activity Source.
When you import schema in mapping you can see the additional columns added in source.
Refer to this MS document for more details on adding additional columns during the copy.
I have a dataset based on a csv file. This exposes a data as follows:
Name,Age
John,23
I have an Azure SQL Server instance with a table named: [People]
This has columns
Name, Age
I am using the Copy Data task activity and trying to copy data from the csv data set into the azure table.
There is no option to indicate the table name as a source. Instead I have a space to input a Stored Procedure name?
How does this work? Where do I put the target table name in the image below?
You should DEFINITELY have a table name to write to. If you don't have a table, something is wrong with your setup. Anyway, make sure you have a table to write to; make sure the field names in your table match the fields in the CSV file. Then, follow the steps outlined in the description below. There are several steps to click through, but all are pretty intuitive, so just follow the instructions step by step and you should be fine.
http://normalian.hatenablog.com/entry/2017/09/04/233320
You can add records into the SQL Database table directly without stored procedures, by configuring the table value on the Sink Dataset rather than the Copy Activity which is what is happening.
Have a look at the below screenshot which shows the Table field within my dataset.
I create a DB where each table is a different project.
However, i am not sure how i would go about creating a form in which a user can choose a specific table (project) from a drop down menu and than be able to update/edit/modify the contents in the table.
Each table is standardized to contain exact column headers.
Thanks in advance for you help.
In my java web jsf seam jboss application, I want to add a row in a table with some data fields such as date type, String etc, but one field will be a word attachment, does anybody know any example of how to do it? thanks a lot for any help,
Basically, there is a loop to create some rows of data in a table, before each table row data creation, I will create a word file and saved to a local path(the physical file path is hardcoded), then I will create a table row and attach this word file to that row. the loop will continue until the end of loop.
I appreciate if anybody can know any resource or example codes.
Thanks a lot,
I have a JPA object which is mapped to table in DB and to all the columns. Out of those columns, one column stores the location of a file on file system.
So Whenever I retrieve this data, is it also possible to get the file contents?
Ex: User table is mapped to User object and that User table has column by name picture which stores the url of that file. Whenever I retrieve the Users, can I also retrieve the file contents? If so how does my mapping look like?
No, it's not possible. You'll have to do it by yourself, or store the contents in the file in the database, as a blob, instead of storing it on the file system.