Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)

  • RE: Insert Into With Count()

    Divine Flame (12/7/2011)


    Rixxe (12/7/2011)


    I'd rather not insert false records just to get a '0' for the count.

    You shouldn't. You can always use IF EXISTS to know if there is any...

  • RE: Insert Into With Count()

    Thanks, i'll give this a go and see what i can come up with.

    Cheers

    R

  • RE: Insert Into With Count()

    ChrisM@Work (12/7/2011)


    Let me ask another question. This looks like a single step in the creation of a complex cross-tabbed report. Is this the case?

    If so, is the data you're inserting...

  • RE: Insert Into With Count()

    ChrisM@Work (12/7/2011)


    INSERT...SELECT will insert rows from the output of the SELECT. If there are no rows returned by the SELECT, then no rows will be inserted.

    In your case, you...

  • RE: Database is not accessible....

    Due to the fact i couldn't find a result. I just decided to re-install.

    Perhaps this is the only way.

    Thank you all for your imput and help.

    Cheers

    Rixxe

  • RE: Database is not accessible....

    Yes that is correct.

  • RE: Database is not accessible....

    Yes, as there is only one account which should be the admin.

  • RE: Database is not accessible....

    Thanks for the idea about changing the server name, but i get this:

    Msg 15247, Level 16, State 1, Procedure sp_dropserver, Line 20

    User does not have permission to perform this action.

    Msg...

  • RE: Database is not accessible....

    Connecting to the parent company, hence the name change.

    It would have made sense to create a copy, and i would have done if i was aware when this change...

  • RE: Bulk Insert with Dates

    Lowell

    Thankyou very much for your help. This is saved me a stupendous amount of time.

    Many thanks

    R

  • RE: Bulk Insert with Dates

    Thankyou very much for your help, that works now.

    One last thing if i may:

    How would i add this function into the procedure?

    It changes the yob to always have a day,...

  • RE: Bulk Insert with Dates

    Thank you for the help.

    Currently I have this:

    Still getting an error which has now become:

    (12100 row(s) affected)

    Msg 102, Level 15, State 1, Line 27

    Incorrect syntax near '('.

    Trying to find what...

  • RE: Bulk Insert with Dates

    So i ran it with those changes suggested, and i get the following error:

    (12100 row(s) affected)

    Msg 242, Level 16, State 3, Line 1

    The conversion of a nvarchar data type to...

  • RE: Bulk Insert with Dates

    I was unaware you could do that, i'll give it a go.

    Also do you have to specify the type of DateTime? e.g. yy-mm-dd/dd-mm-yy etc?

    Many thanks

    R

  • RE: Loop through multiple tables

    Well, seeing as when its reading in a particular file, it errors half way through the reading process i'm not sure what else i can do.

    I've attempted splitting the arraylists,...

Viewing 15 posts - 1 through 15 (of 21 total)