Sunday, March 25, 2012
(Object required) DTSPackageLog
"DTSPackageLog.WriteStringToLog sErrorMessage" in transformation vbscripts being used by DTS.
All available documentation indicates that this should not be possible as it is 'intrinsic' like "DTSGLobalVariables".
What's the secret?I too have been trying to make this work. I found a script on SQLDTS.com that I've cut and pasted and whenever I try to run it, I am faced with the Object Required: 'DTSPackageLog' error.
http://www.sqldts.com/default.aspx?6,101,238,0,1
Any suggestions would be helpful!
Thanks,
Bob
Originally posted by Hollerith
I get "(Object Required)" when trying to
"DTSPackageLog.WriteStringToLog sErrorMessage" in transformation vbscripts being used by DTS.
All available documentation indicates that this should not be possible as it is 'intrinsic' like "DTSGLobalVariables".
What's the secret?
(local) old db 4 sql server suddenly fails
in the ms ole db providor for sql server suddenly broke.
They'd worked well for years. The existing connection
using (local) won't find the default instance on the
machine. A new connect using (local) works file. SQL
Server is 2k enterprise, sp 3a (818). OS is w2k
5.00.2195. Doesn't matter if the connection
authentication is W2k authenticated or standardHi,
It seems like the netbios name might have changed and connection still
resolving the (local) to old netbios.
Try using Select @.@.SERVERNAME and/or Select SERVERPROPERTY('servername')
thanks,
ashish
"bob b" <anonymous@.discussions.microsoft.com> wrote in message
news:6d6d01c3e69d$d7b3bac0$a401280a@.phx.gbl...
quote:
> Several DTS packages that use (local) as the server name
> in the ms ole db providor for sql server suddenly broke.
> They'd worked well for years. The existing connection
> using (local) won't find the default instance on the
> machine. A new connect using (local) works file. SQL
> Server is 2k enterprise, sp 3a (818). OS is w2k
> 5.00.2195. Doesn't matter if the connection
> authentication is W2k authenticated or standard
Tuesday, March 20, 2012
"where" in DTS
i try use "where" to filter record for result but when i run , there is a message error task.
select flattened
(select * from predict ([model name].[table name], include_statistic) where [$support] >0 ) as ph
from
[model name]
prediction join
.....
can onebody help me?
What is the error?|||It could be that you need to say "INCLUDE_STATISTICS" rather than "INCLUDE_STATISTIC"|||error that it messesage: " there an error occur in task". no more information to know what error and where error in query.
what's different between INCLUDE_STATSTICS and INCLUDE_STATSTIC?
|||The difference is one is a keyword, and the other is an error.
You can try to execute your query in SQL Management Studio to see the full error message, although it should be available from SSIS as well.
If you are doing this on the pipeline and you want to validate your DMX syntax simply eliminate the PREDICTION JOIN clause,
e.g.
select flattened
(select * from predict ([model name].[table name], include_statisticS) where [$support] >0 ) as ph
from
[model name]
|||sory, but first, i writed like that but still have error. and it didn't message with an clear error to know what error. how can i do now?
i try a model to show other products when someone choose a product. my result have many record that same.
e.g:
productid otherProductid
1 34
1 74
1 89
2 34
2 74
2 89
3 34
3 74
3 89
4 56
4 101
4 73
....
what wrong with my model and how i should do to my event?
thanks
|||This is not an error, rather a feature. This occurs when your model doesn't contain rules for the data in your input. The system is designed that if you ask for 5 recommendations, you will get 5 recommendations. If the input you provide doesn't resolve into any rules (or enough rules) you will get the most popular results. I.e. it looks like item 34 is the most popular in your training set.
There are a few ways to alleviate this issue. One is to change the minimum_support and minimum_probabilty such that you generate more rules. Another is to filter results that are not based on rules. A description on how to do this is at http://blogs.msdn.com/jamiemac/archive/2006/04/19/579409.aspx
Thanks
"VS_ISBROKEN" error
[DTS.Pipeline] Error: "component "Source - Query" (1)" failed validation and returned validation status "VS_ISBROKEN".
I'm getting this error in the Data Flow task when exexuting this sql:
SELECT * FROM tbl_ws_stats WHERE pk > pk_var
pk_var is a package variable which I confirmed is being set correctly. The sql is set as a property expression.
What could be causing this?
using SQL Server 2005
Thanks
What is your property expression? it should be something like:
"SELECT * FROM tbl_ws_stats WHERE pk > " + (DT_STR, 100, 1252)@.[pk_var]
-Jamie
|||Verify that you have a good connection to your database. I check by running a simple query in the "lookup" transform. You can also verify with the connection manager.
I routinely see this error when my Oracle listener is down.
Thursday, March 8, 2012
"loop" a package in script task?
In Dts you can loop a package by creating an Active-X script with something like this ...
"oPackage.Steps("DTSStep_1").ExecutionStatus = DTSStepExecStat_Waiting"
"oPackage.Steps("DTSStep_2").ExecutionStatus = DTSStepScriptResult_DontExecuteTask"
What is the way to do in SSIS? Depending on a condition i want to rerun my package but have not found a smooth way to do it. I guess you can do it in a better way than using the ActiveX Script Task
have a nice day
/Erik
I think the For loop container can help on that (you can place a Execution package task inside to call another package).
http://msdn2.microsoft.com/en-us/library/ms139956.aspx
I know there is a lot of info in the web, so do a litle research and post back if you need more help.
|||Well, the thing is that I use a foreach loop for all rows in a table.. but when all rows are processed there might be a row that have been inserted during the process of the rows that existed at the time the package started..
So after my foreach container i want to to check if there are new rows to process before ending the package... if there are any, I want to start trigger the first task in my package....
I still see this doable. My suggestion was to create an additional package that acts as parent package; it would have a for loop (different than a foreach loop) with an execution package task inside. The For Loop container would have evaluation expression that is modified by the child package in case one of those special rows is inserted. The child package needs to know when a row of the type that requires a new iteration is inserted; so it can change the evaluation expression of the parent package to make it to continue.
This is just an idea; I have not done something simila before.
|||OK, I understand what you mean.. I′ll check it out, cheers for the help!
Tuesday, March 6, 2012
"Execute Package Utility has encountered a problem and needs to close"
I've build a few packages in BIDS and they work fine there, but saving them to either the file system or MSDB locations and running them in Management Studio results in:
Execute Package Utility has encountered a problem and needs to close. We are sorry for the inconvenience.
If I click on the debug button, I get this:
An unhandled exception ('System.IO.FileNotFoundException') occurred in DTExecUI.exe [404].
I've searched the Internet and found a few people who has also experienced this, but not received any answers.
Is there a kind guru out there with some idea of what is going on? Preferably something that doesn't involve re-installing, because the database has already been configured for our Blackberry users and I can't re-do it now.
I have the same problem... have you got a soln yet?
Thanks|||I also get the same problem. Looking in the event log, it is appears it cant find a temp file...but that doesnt make sense to me. Any solutions?|||I had the same problem. It got fixed after applying SP2.
"dangerous MSI" Microsoft SQL Server 2000 DTS Designer Components
Microsoft SQL Server 2000 DTS Designer Components has cause a total destruction of my Enterprise Manager.
In my workstation I've got Sql Server 2000 client and Sql Server 2005 client. Everything goes fine up to here.
But when I've installed that MSI I have not been able to open my Enterprise Manager.
From MMC appears: Error initializing component CLSID: {xxx.xxx}
My goal was be able to open 2000 stuff from Sql Management Studio. By the moment, I'm forget of that.
Does anyone have ever faced this issue?
QA is working.
Thanks in advance for any suggestion
is this an issue? I'm not worried about -I have multiple TS-. But I don't know if it's strongly related with my own workstation settings or is some more general.
My idea was to allow anyone use Sql Management Studio for Sql25k stuff and Sql2k stuff to the full (it included dts 2000) and so and cutting out time.
|||hey guys any ideas?|||
I know, such a pain, day in day out but I can't believe that anyone has ever experimented...
|||Install sp4 on the client. That fixed the problem for me.|||SP4 for Sql Server 2000, you mean?|||First, if you had 2000 client tools and 2005 client tools installed you did not need to install the "DTS designer tools". First thing to do is uninstall it. You only need to install that package if you DON'T have 2000 client tools.
Then, figure out why you are getting the error "You need DTS Designer Tools" when you try to open DTS in 2005.
I found I had SQL 7, 2000 and 2005 client tools installed. If I uninstalled the 7 client tools, the DTS started working.
Also, make sure you have SP4 of 2000 installed on your machine.