Solved

any way to export file in SQL Data base programatically using VC++

Posted on 2002-05-23
6
169 Views
Last Modified: 2013-11-20
can any one tell me is there any way to export or import a file from or to SQL SERVER data base programatically using VC++.
like in VB we use DTS to import and export in SQL Sertver
thanx
ult
0
Comment
Question by:Ultpak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 22

Expert Comment

by:ambience
ID: 7040978
why not use the same DTS in VC ?
0
 

Author Comment

by:Ultpak
ID: 7041073
thanx for replying.
but how to use.
that is not a com component.
that is a feature of VB.
but how in VC, i have no idea.
0
 
LVL 22

Expert Comment

by:ambience
ID: 7041136
In my humble opinion DTS is a full-blown COM application, which resides typically in

<<Microsoft SQL Server>>\80\Tools\Binn\dtspkg.DLL

<<Microsoft SQL Server>> is where you installed SQLServer. You can use COM object viewer to check for interfaces and objects it supports, also you can try out a quick application in VB.

Of particular interest is the TransferObjectsTask interface exposed by DTSTransferObjectsTask, i think this is what can solve your problem.

It has methods that let you specify the source and target of transfer etc.

Hope this helps
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 22

Expert Comment

by:ambience
ID: 7041139
The TransferObjectsTask object allows you transfer one or more Microsoft® SQL Server™ objects between source and destination databases. An object can represent:

·     A table, or table data.
·     A view.
·     A referential integrity constraint.
·     A stored procedure.
·     An index.
·     A default or a rule.
·     A user-defined data type.

In addition, you can transfer all users or all logins (roles) for the source database. You can also transfer all objects dependent on the requested objects.

Note   The source and destination must both be Microsoft SQL Server version 7.0 or later databases.
0
 
LVL 22

Accepted Solution

by:
ambience earned 100 total points
ID: 7046236
did that help ?
0
 

Author Comment

by:Ultpak
ID: 7046862
still i could't check.
iwill check soon.
hope it will work..
thanx for all u did  for me.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 54
Define unique primary key 9 95
isEverywhere  challenge 19 85
EvenOdd challenge 10 146
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question