473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DTS Save Package dead end

Hi,

I have a DTS package that I created. It exports data to a .csv file to my c:\ drive.

This filepath is not always the path I want it to save the file to. How can I configure the package to ask for the save location of the file being exported?

I am at a dead end and even an answer saying it is NOT possible would be greatly appretiated.



Thanks
Jan 18 '07 #1
5 1371
iburyak
1,017 Expert 512MB
You can read file name from ini file into a variable in ActiveX Script.
Use this variable instead of a file name.

Or you can ask for file name in an inputbox see below

'[PHP]************************************************** ********************
' Visual Basic ActiveX Script
'************************************************* ***********************

Function Main()
Dim sFileName

sFileName = inputbox("Please provide File Name", "Output file")


Main = DTSTaskExecResult_Success
End Function[/PHP]

Good Luck.
Jan 18 '07 #2
iburyak,

Thanks, for the first time in days I see a little lite at the end of the tunnel.

This solution is great, it is asking for the file name and the user can specify that. In the .ini file can I set the location change as well? If I want to save the file to a different location?

This would also be very helpful.

Thanks
Jan 18 '07 #3
iburyak
1,017 Expert 512MB
Sure, in ini you can have anything - source and destination.
The thing is you have to save them into a variable in a script and use this variable instead of hard-coded location where you asked for the file name.
Don't forget script should be your first step.

Good Luck.
Jan 18 '07 #4
Being very new to this I am going to have to ask you how? I tried to figure it out myself, but I could not get it done. I am sure it is something small I am over looking.

Thanks
Jan 18 '07 #5
iburyak
1,017 Expert 512MB
Where you post c:\ drive type a variable name.
Work with input box first you already have this code.
Just drag and drop ActiveX Script Task. Copy\paste code I provided or modify if you wish. I assume you already have SQL Task otherwise how you did your DTS export.
When you see two pictures in DTS design mode select script first and sql second then go to Workflow and select On Success.

It is really hard to help with DTS because I don’t see what are you doing and everything is visual interface.
Jan 18 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: f29 | last post by:
I don't believe that noone has yet spotted that python is becoming java. Each new version is fully equipped with more garbage than before. Classes are great, but once there are 1000 of them,...
3
by: Maya | last post by:
Hey, there! I'm new to vb.net and it seems I wouldn't be able to solve this without help. I have a pipe delimited file that has to be saved in txt format so it could be accepted by my DTS...
0
by: Relishguy | last post by:
I was running a test of the DTS Import/Export Wizard. At the "save, schedule and replicate package" dialog box, I selected "Save DTS Package". For some reason, the "SQL Server Meta Data Services"...
4
by: rajsir | last post by:
Hi, I want create stand alone application from DTS package. I remember I did one time ago, I couldnt recall how I did it. Thanks.
4
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the...
2
by: bole2cant | last post by:
I just received my free VB.NET package from MS, and can't figure out how to Save As. I loaded a sample program and made a bunch of changes to it and wanted to save it without overwriting the...
6
by: ivan.leben | last post by:
Hi! I know this question is more suitable for gnu.utils group but im posting here, since that group looks almost dead (last post 1 May with no reply yet) and I need the answer much faster. I...
1
by: perlvasu | last post by:
6 jobs are running at the same time and accessing same dbm file for writing and reading. These are daily jobs and failing only some times not regularly. So i thought of this is just because of dead...
4
by: bukzor | last post by:
Does anyone have a pythonic way to check if a process is dead, given the pid? This is the function I'm using is quite OS dependent. A good candidate might be "try: kill(pid)", since it throws an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.