dbTalk Databases Forums  

Script Task freezing on Vista

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Script Task freezing on Vista in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cheri Reed
 
Posts: n/a

Default Script Task freezing on Vista - 03-18-2009 , 11:27 AM






Hello,

I have an SSIS package that has been running successfully for quite some
time. It is a very simple package: prompts user for a filename (using Script
task) and exports data to that filename. Recently, the package "hangs" when
running the script task to prompt the user for a filename. Here is the script:

' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task.

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.Windows.Forms


Public Class ScriptMain

' The execution engine calls this method when the task executes.
' To access the object model, use the Dts object. Connections, variables,
events,
' and logging features are available as static members of the Dts class.
' Before returning from this method, set the value of Dts.TaskResult to
indicate success or failure.
'
' To open Code and Text Editor Help, press F1.
' To open Object Browser, press Ctrl+Alt+J.

' _
Public Sub Main()
Dim saveFileDialog1 As New SaveFileDialog

saveFileDialog1.InitialDirectory = "My Documents"
saveFileDialog1.Filter = "Text Files (*.txt)|*.txt"
saveFileDialog1.RestoreDirectory = True

If saveFileDialog1.ShowDialog() = DialogResult.OK Then
Dts.Variables("ExportFilename").Value = saveFileDialog1.FileName
Dts.TaskResult = Dts.Results.Success
Else
Dts.TaskResult = Dts.Results.Failure
End If

End Sub

End Class



This is now failing/hanging (on the showdialog statement) on all Windows
Vista machines (was working previously) but still works on an XP machine.

Any ideas would be appreciated - I'm at the point where I don't even know
where to look! (are there any log files that might help me??)

Thanks,
Cheri

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.