Forum Replies Created

Viewing 15 posts - 31 through 45 (of 90 total)

  • RE: Importing FoxPro 7.0 into SQL Server 2000 - HOW DO I DO THIS ?

    You will likely have to look at the data from your source before import to see why there is errant data.  But first you might try importing the data into...

  • RE: update problem in stored procedure

    It would be helpful to see the schemea for the customer master table.  It could be that some columns are set to not allow nulls, or possibly there is a...

  • RE: Sub Query in Join does not recognise outer query alias

    you should be able to remove the WHERE clause from your derived table and use it in your JOIN.  You are already partially doing this. Try this:

     

    SELECT  uu.History_Duty_ID, uu.Day_Date, uu.Employee_No,...

  • RE: UPDATE Query Question

    What is the data type of the batch column?

  • RE: DELETE ignores WHERE clause containing invalid subquery

    From SQL Server Books Online:

     

    In queries that include a correlated subquery(also known as a repeating subquery), the subquery depends on the outer query for its values. This means that the...

  • RE: I HAVE A SERIOUS PROBLEM

    Sukhoi, I have never had a problem using @@IDENTITY in the way that I described.  However, please don't dismiss Jeff's suggestion of using scope_identity().  It can replace @@IDENTITY in the same...

  • RE: I HAVE A SERIOUS PROBLEM

    Hi,

    You can use @@IDENTITY to obtain the inserted ID value: 

    INSERT INTO MASTERTABLE(val1,val2)Values('hello','world')

    declare @MyID int

    Select @MyID = @@IDENTITY

    INSERT INTO CHILDTABLE(ForeignKey,val1)Values(@MyID,'value')

     

    Good Luck

     

     

  • RE: How to import file .txt having a changing name ?

    You can dynamically change the name of a text file.  One option is to use the ActiveX Script Task in your DTS to perform this name change.  Example:

     

    '**********************************************************************

    '  Visual Basic...

  • RE: update

    I could be wrong about this as I've never attempted it, but if she performed a backup of the Transaction Logs, (assuming they have not been truncated) and then performed...

  • RE: Optimal Pivot Query

    My Bad.  It hasn't been depracated.  Something I heard. I shouldn't go around spreading rumors.

  • RE: Optimal Pivot Query

    My Bad.  It hasn't been depracated.  Something I heard. I shouldn't go around spreading rumors.

  • RE: Problem with bcp in stored procedure when called from vb6

    It sounds like you need to increase the CommandTimeout Property of your Command object.  Or, possibly the ConnectionTimeout Property of the Connection object if you are using one.

     

    Pete

  • RE: Prepared Statement

    I'm not sure on that one.  But if you are using a VB COM object, you may wish to use the DTS.BulkInsertTask object to perform your batch processing.  You can use...

  • RE: update

    It may be possible, if your transaction logs have not been truncated, to perform a backup now and then perform a restore to a point in time. 

     

    To restore...

  • RE: DELETE ignores WHERE clause containing invalid subquery

    I think I've figured it out.  T-SQL treats the sub-query as a correlated sub-query when a field does not exist.  I'm not sure if this is a feature of the optimizer, or...

Viewing 15 posts - 31 through 45 (of 90 total)