Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 exporting sql data to MS Access programmatically

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-05-31 : 09:13:22
Ram writes "I need to export the sql data to MS Access database programmatically using ASP. Can anyone suggest me the fastest method to do this. Thanks for your help."

royv
Constraint Violating Yak Guru

455 Posts

Posted - 2002-05-31 : 10:51:15
If the server that is running your ASP code has access to DAO, you can use DAO to do this.

*************************
Someone done told you wrong!
Go to Top of Page

JamesH
Posting Yak Master

149 Posts

Posted - 2002-05-31 : 14:38:49
If you're using SQL2000 and are new to DTS the you can create a DTS package and then do a package.[save as] then select the Location field and pull down [visual basic file]. This will give you most of the code that you will need.

You can also create a package (a simple export) by right-clicking on the SQL Table and then select [all tasks].[export data]. Once you have completed the wizard you then have the option to save it as a visual basic file. You want quick, right?


HTH
JamesH.

Go to Top of Page

dataphile
Yak Posting Veteran

71 Posts

Posted - 2002-06-03 : 08:24:27
You could create a linked server for access using the ole db provider for odbc. Then create a stored procedure that populates the Access linked server. Then just execute the stored procedure from the shortest ASP page ever.

Go to Top of Page

dataphile
Yak Posting Veteran

71 Posts

Posted - 2002-06-04 : 05:48:42
See:

[url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=16453[/url]

Go to Top of Page
   

- Advertisement -