Forum Replies Created

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

  • RE: update 2 tables at once

    Please try my modified code above, now with your data and added a fix for updating the received amount on Pledge table.

  • RE: update 2 tables at once

    Try this, not sure it handles all of your scenarios, so more sample data would be good. But it is working for what you given us.

    declare @Pledge table (acctID int,...

  • RE: update 2 tables at once

    dbaltazar, hope you don't mind us asking all these questions, we are trying to understand.

    I also agree with what is being said, it seems like this should be an application...

  • RE: update 2 tables at once

    This is definitely doable. Just few more questions first,

    1) do the payment dates always equal to pledge date? Can I pledge today and pay next week? In other words, do...

  • RE: update 2 tables at once

    Sounds like he doesn't. Is it correct that you just apply payments until a pledge is filled and then next payment is toward the next pledge?

    Could you have the scenario...

  • RE: SqlBulkCopy

    Ok. This seems more of a .Net issue, SqlBulkCopy is a .Net class.

    Looking at this link

    It seems ColumnMapping only takes real column names, so your syntax of trying to...

  • RE: SqlBulkCopy

    Were you able to upload the data before adding this column into your mix? If not, then there is something with your ASP.net code. If yes, then after you add...

  • RE: SqlBulkCopy

    Is it possible just to default the column on your table to getdate()?

    In SQL Server Management Studio, right click on your table->Design->Click on Column Name->Put getdate() in "Defautl Value or...

  • RE: sqlcmd - how to skip empty files?

    1. Like BrainDonor said, you can put this in a stored procedure and have your scheduled task call that stored procedure. Inside the SP, you would select information into a...

  • RE: merge output

    You are welcome. This wasn't your homework, is it? 😀

  • RE: merge output

    What about the Date that was your original question? I guess you can figure that out on your own.

    For these two tables, there are at least these two ways to...

  • RE: merge output

    No offense, are you asking how to do a group by?

    If so, then I've added another row in the table because all your sample data are unique so group by...

  • RE: LEFT JOIN Predicates ON vs WHERE

    Paul,

    I DEFINITELY appreciate your help as well. I guess the other explanations made more sense. I need examples! 😀

  • RE: LEFT JOIN Predicates ON vs WHERE

    Thank you all for your help. This makes sense. I guess I just never looked things up 😀

    Also doing only INNER (where you put the predicate didn't make a...

  • RE: LEFT JOIN Predicates ON vs WHERE

    Thanks, that explains case #2 very well. Any suggestions on #3?

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