Forum Replies Created

Viewing 15 posts - 331 through 345 (of 3,544 total)

  • RE: Handling DBNull When Inserting or Updating Using Stored Query

    vincentshanecurtis - Monday, August 7, 2017 3:23 PM

    Thanks for the assist.

    Your welcome 🙂
    Hope it helped.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Some advice here here please

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    I tested your format file on some test data to replicate your error and then my solution which worked without error.
    Without seeing the query you are running and the format file...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    SQLNCHAR indicates Unicode (2 bytes per char)
    Therefore the host file data length need to be twice the table column size
    If your column is nvarchar(510) then the format file...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    Make sure line 24 in your format file has "\r\n" as a terminator
    Check your input file is tab delimited and all the rows have 24 columns

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Rolling back after Committing

    Grant Fritchey - Monday, August 7, 2017 6:20 AM

    David Burrows - Monday, August 7, 2017 5:58 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Handling DBNull When Inserting or Updating Using Stored Query

    What version of VB are you using?

    In .NET
    DBNull.Value returns a correct NULL for procedure calls
    Either
    Test each control and pass DBNull.Value for empty string
    or

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Get LastOrderDate from each Table


    EXEC sp_MSforeachtable

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: MERGE Output logging options

    OUTPUT INSERTED and DELETED to a staging table then unpivot that table to the destination table

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Rolling back after Committing

    If the database recovery mode is Full then do a log backup, restore last good full backup and restore the log to a point before the committed updates.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    That is what is causing the error, either remove the spaces or put quotes around the column names

    1 SQLNCHAR 0 510 "\t" 1 "column 1" SQL_Latin1_General_CP1_CI_AS
    2...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    As a guess, if you posted part of the file you are using, I would say it is your server column order begin duplicated.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: BCP upload from a txt file

    Use OPENROWSET with BULK option

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: ssrs 2008 r2 sort on a group column

    In group properties click on fx for sort and use the following expression
    CInt(Mid(Fields!termName.Value,2))

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help me hate PowerShell a little less, please.

    On my 2016 server it was not installed by default.
    I had to install Active Directory Module for Windows Powershell feature via Server Manager
    I do not remember having to...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 331 through 345 (of 3,544 total)