Forum Replies Created

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

  • RE: White Space In SQL Server 2005

    Also from MSDN under NVARCHAR at: http://msdn.microsoft.com/en-us/library/ms186939(SQL.90).aspx

    SET ANSI_PADDING is always ON for nchar and nvarchar. SET ANSI_PADDING OFF does not apply to the nchar or nvarchar data types.

    --SJT--

    By the way,...

  • RE: SQL Server 2005

    I guess your issue is with SQL Mail?

    Technically yes - but practically, none of these are enabled, so the end result is the same.

    In fact MSDN/BOL regards them to be...

  • RE: SQL Query

    Replace the occurrences of ', (@myvar)' in your code with ',' + @myvar. 🙂

    --SJT--

  • RE: Bad Microsoft DB Schema Example

    After navigating to your link, it's shown as a how to for an order management database. That being the case, that Product table is a reprehensible thing to be showing...

  • RE: Any SQL gurus / n00bs that are closet musicians?

    I've been noodling around with music since age 8. I consider music to be my only 'formal education'.

    I've done most woodwinds, but the only instrument I continue to play is...

  • RE: return function

    Ack. Trailing spaces. Right.

    --SJT--

  • RE: return function

    Well, the SQL statement is syntactically correct. I would still point a finger at the source data having those several different 'formats'. Two things to help troubleshoot, and one silly...

  • RE: problems with bulk insert statement

    sonia,

    Aha! And here I was trying to duplicate the text of your error by manipulating everything but the row terminator in the source file. A little knowledge gained for me.

    Good...

  • RE: problems with bulk insert statement

    sonia,

    Well, then this is almost certainly a problem with the data in the source file. You might want to try using int instead of smallint to test the contents of...

  • RE: problems with bulk insert statement

    sonia (8/8/2008)


    the rpevious post showed it wrong again. the row terminator in my data is[ new line]

    Given the correction you noted, the code works as expected for me. The error...

  • RE: problems with bulk insert statement

    I see that the forums program takes issue with the newline character. Are you using newline for the ROWTERMINATOR?

    ROWTERMINATOR = '' --Can't get the newline to show up here. Someone...

  • RE: problems with bulk insert statement

    sonia (8/8/2008)


    the datatypes for the columns are bigint and smallint.

    What type is defined for the data in column 3? Also, are you using a format file or just letting BULK...

  • RE: problems with bulk insert statement

    The first line of the error seems to indicate a difference between the data in the file and how it is defined in either the target table or the format...

  • RE: long digit number to a decimal one

    Latheesh,

    The question, as posed, can't be answered. We need more information before we can assist.

    For example: is the precision of the desired output known? Can the precision of the input...

  • RE: Date

    Hmm,

    Are you adding the value CompanySnapShot.DivId (or some other expression) into the GROUP BY clause of the query I provided? That would show an additional row in the result for...

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