Forum Replies Created

Viewing 15 posts - 301 through 315 (of 372 total)

  • RE: Urgent Help With Script

    Instead of MkDir consider using the methods available in My.Computer.FileSystem.

    Reference:

    How to: Determine if a Directory Exists in Visual Basic

    How to: Create a Directory in Visual Basic

    If you stay with...

  • RE: Problem with sp_cursorfetch performance

    I've seen that that behavior before and it was an application issue;in query analyzer it took less than a second to return the results, from the application it took over...

  • RE: Use New Folder and FTP

    Check that the scope of the variable 'archivefolder' is set to the package. You'll probably have to modify the variable or have an additional one that can be used...

  • RE: Use New Folder and FTP

    First step is to add a package variable. Then in the Script Task add the new variable name to the ReadWriteVariables property of the task. The variable is...

  • RE: SSIS "Send mail task"

    Barkingdog,

    You have a couple options for getting the variable placed in the body. One, leave the MessageSourceType as Direct Input and add an expression that sets MessageSource to the...

  • RE: SSIS "Send mail task"

    Error: Failed to lock variable "user::varresults" for read/write access with error 0xC0010001 "The variable cannot be found….

    Most likely the variables haven't been defined or aren't scoped appropriately. No values need...

  • RE: SSIS "Send mail task"

    This Control Flow will place the query results in the body of the message and deliver only if it contains records.

    [Execute SQL Task] ---> [XML Task] -f(x)-> [Send Mail Task]

    1)...

  • RE: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    Using a linked server and configuring it to use alternate credentials might work; use OPENQUERY instead of OPENDATASOURCE in that case.

    The "NT Authority\ANONYMOUS" failed login looks like an...

  • RE: Conversion of System.Object to collection

    Setting the ResultSet to XML in the Execute SQL Task is another option that would make it easy to use the results in a Script Task.

    Just add "FOR XML AUTO"...

  • RE: I need to remove the identity property on a column

    Open up SQL Profiler and use the Replay trace template, filtering on your DatabaseID, before you change your identity column in EM or SSMS. That will show you...

  • RE: Flat files without delimiters

    In the SSIS Data Flow you would use a Flat File Source. Configure the sources connection manager to use the "Ragged right" format and mark where the columns should...

  • RE: simple question on Stored Procedure using LIKE

    In addition to dynamic SQL you could also make use of SQL's ability to do short-circuit evaluation.

    In the following example @columns= is evaluated first. Only if it's true will...

  • RE: How do I script all database objects through dynamic T-SQL?

    Jason,

    Here's an example using SQL Compare 6 and SQLCMD to do the refresh.

    Scheduling could be done with Task Scheduler and the appropriate credentials.

    REM TestingRefresh.cmd

    SQLCMD -S TestServer-E -Q "ALTER DATABASE TestingDB...

  • RE: after sql 2K move..

    No, the DSN is a logical name that holds which driver and server to connect to. The DSN name you see in your IDC file just has to match...

  • RE: after sql 2K move..

    Can you login to the SQL server using Query Analyzer with the 'ReadOnlyIntranet' username and run the query that's in your IDC file?

    Another thing to check is that the website...

Viewing 15 posts - 301 through 315 (of 372 total)