Solved

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

Posted on 2002-05-23
6
168 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
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
countEvens challenge 2 111
fizzArray2 challenge 1 88
building a service to accessed via telnet client, want colors ? 4 92
Change to event 1 117
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

792 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