0

I'm connected to a SQL Server via ODBC in Power BI. I'd like to take a spreadsheet and essentially copy/paste the spreadsheet columns and data into the SQL Server database via Power BI.

The write back function will populate the rows but it doesn't appear it can create the tables/columns.

3
  • 1
    Creating tables and columns in SQL requires specification of the schema and data types. A spreadsheet copy/paste can't do that. SQL is not Excel. However, in SSMS there is an import wizard that you can use to import a spreadsheet. It attempts to identify the data types based on x number of rows of the spreadsheet, and allows you to make adjustments to those suggested data types. Commented Mar 21 at 21:25
  • Apologies I didn't mean a straight copy/paste more that I wanted to move all headers and data. I'd like to select the excell columns and row data then "insert into" the sql database via the ODBC connection. I've read there are two methods to accomplish this but I've not had any luck thus far. Commented Mar 21 at 22:41
  • "in SSMS there is an import wizard that you can use to import a spreadsheet." learn.microsoft.com/en-us/ssms/… Commented Mar 22 at 14:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.