Showing posts with label visual. Show all posts
Showing posts with label visual. Show all posts

Friday, March 23, 2012

Frustrating Visual Studio crashes when adding Script step

I have two similar packages that are both experiencing this issue.

I need to add a script step to generate an incrementing id for the packages.

Once I add the script step, and then save the package, next time I open the package I get a "Microsoft Visual Studio has encountered a problem and needs to close" error which kills off Visual Studio.

The error signature is:

EventType: clr20r3

P1: devenv.exe

P2: 8.0.50727.762

P3: 45716759

P4: microsoft.sqlserver.txscript

P5: 9.0.242.0

P6: 443f5ab8

P7: 67

P8: d

P9: bbp0yyyc15o2dbouwcacz2m0bodqkotn

If I move the error window to one side, delete the whole Script step, and save the Package, then I can reopen the package again without the error occurring.

Here is the actual code in my script step (in case its of any assistance...)

(I have retyped it from a printout, so it may not be 100%. DOCID is supposed to increment from 1. DREF1 is a system-unique id, that takes up from where the last batch left off, and is a string prefixed by "MP")

Code Snippet

Imports System

Imports System.Data

Imports System.math

Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper

Imports Microsoft.SqlServer.Dta.Runtime.Wrapper

Public Class ScriptMain

Inherits UserComponent

Dim ndx as Int32 = 0

Public Overrides Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)

'

' Add your code here

'

Dim dref as String

ndx = ndx + 1

Row.DOCID = ndx

dref = "MP" + Ctype(ndx + Variables.MPIDOrig, String)

Row.DREF1 = dref

End Sub

Protected Overrides Sub finalize()

Variables.MPID = ndx + Variables.MPIDOrig

MyBase.Finalize()

End Sub

End Class

I have found that when I take out the finalize() function, Visual Studio no longer crashes.

Can anyone suggest a different way to achieve what I am trying to achieve?

|||

Could you to put it into PostExecute()?

Thanks,

Bob

|||

Thanks, yes this was the answer.

It was a bit frustrating, as a relative newbie to SSIS, to find that the Finalize method caused this sort of behaviour, and it wasn't immediately obvious that PostExecute should be used instead.

(By which I mean I actually had to read deeper than jsut fiddling about in the IDE.)

Frustrating Visual Studio crashes when adding Script step

I have two similar packages that are both experiencing this issue.

I need to add a script step to generate an incrementing id for the packages.

Once I add the script step, and then save the package, next time I open the package I get a "Microsoft Visual Studio has encountered a problem and needs to close" error which kills off Visual Studio.

The error signature is:

EventType: clr20r3

P1: devenv.exe

P2: 8.0.50727.762

P3: 45716759

P4: microsoft.sqlserver.txscript

P5: 9.0.242.0

P6: 443f5ab8

P7: 67

P8: d

P9: bbp0yyyc15o2dbouwcacz2m0bodqkotn

If I move the error window to one side, delete the whole Script step, and save the Package, then I can reopen the package again without the error occurring.

Here is the actual code in my script step (in case its of any assistance...)

(I have retyped it from a printout, so it may not be 100%. DOCID is supposed to increment from 1. DREF1 is a system-unique id, that takes up from where the last batch left off, and is a string prefixed by "MP")

Code Snippet

Imports System

Imports System.Data

Imports System.math

Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper

Imports Microsoft.SqlServer.Dta.Runtime.Wrapper

Public Class ScriptMain

Inherits UserComponent

Dim ndx as Int32 = 0

Public Overrides Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)

'

' Add your code here

'

Dim dref as String

ndx = ndx + 1

Row.DOCID = ndx

dref = "MP" + Ctype(ndx + Variables.MPIDOrig, String)

Row.DREF1 = dref

End Sub

Protected Overrides Sub finalize()

Variables.MPID = ndx + Variables.MPIDOrig

MyBase.Finalize()

End Sub

End Class

I have found that when I take out the finalize() function, Visual Studio no longer crashes.

Can anyone suggest a different way to achieve what I am trying to achieve?

|||

Could you to put it into PostExecute()?

Thanks,

Bob

|||

Thanks, yes this was the answer.

It was a bit frustrating, as a relative newbie to SSIS, to find that the Finalize method caused this sort of behaviour, and it wasn't immediately obvious that PostExecute should be used instead.

(By which I mean I actually had to read deeper than jsut fiddling about in the IDE.)

sql

Frustrating Visual Studio crashes when adding Script step

I have two similar packages that are both experiencing this issue.

I need to add a script step to generate an incrementing id for the packages.

Once I add the script step, and then save the package, next time I open the package I get a "Microsoft Visual Studio has encountered a problem and needs to close" error which kills off Visual Studio.

The error signature is:

EventType: clr20r3

P1: devenv.exe

P2: 8.0.50727.762

P3: 45716759

