Forum Replies Created

Viewing 15 posts - 4,276 through 4,290 (of 8,731 total)

  • RE: Are the posted questions getting worse?

    I'm starting to hear some crickets. 😀

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Getting error in bcp when importing comma delimited data file

    halifaxdal (9/3/2015)


    I found the issue:

    The data row contains comma in one of the column, which makes the bcp thinking it is a delimiter.

    Maybe I need to re-generate the data by...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Getting error in bcp when importing comma delimited data file

    Include the max errors option with a large number that will be enough for all the errors.

    Don't remove the -e option so you can troubleshoot the problem later.

    -m max_errors

    Specifies the...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Getting error in bcp when importing comma delimited data file

    The version is repeated in the format file. Delete one of them.

    9.0

    7

    1 SQLCHAR 0 128 "," ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: SQL syntax help - this should be simple

    It could be with something like this:

    CREATE TABLE numerator(

    memberid int,

    measureid int

    );

    INSERT INTO numerator

    VALUES

    (1,501),

    (1,502),

    (1,503),

    (2,501),

    (2,502),

    (3,501),

    (3,501),

    (3,501),

    (3,501),

    (4,501),

    (4,502),

    (4,503),

    (4,504),

    (4,505);

    SELECT memberid,

    measureid

    FROM numerator

    WHERE memberid IN...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Newbie saying Hi

    Lord Lucan (9/3/2015)


    haha, thanks all.

    I think I like it here already

    If you appreciate your sanity, avoid it. I didn't :hehe:

    Welcome aboard! I hope that you'll be able to learn a...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Getting error in bcp when importing comma delimited data file

    Your format file is still wrong, and this is because you create it from the table instead of creating it from the file. The file doesn't have the id column,...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Should I use money column to store amount related columns

    I usually avoid the money data type because it has some weird rounding issues. I prefer to use decimal in general. You can google for advantages and disadvantages on both.

    Here...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: include source feature

    I'd use the InsertSnippet option. That's precisely the functionality that snippets have.

    You just need to create a new template.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: bcp issue

    Your problem was that the table didn't match the file.

    I suppose that that's what you found out (or maybe something we couldn't see).

    I suggest you to read the following article...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Save query results directly using variables and date/time

    I would still encourage you to learn how to do this in Powershell or SSIS (DBAs prefer PoS, Developers usually go for SSIS). This will give you additional flexibility and...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Save query results directly using variables and date/time

    You're welcome. I hope that you had finally understood the code and what does it do on each step.

    It would be "estoy". Use "estar" for something that denotes a temporary...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Save query results directly using variables and date/time

    Should I not call the procedure [spTryOutCreateFile] from [spTryOut] so that it can save the results from spTryOut

    No, you should call [spTryOut] from [spTryOutCreateFile]. That's how it's coded.

    [spTryOut] will return...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Save query results directly using variables and date/time

    This isn't a natural thing to do, but you should be able to get it done.

    I might not have been very clear, but you need 2 stored procedures. One...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    whereisSQL? (9/2/2015)


    Ed Wagner (9/2/2015)


    crookj (9/2/2015)


    BL0B_EATER (9/2/2015)


    Ed Wagner (9/2/2015)


    BL0B_EATER (9/2/2015)


    SQLRNNR (9/1/2015)


    spineless

    backbone

    Accountability

    responsible

    liable

    Law

    Lawyer

    Judge

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 4,276 through 4,290 (of 8,731 total)