Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2004, 12:44 PM
Authorized User
 
Join Date: Aug 2004
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Arsi
Default Updating SQL DB from Excel Source

Hello! Does anyone know if it is possible to update and store data from MS Excel to MS SQL Server database? I am already inserting the data into Excel from the same db, but I want to know if after modifications are made to the data can they be updated to the db from Excel? Any help would be greatly appreciated.

*******(*)*******
__________________
*******(*)*******
 
Old August 26th, 2004, 01:16 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

are you using a linked server or are you using dts import the excel data?


 
Old August 27th, 2004, 04:50 PM
Authorized User
 
Join Date: Aug 2004
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Arsi
Default

Hi! Thank you for your reply, I really appreciate it. Currently the server is linked (local) I am not using DTS although I've thought about and actuallly tried it, but for some reason it did not update any changes that were made on the Excel sheet in the DB

*******(*)*******
 
Old August 27th, 2004, 07:48 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Can accomplish your task with SQL 2000 DTS.

A few questions first.

You mention that you are exporting the data from SQL, are you creating the excel file or appending data?

1.What you can do is use DTS to export you data to excel
2.Update your excel file
3.Drop and recreate your sql table and import from excel
This can all be done in one DTS package.

The second option is using DTS and Visual Basic ActiveX Script

http://www.sqldts.com/default.aspx?243

Suggestion: Move your question to the SQL Server DTS and you may receive additional information.
 
Old August 30th, 2004, 12:46 PM
Authorized User
 
Join Date: Aug 2004
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Arsi
Default

I am appending the data from SQL to an previously created Excel worksheet. I am also using C# for the code. I tried using the DTS wizard, but it did not work or I did not configure it correctly.

Is there a way to move the question and responses to another forum? Or, do I repost it?

thanks for your help

*******(*)*******





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with updating the db using servlet Behl_Neha Java Databases 1 December 24th, 2007 06:08 AM
I am an idiot....DB not updating w/o Agent? Raconteur SQL Server 2000 4 April 24th, 2007 11:30 AM
Updating an Access 200 db Gandalf_the_Grey Classic ASP Basics 3 June 27th, 2006 07:09 AM
Updating DB abbylee26 Classic ASP Databases 15 March 17th, 2004 06:21 AM
Updating an Access DB stu9820 ASP.NET 1.0 and 1.1 Basics 1 September 30th, 2003 01:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.