473,385 Members | 1,356 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,385 software developers and data experts.

sending a parameter from an access database to a DTS package in sqlserver

4
I am trying to call this command from an access data base through RUNAPP macro commande:

"C:\program files\microsoft sql server\80\Tools\Binn\dtsrun.exe" /S "(local)" /N "mypackage" /E /A mydate:8 = "Forms!Opensituation!Combo4"

mypackage: is the name of the dts package in sqlserver
mydate is the name of the global variable used in sql server
8 is the string type
Forms!Opensituation!Combo4: is the combo box variable in the access form Opensituation where a string is captured

Instead of getting what is in the combo box Combo4, (that is a string). in the sql server global variable mydate,
i am getting the following string "Forms!Opensituation!Combo4"

SO how could i pass a variable parameter from access to dts package in sqlserver?
Jul 10 '06 #1
1 2523
ewehbe
4

I am trying to call this command from an access data base through RUNAPP macro commande:

"C:\program files\microsoft sql server\80\Tools\Binn\dtsrun.exe" /S "(local)" /N "mypackage" /E /A mydate:8 = "Forms!Opensituation!Combo4"

mypackage: is the name of the dts package in sqlserver
mydate is the name of the global variable used in sql server
8 is the string type
Forms!Opensituation!Combo4: is the combo box variable in the access form Opensituation where a string is captured

Instead of getting what is in the combo box Combo4, (that is a string). in the sql server global variable mydate,
i am getting the following string "Forms!Opensituation!Combo4"

SO how could i pass a variable parameter from access to dts package in sqlserver?

since no one did answer me yet, I conrinue my research and found the following answer:
instead of using the macro command runapp I used the event procedure function
shell then I concatenate all the comand string in a variable that i called by the shell function and it works verry well. The codes became as follows:

dim getvar, var1
var1 = "C:\program files\microsoft sql server\80\Tools\Binn\dtsrun.exe /S (local) /N mypackage /E /A mydate:8 ="
var1 = var1 & Forms!Opensituation!Combo4.value
getvar = shell (var1)


note the following:
i keep the (") only in the beginning and the end of the first command string
i use (&) instead of (+) to concatenate the comande string
I add the (.Value) to my combo variable.

it realy works and let me reduce the execution of inserting 32000 records i a table from 2mn while using an acces insert query to 2second by doing the same thing through dts in sql server environment

bye
Jul 11 '06 #2

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

Similar topics

1
by: Rolf | last post by:
Hi MS Newsgroup I am using SQL 2000 SP3 + latest hot fixes and I am editing a DTS package. When I save the package I get a SQL Server Access Violation and cannot save the package. This does not...
14
by: Roy Gourgi | last post by:
Hi, I need to store and retrieve information from a database. It looks as though there is a lot more support for SQLServer than there is for Access, correct me if I am wrong. What do I have...
2
by: Mamatha | last post by:
Hi I want to convert SQLServer database into MS-Access through ASP program.Is there any possiblity to covert?If possible please let me know and thanks in advance. Mamatha
1
by: ewehbe | last post by:
I am trying to call this command from an access data base through RUNAPP macro commande: "C:\program files\microsoft sql server\80\Tools\Binn\dtsrun.exe" /S "(local)" /N "mypackage" /E /A mydate:8...
4
by: Jim Devenish | last post by:
We have an Access database with Access front-end to Access back-end. Another company has installed a separate application using SQLServer. At present certain information in the first application is...
38
by: kavsak | last post by:
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
4
by: Rick | last post by:
I've moved code from a stage machine to the production machine, exact same code works fine on the stage machine, they are both windows 2003 servers, I'm getting a "Cannot generate SSPI context"...
6
by: squishywaffle | last post by:
This has got me somewhat stumped, so I'll throw it up here in hopes that someone has ran into this before. I'm trying to send a MIME package to Esko Backstage. I'm a bit confused as to how to send...
0
by: pinky22 | last post by:
I am calling SSIS package from a .Net windows UI. Both SSIS & .Net app are created in 2008. The SSIS package is stored in file system. When I ran .Net app I got error- The package failed to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.