you need to run one line per line, if you run all SQL together.
you will get below error message:
Incorrect syntax near 'sp_configure'
Please Follow below Step
Step 1: sp_configure 'show advanced options', 1
Output Message: Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
Step 2: reconfigure
Output Message: Command(s) completed successfully.
Step 3: sp_configure 'Ad Hoc Distributed Queries', 1
Output Message: Configuration option 'Ad Hoc Distributed Queries' changed from 1 to 1. Run the RECONFIGURE statement to install.
Step 4: reconfigure
Output Message: Command(s) completed successfully.
Step 5: Run your SQL to import Excel Files
Insert Excel Data into New Table (Create New Table)
SQL Code to import Excel Data into New Table in Database
sp_configure 'show advanced options', 1
reconfigure
sp_configure 'Ad Hoc Distributed Queries', 1
reconfigure
reconfigure
sp_configure 'Ad Hoc Distributed Queries', 1
reconfigure
1 comments:
Please write on SQL Server Data Transformation Services, in your next post.
Statement forms
Post a Comment