Hello, there is xls list which looks like this
and there is a sql table in this format,
Is there a way to transfer data from xls table to sql machine? The location of the table is the same as it should be in sql.
Hello, there is xls list which looks like this
and there is a sql table in this format,
Is there a way to transfer data from xls table to sql machine? The location of the table is the same as it should be in sql.
Yes, there is such an opportunity.
Excel allows you to save data in CSV format. And most SQL databases support loading data from CSV files. The syntax itself varies depending on the specific implementation of the database, but there is such a possibility.
Well, as an option - CSV is a plain text format. You can always make the simplest script that will form SQL code based on it.
MS Excel can also be accessed using SQL queries from code on VB.Net or C #, that is, if I understand correctly, read the data in one place and write to another place, although it is not entirely clear about the formats of links about which you speak up Alternatively, if you have MS Access, you can import data from Excel into Access and then export it to SQL Server.
If there are not many records, you can form an INSERT command by concatenating the values of the table, but in this case, you must first create this table and describe the fields. The line will look something like this: = CLICK ("insert into MyTable values ("; A1; ","; B1; ","; C1; ")")
Source: https://ru.stackoverflow.com/questions/630379/
All Articles