Forum Replies Created

Viewing 15 posts - 26,416 through 26,430 (of 26,487 total)

  • RE: Job fails accessing mapped drive

    Glad it worked!

     

  • RE: Job fails accessing mapped drive

    I'm new to SSIS, but if it is like DTS in SQL Server 2000, when you run it manually from your desktop system, it sees the mapped drive.  When run...

  • RE: Need help with INSERT statement with sub-query

    Not really sure but I think it is a simple case of missing comma's.  Compare this insert to the original and let us know.

         INSERT INTO my_table (comments,

                                           sr_status,

                                           sr_notes_count,

                                          ...

  • RE: differential backups larger than full backup

    Not too sure from your sql command, but I would guess you are appending your differential backups to the same file.  This will cause your differential backup file to grow...

  • RE: Index Question

    It means that enterpriselistid must unique in every row.  Sounds like you are trying to insert a new row with an enterpriselistid that already exists in the database.

    hth

  • RE: How do I force FLOAT / VARCHAR values to be INTs in an insert statement?

    try this

    declare @vchar vchar(20)

    set @vchar = '1458.00'

    select cast(substring(@vchar, 1, patindex('%.%', @vchar) - 1) as int)

     

    hth

     

  • RE: Error Message Help

    I come up with 1152 characters in your option string.

     

  • RE: Error Message Help

    First, you can have a multiline constant, try this and see:

    declare @options nvarchar(4000)

    set

    @options='replace,

    move ''CorpProd_Data1'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Primary.mdf'',

    move ''CorpProd_Data2'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data1.ndf'',

    move ''CorpProd_Data3'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data2.ndf'',

    move ''CorpProd_Data4'' to ''F:\MSSQL\Data\Corporate_User_Testing\Corporate_User_Testing_Data3.ndf'',...

  • RE: Too many rows returned

    Careful with my code above, I just noticed the inner on the inner join typed twice!

  • RE: Too many rows returned

    Reformatted your code and found what I think is the problem inthe subquery at the end.  Check it out:

    select

        p.vendor_code,

        p.vendor_name,

        p.vendor_addr_l1,

        p.vendor_addr_l2,

        p.vendor_addr_l3,

        p.vendor_addr_l4,

        p.vendor_addr_l5,

        p.vendor_addr_l6,

        p.vendor_addr_l7,

        p.vendor_addr_l8,

        p.vendor_phone,

       ...

  • RE: Too many rows returned

    True.  But that also depends on the actual query and what is wanted.  We only see two columns in the query on-line, but what if they wanted to most recent...

  • RE: Maintenance Job does not remove .trn files

    I have had this problem with maintenance plans when I have gone in to modify them.  I found I usually had to delete the problem plan and recreate it from...

  • RE: Too many rows returned

    Or you could do this:

    select

        cust.custID,

        cust.CustName

    from

        dbo.customer cust

        inner join dbo.payment pay

            on (cust.CustID = pay.CustID)

    where

        pay.DatePayment > '2004-08-01'

        and (cust.CustID like '10%' or cust.CustID like '20%')

        and pay.DatePayment...

  • RE: SQL 7.0 vs SQL 2005 outer join syntax

    Not sure which alias to use for column disposition, but try moving "disposition in ('ER''ER/CF','WD/ER') into the join statement.

     

    hth,

    Lynn

     

  • RE: Transaction Log Backup File Sizes

    The transaction log file is only truncated by a transaction log backup.  When SQL Server truncates the log file (and it may not shrink the actual size of the file),...

Viewing 15 posts - 26,416 through 26,430 (of 26,487 total)