P4: microsoft.sqlserver.txscript

P5: 9.0.242.0

P6: 443f5ab8

P7: 67

P8: d

P9: bbp0yyyc15o2dbouwcacz2m0bodqkotn

If I move the error window to one side, delete the whole Script step, and save the Package, then I can reopen the package again without the error occurring.

Here is the actual code in my script step (in case its of any assistance...)

(I have retyped it from a printout, so it may not be 100%. DOCID is supposed to increment from 1. DREF1 is a system-unique id, that takes up from where the last batch left off, and is a string prefixed by "MP")

Code Snippet

Imports System

Imports System.Data

Imports System.math

Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper

Imports Microsoft.SqlServer.Dta.Runtime.Wrapper

Public Class ScriptMain

Inherits UserComponent

Dim ndx as Int32 = 0

Public Overrides Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)

'

' Add your code here

'

Dim dref as String

ndx = ndx + 1

Row.DOCID = ndx

dref = "MP" + Ctype(ndx + Variables.MPIDOrig, String)

Row.DREF1 = dref

End Sub

Protected Overrides Sub finalize()

Variables.MPID = ndx + Variables.MPIDOrig

MyBase.Finalize()

End Sub

End Class

I have found that when I take out the finalize() function, Visual Studio no longer crashes.

Can anyone suggest a different way to achieve what I am trying to achieve?

|||

Could you to put it into PostExecute()?

Thanks,

Bob

|||

Thanks, yes this was the answer.

It was a bit frustrating, as a relative newbie to SSIS, to find that the Finalize method caused this sort of behaviour, and it wasn't immediately obvious that PostExecute should be used instead.

(By which I mean I actually had to read deeper than jsut fiddling about in the IDE.)

Wednesday, March 21, 2012

front end tool against reporting services?

Hi,
I'm looking for a list of tools which can be used in front of reporting
services to create reports without using visual studio.
In my current list there is RSInteract and report builder.
SQL 2008 will also have a client report generator.
do you have any other tools for me?
ideally the application is web based and can be used in sharepoint
integrated mode.
Thanks.
Jerome.On Feb 8, 5:43 am, "Jeje" <willg...@.hotmail.com> wrote:
> Hi,
> I'm looking for a list of tools which can be used in front of reporting
> services to create reports without using visual studio.
> In my current list there is RSInteract and report builder.
> SQL 2008 will also have a client report generator.
> do you have any other tools for me?
> ideally the application is web based and can be used in sharepoint
> integrated mode.
> Thanks.
> Jerome.
Since RDL is a form of XML, technically you could build a custom
application in ASP.NET/etc that can create the .rdl file (XML) and
datasource file, etc for you based on some user input, etc. Hope this
helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||I know,
I'm looking for existing, easy to use and professional products.
"EMartinez" <emartinez.pr1@.gmail.com> wrote in message
news:0b1ffc0c-9a7b-4283-82fc-4096f2e576c2@.s8g2000prg.googlegroups.com...
> On Feb 8, 5:43 am, "Jeje" <willg...@.hotmail.com> wrote:
>> Hi,
>> I'm looking for a list of tools which can be used in front of reporting
>> services to create reports without using visual studio.
>> In my current list there is RSInteract and report builder.
>> SQL 2008 will also have a client report generator.
>> do you have any other tools for me?
>> ideally the application is web based and can be used in sharepoint
>> integrated mode.
>> Thanks.
>> Jerome.
>
> Since RDL is a form of XML, technically you could build a custom
> application in ASP.NET/etc that can create the .rdl file (XML) and
> datasource file, etc for you based on some user input, etc. Hope this
> helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>|||On Feb 8, 6:32=A0pm, "Jeje" <willg...@.hotmail.com> wrote:
> I know,
> I'm looking for existing, easy to use and professional products.
> "EMartinez" <emartinez...@.gmail.com> wrote in message
> news:0b1ffc0c-9a7b-4283-82fc-4096f2e576c2@.s8g2000prg.googlegroups.com...
>
> > On Feb 8, 5:43 am, "Jeje" <willg...@.hotmail.com> wrote:
> >> Hi,
> >> I'm looking for a list of tools which can be used in front of reporting=
> >> services to create reports without using visual studio.
> >> In my current list there is RSInteract and report builder.
> >> SQL 2008 will also have a client report generator.
> >> do you have any other tools for me?
> >> ideally the application is web based and can be used in sharepoint
> >> integrated mode.
> >> Thanks.
> >> Jerome.
> > Since RDL is a form of XML, technically you could build a custom
> > application in ASP.NET/etc that can create the .rdl file (XML) and
> > datasource file, etc for you based on some user input, etc. Hope this
> > helps.
> > Regards,
> > Enrique Martinez
> > Sr. Software Consultant- Hide quoted text -
> - Show quoted text -
SoftArtisans has a product that creates RS reports from excel and word
docs