Forum Replies Created

Viewing 14 posts - 91 through 104 (of 104 total)

  • RE: Best way to insert records from a CSV file

    I haven't found the complete answer but I wanted to update this post with what I have found.

    The following Bulk Insert command will move data from a text file to...

  • RE: Best way to insert records from a CSV file

    Jeff,

    Thanks for pointing me in the right direction. It looks like the Format File will do all that I need. I assume if I do not specify a field in...

  • RE: Implicit conversion question

    Paul,

    I agree that explicit is clearer than implicit. I will reread your post and the reference a couple of times and will hopefully retain some of it.

    In practice, I will...

  • RE: Implicit conversion question

    Just to be complete in my post I should have shown:

    Select Cast(2 as decimal(18,6))/cast(3 as Decimal(18,6))) from Table :666666666666666666

    pat

  • RE: Implicit conversion question

    Eugene and Paul,

    Thanks for continuing the discussion. I can go back to my previous practice of choosing the smallest data type. I can use 1.0 * in all my divisions...

  • RE: Implicit conversion question

    Eugene,

    Thanks for clearing things up with points 1 and 2.

    If you don't mind I would like explore question 3 a bit.

    I am a VB programmer. Historically, I have done my...

  • RE: Incorrect PageID while attaching MDF?

    Gail,

    Thanks for the advice, especially pointing out that the way we are doing it requires an update to the data file. Our problem is a lack of resources.

    Tomorrow the...

  • RE: Incorrect PageID while attaching MDF?

    Jason,

    Yes, I wasn't clear on that. It is detached. I am trying to attach it (a SQL 2000 database) to a SQLExpress 2008 instance.

    pat

  • RE: Select based on Date- How to?

    It was late. The DateAdd function is incorrect. It should read.

    DateAdd("d",1,Now)

    or in VB 2008

    DateAdd(DateInterval.Day,1,now)

    T-Sql to the left of the operator, VB to the right.

  • RE: Select based on Date- How to?

    I understand. No functions on the left hand side of the operator.

    If I want to reutrn the records Less than or equal to My Date then it will be

    Where EndDt...

  • RE: Select based on Date- How to?

    A friend suggested the following. It seems to be cleaner than mine.

    Where cast(varchar(8),EndDt,112) <= Format('01/02/2009',"yyyyMMdd") Sorry for mixing T-SQL and VB.

    However, both Jeff and Lynn bring up the issue of...

  • RE: Select based on Date- How to?

    Jeff, I didn't know that the string conversions would slow things down. Thanks for that piece of information. I had used the increase the day by one trick previously. But...

  • RE: Select based on Date- How to?

    Lynn,

    Thanks for your replies. You have started me thinking in different direction than I had been. The problem I am trying to solve is one of comparing dates but not...

  • RE: Save Changes not permitted...

    1. I should have backed up and restored. This solved the missing identity problem.

    2. I disabled the Tools>options>Designers>table and database designers>Prevent saving changes that require table recreation.

    This name is a...

Viewing 14 posts - 91 through 104 (of 104 total)