Forum Replies Created

Viewing 15 posts - 1 through 15 (of 38 total)

  • RE: Remote connection to SQL Server on LAN

     James' answer is what you should use for the connection string.

    sDBConnectionString = "data source=" & sDBServer & ";initial catalog=" & sDBName & ";persist security info=False;workstation id=" sWorkstationID...

  • RE: DTS Package won''''t run when scheduled?

    It is a MAPI error not a file access error.

    Just create a MAPI profile for the SQL Server Agent Account. To do that, open a Windows session using the Account used by...

  • RE: raising error in execute sql task

    You dont even need a global variable.

    ------------------------------------------------------------

    Update TT set ff=xx Where ....

    IF @@ROWCOUNT=0

       RAISERROR 60001 'Error message'

    ------------------------------------------------------------

    When you raise an error in your stored procedure, the sql task...

  • RE: Need to change the databaseName for my DTS package

    Changing the destination database on the connection properties only changes the intial catalog (default). Transformation tasks use the fully qualified table names and you are stuck with database1.dbo.table1 when your...

  • RE: Field list is empty when calling stored procedure

    And dont forget the

    set nocount on

    at the start of the PS.

    HABIB.

     

  • RE: Triggers

    After you run a DDL script in query analyzer you may need to refresh the tree in Query Analyzer Object Browser to the left of the screen.

    Triggers will be found...

  • RE: User permissions

    To be able to check permissions you need to establish a connection (other than the actual user's connection) to the database via a user with the role "db_securityadmin" or be a...

  • RE: Compact an Access Database from DTS

    Use the "Execute Process Task" with the following command :

    "c:\Program Files\Microsoft Office\Office11\msaccess.exe /compact /repair"

    PS. Parameters can be localted in the parameters field.

    HABIB.

     

  • RE: Help with DTSRun and multiple Global Variable declaration

    The simplest way of doing it is to launch a Win32 utility called :

    DTSRUNUI.EXE

    You will find it in Program Files\Microsoft Sql Server\80\Tools\binn

    It has an "Advanced" button that will allow...

  • RE: Restricting rights and deny of access based on access channel

    I agree. Roles are the best way to go. You can further look into using an application role.

    define an application role for every application that will be accessing the database....

  • RE: Restricting rights and deny of access based on access channel

    It is only possible if you restrict access to your data through views or stored procedures.

    With stored procedures you can begin by asking who the user is. The system function...

  • RE: Datetime problem in transform data task

    Sorry, Iforgot the line :

    DTSDestination("col009")=MyDate

    before the function return

     

  • RE: Datetime problem in transform data task

    This should do it :

    MyDate = DTSSource("Col009")

    if isnull(MyDate) then

       MyDate = Null

    Else

       If Not isDate(MyDate) Then

          MyDate = Null

       Else

          MyDate = Mid(MyDate, 1, 4) & Mid(MyDate, 5,2) & Mid(MyDate,...

  • RE: Update or Insert in the same DTS package

    Staging is trhe best strategy for this situation. You must be careful however if you are populating a fact table in a datawarehouse. Updating records in a huge fact table can be...

  • RE: Missing table Relationship

    I Think you restored an old version of your database.

    In fact, when you do a backup, you have the option of adding or replacing existing backup copies on the...

Viewing 15 posts - 1 through 15 (of 38 total)