all groups > sql server dts > march 2004 >
You're in the

sql server dts

group:

Missing Global Variable parameter mapping



Re: Missing Global Variable parameter mapping Allan Mitchell
3/30/2004 8:18:13 AM
sql server dts: Quick tests you can perform as this would seem to be intermittent.

Can you store the rowcounts in a field and grab that?
Does it work everytime?
What happens if you try to grab something else?
Does that work everytime.

Where I am going is, is it only the COUNT(*) that goes wrong?
If it is then could it be timing out?

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Missing Global Variable parameter mapping Phill
3/30/2004 12:55:01 PM
Just wanted to sound out the group to see if anyone has come across a
problem that came up recently.

We have 30 something DTS packages running on SQL 2K sp3a, W2k Server sp4
that copy individual tables from a Progress database via ODBC. The first
thing that each of these packages do, is run an ExecuteSQL task to get a row
count from the Progress table it's copying. The ExecuteSQL task is just
"SELECT COUNT(field_y) FROM Table_x". This count is then stored in a global
variable which is used later to verify the copy was successful.

We used to get the row count from the local SQL table prior to the copy
because it was much quicker. However, recent process changes have required
us to perform the record count directly against the Progress database.

Since this change there have been isolated instances where the global
variable mapping on the parameters dialog has gone missing. The ExecuteSQL
task runs successfully, but the global variable is set to zero. This causes
problems later in the package because it thinks it should be copying zero
records.

For a single package, this same task works for one execution and failed the
next. When I checked the parameter mapping dialog, it had <none> for the
global variable. In three separate executions of all packages, one package
has failed twice with this error. A few others have run successfully
one-time, only to fail on the next run.

Any ideas on tracking this problem down would be most appreciated.


--
Thanks
Phill Carter
#562421

Re: Missing Global Variable parameter mapping Phill
3/31/2004 6:37:36 AM
Allan

Thanks for you response.

I don't believe it's the actual assignment of a value that's not working,
it's the mapping of which global variable to use that goes missing. It's
like the return value was never mapped to a global variable in the first
place.

I found an interesting discussion via Google groups which hinted that it
might be version related. Each of the packages that failed did have over 7
versions. This has been the only consistent thing with this whole problem.
I've since archived all the old versions to another server.

--
Thanks
Phill Carter
#562421


[quoted text, click to view]

AddThis Social Bookmark Button