Forum Replies Created

Viewing 15 posts - 151 through 165 (of 233 total)

  • RE: problem with cursor

    i don't understand

    the end of the code looks like:

    END

    CLOSE lMCursor

    DEALLOCATE lMCursor

    END

    Always close and deallocate a cursor when your are done with it. In your code you have done before you...

    -Vikas Bindra

  • RE: "Unable to open bcp host data-file"

    Can provide answer to following:

    1. what is the command you used?

    2. where is the file located?

    3. Is your SQL server local or remote?

    -Vikas Bindra

  • RE: problem with cursor

    One more logical error is there in the code...

    The code should like...

    DECLARE

    @liDepLinksID ...

    -Vikas Bindra

  • RE: problem with cursor

    Following 2 lines will come after last END

    CLOSE lMCursor

    DEALLOCATE lMCursor

    -Vikas Bindra

  • RE: lost of data

    Also, you can try below query to check if any SQL object is there where you have a (unwanted) DELETE statement for your table.

    SELECT o.name,c.text from sys.syscomments c

    INNER JOIN...

    -Vikas Bindra

  • RE: lost of data

    How are you so sure that it's not SQL injection....? As you are using inline queries sql injection can be the reason if not enough validations are done at the...

    -Vikas Bindra

  • RE: lost of data

    Without a delete or truncate query records will not vanish any where...

    Are there any triggers defined on that table? May be there is a trigger on some other table that...

    -Vikas Bindra

  • RE: package instantiation

    Here is something that you can try....

    1. Create a sql job of OS command type.

    2. Write the below command:

    Start cmd /c dtexec /f "[package name]"

    This command will call a create...

    -Vikas Bindra

  • RE: SSIS is slow from Stored Procedure than Business Inteligence studio

    It's a bit weird....There is no problem preformance problems with dtexec (as per my knowledge).

    Can you execute your SP once again and see whether there are any blockings happening...

    -Vikas Bindra

  • RE: Can't Create Agent Job from Command Line

    You are trying to create the job on a remote server not your local server.

    When you fire the below command, it tries to connect to you local instance of SQL...

    -Vikas Bindra

  • RE: clusterd index

    Alter table query stated by crazyman is your solution

    -Vikas Bindra

  • RE: distinct view

    DISTINCT is going to give the distinct values for the combination of following columns:

    InPurchaseId,StCompanyName,StAccountName,StProcDTime,BoIsActive,StNotes

    i.e the distinct value of the combination of columns in the SELECT clause

    Hope you are looking...

    -Vikas Bindra

  • RE: PIVOT in SSMS Express 2005

    PIVOT is supported by all editions.

    Check out the below link that gives a mapping of varous features to various editions:

    http://msdn.microsoft.com/en-us/library/ms143761(SQL.90).aspx

    -Vikas Bindra

  • RE: Deleting Subscriptions

    DELETE FROM [ReportServer].[dbo].[Subscriptions] -- to delete all the existing Subscriptions

    -Vikas Bindra

  • RE: Difference between inner join and cross join?

    Dude...I would suggest you to go through the BOL and then come up with your doubts

    -Vikas Bindra

Viewing 15 posts - 151 through 165 (of 233 total)