C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » SQL »

Import data directly from excel into SQL Server


Posted Date: 29 Nov 2008    Resource Type: Code Snippets    Category: SQL
Author: Shivshanker CheralMember Level: Diamond    
Rating: 1 out of 5Points: 7



Import data directly from excel into SQL Server




SELECT * INTO Importxl from
OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=F:\\Book1.xls', 'SELECT * FROM [sheet1$]')



Set the configuration surface area by Launching Surface Area Configuration

SQL Server Surface Area Configuration is available on the SQL Server Start menu:

On the Start menu, point to All Programs, Microsoft SQL Server 2005, Configuration Tools, and then click SQL Server Surface Area Configuration.

The first page to appear is the SQL Server Surface Area Configuration start page. On the start page, specify which server you want to configure:

1. Click the change computer link adjacent to Configure Surface Area for. The default value is localhost. If you previously selected a named server, you would see the server name.

2. In the Select Computer dialog box, do one of the following:

To configure SQL Server 2005 on the local computer, click Local computer.

To configure SQL Server 2005 on another computer, click Remote computer, and then enter the computer name in the text box.

To configure a failover cluster, click Remote computer, and then enter the failover cluster instance name in the text box.

3. Click OK.





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
SQL  .  Import  .  Excel  .  Database  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Convert Amount in Words using SQL Function
Previous Resource: JOINS in SQL
Return to Discussion Resource Index
Post New Resource
Category: SQL


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use