Sunday, March 25, 2012
Calling sp_StartJob again when the job is running, what would
talking about @.@.error that will be 0 anyway), the insert and the trigger
will finish alright.
"Frank Lee" wrote:
> I do not understand what 'Error message will be raised and the trigger wil
l
> still be executed' means.
> In this case, If a asp.net server page is connecting by using ado.net, whi
ch
> try to insert a new record to MyTable by calling a SP named MyInsert, will
> this asp.net server page get the error message, be hang up and just show u
p
> the default error page?
> If the asp.net server page will hang up, is there a way to mask this error
> message?
> I mean, no matter the MyJob is running or not, I would like the client (th
e
> server page) insert a new record smoothly. Never got this Error Message.
> So I hope that you say 'Error message will be raised and the trigger will
> still be executed' means that '@.@.error would be set and if there is no
> consideration to care this @.@.error, the trigger will still be executed
> quietly'.
> If not, how can I prevent the error message?
>
> "ariel" <ariel@.discussions.microsoft.com> ???g?ó?l¥ó·s?D:5C8009A
2-126D-4BA3-8D01-54935DC5BD71@.microsoft.com...
>
>Thanks. I see.
"ariel" <ariel@.discussions.microsoft.com> glsD:ABF0F938-1630-4794-BE3E-2651812831
9B@.microsoft.com...
> as far as I know, if you don't handle the error that is returned (I'm not
> talking about @.@.error that will be 0 anyway), the insert and the trigger
> will finish alright.
> "Frank Lee" wrote:
>
Monday, March 19, 2012
Calling a Web Service from DTS
I created a DTS Package that is running a Java Script:
var xmlHttp=3Dnew ActiveXObject("Microsoft.XMLHT=ADTP")
xmlHttp.open("POST","http://crm01/InstallName/Ch=ADeckContractExpire.asmx/C=
heckCo=ADntracts",false,"DOMAINNAME\USERNAME",=AD"PWD")
xmlHttp.send()
When running the script from the package it runs fine, and processes
the data as expected. When I convert this to a scheduled job, it fails
with the following error:
Executed as user: CRM02\SYSTEM. DTSRun: Loading... DTSRun:
Executing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun
OnError: DTSStep_DTSActiveScriptTask_1, Error =3D -2147220482 (800403FE)
Error string: Error Code: 0 Error Source=3D msxml3.dll Error
Description: The download of the specified resource has failed.
Error on Line 9 Error source: Microsoft Data Transformation
Services (DTS) Package Help file: sqldts80.hlp Help context:
4500 Error Detail Records: Error: -2147220482 (800403FE);
Provider Error: 0 (0) Error string: Error Code: 0 Error
Source=3D msxml3.dll Error Description: The download of the specified
resource has failed. Error on Line 9 Error source:
Microsoft Data Transformation Services (DTS) Package Help file:
sqldts80.hlp Help context: 4500 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 DTSRun: Package execution complete.
Process Exit Code 1. The step failed.
Any Suggestions? =20
Thanks=20
BillHi All,
I deleted the step out of the Job, and recreated a new step and
change the type to ActiveX, and selected the JScript. I dropped the
code that I generated from the Packaged and executed the Job with No
Errors. I then scheduled the Job and it works fine. Not sure what's
going on, but I have it working.
Bill
Sunday, March 11, 2012
Calling a DTS (SSIS 2005) from a Vbscript
Hello,
I would like to run a DTS using a Vbscript, i managed to get the DTS running, but i would like to pass the value of a global variable, but im having lots of dificulties.
Since it is a VBS i only have access to the things registered on the registry of the machine, so i don't have access to the microsoft.sqlserver.dts.runtime, at is maximum.
So i do the following
Set objApplication = CreateObject("MSDTS.Application")Set objDTSPackage = objApplication.LoadPackage("T.dtsx", True, Nothing)'This should pass the variable but insted i have an error
set pkgVars = objDTSPackage.Variables
set myVar = objDTSPackage.Variables.Add("User::Name", false, "User", "TesteA")
'End of the error part
DTSResults = objDTSPackage.Execute()
The error that i got is the following
"Object doesn't support object or method"
What am i doing wrong?
Thank you
Nuno Ferreira
this link might help: http://msdn2.microsoft.com/en-us/library/ms136090.aspx|||This link refers the use of microsoft.sqlserver.dts.runtime.
What happens is that since im using Vbscript, i do not have access to microsoft.sqlserver.dts.runtime. Is there a way to create the object from microsoft.sqlserver.dts.runtime in the script?
If not how can i in the script assign a variable value to the DTS
|||hi,
It was very useful have any link with that information. I am pursuing for any sort of stuff like that too.
regards,
|||the ssis assemblies are managed wrappers for com objects.Nfrf wrote:
This link refers the use of microsoft.sqlserver.dts.runtime.
What happens is that since im using Vbscript, i do not have access to microsoft.sqlserver.dts.runtime.
yes. you need to figure out the progid for the object that you wish to create. this can be accomplished by looking in the registry.|||Is there a way to create the object from microsoft.sqlserver.dts.runtime in the script?
I have run SSIS packages in a Batch file using a Scheduled Task and it's much less complicated than trying to use VB, here is an example:
dtexec.exe /file F:\SSIS_Packages\MyPackage1.dtsx /MAXCONCURRENT " -1 " /CHECKPOINTING OFF
dtexec.exe /file F:\SSIS_Packages\MyPackage2.dtsx /MAXCONCURRENT " -1 " /CHECKPOINTING OFF
dtexec.exe /file F:\SSIS_Packages\MyPackage3.dtsx /MAXCONCURRENT " -1 " /CHECKPOINTING OFF
dtexec.exe /file F:\SSIS_Packages\MyPackage4.dtsx /MAXCONCURRENT " -1 " /CHECKPOINTING OFF
Optional Switches:
Options are case-insensitive.
A hyphen (-) may be used in place of a forward slash (/).
/CheckF[ile] [Filespec]
/Checkp[ointing] [{On | Off}] (On is the default)
/Com[mandFile] Filespec
/Conf[igFile] Filespec
/Conn[ection] IDOrName;ConnectionString
/Cons[oleLog] [[DispOpts];[{E | I};List]]
DispOpts = any one or more of N, C, O, S, G, X, M, or T.
List = {EventName | SrcName | SrcGuid}[;List]
/De[crypt] Password
/DT[ S] PackagePath
/F[ile] Filespec
/H[elp] [Option]
/L[ogger] ClassIDOrProgID;ConfigString
/M[axConcurrent] ConcurrentExecutables
/P[assword] Password
/Rem[ark] [Text]
/Rep[orting] Level[;EventGUIDOrName[;EventGUIDOrName[...]]
Level = N or V or any one or more of E, W, I, C, D, or P.
/Res[tart] [{Deny | Force | IfPossible}] (Force is the default)
/Set PropertyPath;Value
/Ser[ver] ServerInstance
/SQ[L] PackagePath
/Su[m]
/U[ser] User name
/Va[lidate]
/VerifyB[uild] Major[;Minor[;Build]]
/VerifyP[ackageid] PackageID
/VerifyS[igned]
/VerifyV[ersionid] VersionID
/W[arnAsError]
|||
Thanks this could be of help.
One other thing. And if you like to pass a variable in the command line how do you do it?
Thanks
Thursday, March 8, 2012
Call Web Service From Script Task
Wednesday, March 7, 2012
Call As400 JobQ from SQL
Thanks for your help in advancewhat kind of job do you want to call?
from where do you want to call the job?|||sql's are running on as/400 or not?
Friday, February 24, 2012
calendar control for parameters in SQL 2000 Reporting?
reporting creating using VS2003 running on SQL 2000 (for internal reasons we
cannot upgrade to SQL 2005 for some time)No. You need RS 2005. Note that you can go to RS 2005 without upgrading your
database to SQL 2000. You need a SQL Server 2005 license but you can keep
your database at 2000 and just upgrade RS to RS 2005. I did this (although I
have since upgrade the db) and it works and is fully supported.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"KBlount" <KBlount@.discussions.microsoft.com> wrote in message
news:B87C7B57-AF42-4C88-B762-69F3522F20FB@.microsoft.com...
> As the subject says, I'd like to know if calendar controls are available
> for
> reporting creating using VS2003 running on SQL 2000 (for internal reasons
> we
> cannot upgrade to SQL 2005 for some time)|||Thanks for the response Bruce. I'm currently investigating using .NET
calendar controls and integrating them with SSRS 2000 - we'll see how hairy
that gets! heh
Thanks for the info about being able to use RS 2005 on SQL 2000. I'll pass
on your post to my IT team and let them investigate that further. It would be
so convenient to simply change a paramter type to DateTime ;)
Cheers
Kevin
"Bruce L-C [MVP]" wrote:
> No. You need RS 2005. Note that you can go to RS 2005 without upgrading your
> database to SQL 2000. You need a SQL Server 2005 license but you can keep
> your database at 2000 and just upgrade RS to RS 2005. I did this (although I
> have since upgrade the db) and it works and is fully supported.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "KBlount" <KBlount@.discussions.microsoft.com> wrote in message
> news:B87C7B57-AF42-4C88-B762-69F3522F20FB@.microsoft.com...
> > As the subject says, I'd like to know if calendar controls are available
> > for
> > reporting creating using VS2003 running on SQL 2000 (for internal reasons
> > we
> > cannot upgrade to SQL 2005 for some time)
>
>|||For further ammunition. RS 2005 has end user sorting, renders to pdf and
excel much better (I used to regularly have my server lock up and that does
not happen anymore). It also has multi-select parameters.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"KBlount" <KBlount@.discussions.microsoft.com> wrote in message
news:2C79A69D-226E-4D64-BF0A-20AE98D76FFE@.microsoft.com...
> Thanks for the response Bruce. I'm currently investigating using .NET
> calendar controls and integrating them with SSRS 2000 - we'll see how
> hairy
> that gets! heh
> Thanks for the info about being able to use RS 2005 on SQL 2000. I'll pass
> on your post to my IT team and let them investigate that further. It would
> be
> so convenient to simply change a paramter type to DateTime ;)
> Cheers
> Kevin
> "Bruce L-C [MVP]" wrote:
>> No. You need RS 2005. Note that you can go to RS 2005 without upgrading
>> your
>> database to SQL 2000. You need a SQL Server 2005 license but you can keep
>> your database at 2000 and just upgrade RS to RS 2005. I did this
>> (although I
>> have since upgrade the db) and it works and is fully supported.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "KBlount" <KBlount@.discussions.microsoft.com> wrote in message
>> news:B87C7B57-AF42-4C88-B762-69F3522F20FB@.microsoft.com...
>> > As the subject says, I'd like to know if calendar controls are
>> > available
>> > for
>> > reporting creating using VS2003 running on SQL 2000 (for internal
>> > reasons
>> > we
>> > cannot upgrade to SQL 2005 for some time)
>>|||Thanks for the extra info, Bruce.
I attended (and passed: 88%! hehe wooo) the LearningTree "SQL Server
Reporting Services: Hands-On" course this time last year, and naturally I've
not had a project to use what I learned since.. until now. Now that you've
mention those other benefits, especially the multi-select parameter, I can
definitely see a need for the upgrade, rather than just a :wouldn't it be
nice".. the email to my IT team was sent earlier today... time will tell.
"Bruce L-C [MVP]" wrote:
> For further ammunition. RS 2005 has end user sorting, renders to pdf and
> excel much better (I used to regularly have my server lock up and that does
> not happen anymore). It also has multi-select parameters.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "KBlount" <KBlount@.discussions.microsoft.com> wrote in message
> news:2C79A69D-226E-4D64-BF0A-20AE98D76FFE@.microsoft.com...
> > Thanks for the response Bruce. I'm currently investigating using .NET
> > calendar controls and integrating them with SSRS 2000 - we'll see how
> > hairy
> > that gets! heh
> >
> > Thanks for the info about being able to use RS 2005 on SQL 2000. I'll pass
> > on your post to my IT team and let them investigate that further. It would
> > be
> > so convenient to simply change a paramter type to DateTime ;)
> >
> > Cheers
> >
> > Kevin
> >
> > "Bruce L-C [MVP]" wrote:
> >
> >> No. You need RS 2005. Note that you can go to RS 2005 without upgrading
> >> your
> >> database to SQL 2000. You need a SQL Server 2005 license but you can keep
> >> your database at 2000 and just upgrade RS to RS 2005. I did this
> >> (although I
> >> have since upgrade the db) and it works and is fully supported.
> >>
> >>
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >>
> >>
> >> "KBlount" <KBlount@.discussions.microsoft.com> wrote in message
> >> news:B87C7B57-AF42-4C88-B762-69F3522F20FB@.microsoft.com...
> >> > As the subject says, I'd like to know if calendar controls are
> >> > available
> >> > for
> >> > reporting creating using VS2003 running on SQL 2000 (for internal
> >> > reasons
> >> > we
> >> > cannot upgrade to SQL 2005 for some time)
> >>
> >>
> >>
>
>
Calendar Control
reporting. Unfortunatley we have been running into a performance problem
becuase the Calendar control does a round trip to the server once a date is
chosen. On many of our desktops, this round trip is very evident.
Is there any way to provent the round trip to the server when a date is
chosen?
Thanks,
EricNo way except you need to write a custom code.
Amarnath
"echeeze" wrote:
> We use the RS 2005 Calendar control for date/time parameters on our
> reporting. Unfortunatley we have been running into a performance problem
> becuase the Calendar control does a round trip to the server once a date is
> chosen. On many of our desktops, this round trip is very evident.
> Is there any way to provent the round trip to the server when a date is
> chosen?
> Thanks,
> Eric
Thursday, February 16, 2012
Calculating the average of running total fields: empty result
If I calculate the average when one of the total fields is empty, the result is also empty.
The average is only calculated when the 12 running total fields aren't empty.
Does someone knows what I have to do?Instead of an empty field, could you populate it with a 0? Or when you do your average, maybe you could use some kind of If statement to change Empty fields into zeros (If value is NULL Then value = 0). I don't know what the correct syntax for that would be in Crystal Reports though.|||Thanks for the advice. I found a statement which replaces the empty fields with a zero. It's like this:
average (
[if not isnull({#field1}) then ({#field1}) else 0,
if not isnull({#field2}) then ({#field2}) else 0,
if not isnull({#field3}) then ({#field3}) else 0,
...]
)
Friday, February 10, 2012
Calculating a "running sum" within a year
containing something like a "running sum". I am quoting this, beacause
i didnt fin any similar expression for this.
So, if the column "Sum" is the expression we wanted, we want to get
this
result in the cube. (TIme is a dimension with the elements
Year,month...)
We just found this on the web groups for the food mart database, but
the sum
is not resetting at the beginning of the ear.
Year Month Value Sum
=======================
2002 12 1 1
2003 1 5 5
2003 2 3 8
2003 3 12 20
hanks for your help
Jens
Just do
sum(Periodstodate([Time].[Year],Time.CurrentMember),([Measures].[X]))
will give you the required result
MrIgel@.gmx.de (Jens) wrote in message news:<2ad00ef3.0404060708.db462f@.posting.google.co m>...
> We have a proble within a cube measure. We ant to design acube
> containing something like a "running sum". I am quoting this, beacause
> i didnt fin any similar expression for this.
> So, if the column "Sum" is the expression we wanted, we want to get
> this
> result in the cube. (TIme is a dimension with the elements
> Year,month...)
> We just found this on the web groups for the food mart database, but
> the sum
> is not resetting at the beginning of the ear.
>
> Year Month Value Sum
> =======================
> 2002 12 1 1
> 2003 1 5 5
> 2003 2 3 8
> 2003 3 12 20
>
> hanks for your help
> Jens
|||I use periodicity as a dimension in several of my own OLAP cubes. I use views to calculate YTD and QTD values so that A/S gets running totals at load time instead of having to do it at query time. This method also exposes the values to shrinkwrap client t
ools.
|||Thank, its work really fine.
Jens.
(Here are something matching words to find this problem for the german
guys, (Analysis OLAP Running sum laufende Summe rollup sum mdx)
Calculating a "running sum" within a year
containing something like a "running sum". I am quoting this, beacause
i didnt fin any similar expression for this.
So, if the column "Sum" is the expression we wanted, we want to get
this
result in the cube. (TIme is a dimension with the elements
Year,month...)
We just found this on the web groups for the food mart database, but
the sum
is not resetting at the beginning of the ear.
Year Month Value Sum
=======================
2002 12 1 1
2003 1 5 5
2003 2 3 8
2003 3 12 20
hanks for your help
JensJust do
sum(Periodstodate([Time].[Year],Time.CurrentMember),([Measures].
[X]))
will give you the required result
MrIgel@.gmx.de (Jens) wrote in message news:<2ad00ef3.0404060708.db462f@.posting.google.com>.
.
> We have a proble within a cube measure. We ant to design acube
> containing something like a "running sum". I am quoting this, beacause
> i didnt fin any similar expression for this.
> So, if the column "Sum" is the expression we wanted, we want to get
> this
> result in the cube. (TIme is a dimension with the elements
> Year,month...)
> We just found this on the web groups for the food mart database, but
> the sum
> is not resetting at the beginning of the ear.
>
> Year Month Value Sum
> =======================
> 2002 12 1 1
> 2003 1 5 5
> 2003 2 3 8
> 2003 3 12 20
>
> hanks for your help
> Jens|||I use periodicity as a dimension in several of my own OLAP cubes. I use view
s to calculate YTD and QTD values so that A/S gets running totals at load ti
me instead of having to do it at query time. This method also exposes the va
lues to shrinkwrap client t
ools.|||Thank, its work really fine.
Jens.
(Here are something matching words to find this problem for the german
guys, (Analysis OLAP Running sum laufende Summe rollup sum mdx)
Calculated Member Issue
Dear all,
My project running on AS2005 contains a dimension with 5 values in its table.
The fact table contains values for 4 of the values of the dimensions (the last one has not value yet).
When I browse the cube, if I display a calculated member (a sum) as measure and the dimension, I can see the measures for the 4 values of the dimension (the last value is not displayed).
But if I display a calculed member (done with "CALCULATIONS and which correspond to Measure.A/Measure.B), I see the measures for the 5 values of the dimension (the last value is displayed even if it has no value in the fact table). The fifth one is blank.
How can I avoid this ?
Thanks in advance for your support.
Juan
Hi Juan,
I'm assuming that you meant to say: "..if I display a sum measure and the dimension, I can see the measures for the 4 values of the dimension..".
So, if your issue occurs only with the calculated measure, not with measure group measures, you could try specifying Non Empty Behavior, like:
Create Member CurrentCube.[Measures].[RatioAB]
As [Measures].A /[Measures].B,
Non_Empty_Behavior = [Measures].B;