1

I have an excel file. I just would like to import the excel file into a table ExcelFiles without using c# code.

ExcelFiles has 3 columns

ExcelId, ExcelName,    ExcelFile
int       varchar(50),  varbinary(max)

I would like to import excel file into this table through SQL Server Management Studio without using c#.

0

1 Answer 1

2
INSERT INTO ExcelFiles
(ExcelId, ExcelName, ExcelFile)
SELECT 1, 'filename', * FROM OPENROWSET(BULK N'C:\filename.xslx', SINGLE_BLOB) rs
Sign up to request clarification or add additional context in comments.

Comments

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.