TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
baskaran chellasamy
NA
114
150.2k
sql query error
Aug 22 2012 4:12 PM
Hi friends
this is my store procedure for getting external excel file and save into sql database.
create procedure sp_excelforgeneralholidays(@filname nvarchar(max))
as
set nocount on
begin
select * from OPENROWSET('Microsoft.jet.OLEDB.4.0','Excel 8.0;DATABASE=' + @filname + ', Select Date,Day,Reason from [sheet1$])'
end
When i Run this error is near syntax error + . but i dont know how to solve this problem please help me
Reply
Answers (
6
)
Shape in SQL Server
Error in import excel to sql query