Forum Replies Created

Viewing 15 posts - 526 through 540 (of 595 total)

  • RE: Datetime

    From BOL ( index=datetime data type, overview)

    datetime

    Date and time data from January 1, 1753 through December 31, 9999, to an accuracy of one three-hundredth of...

  • RE: DBProcess dead or not enabled

    "DBProcess dead or not enabled" is usually caused by network problems. It is a client-side error that occurs when the connection to SQL Server is terminated unexpectedly (from the client's...

  • RE: Retrieving text data

    You can try running this code. The table name here is TXT. The column name is TXTCOL. Change those values as necessary. There are limitations, but at least you can...

  • RE: Sort

    Another thing to check is that, since the date is returned as character data of the form dd.mm.yyyy (using style 103), it won't sort correctly unless converted back to a date...

  • RE: UNIQUE constraint on nullable column

    If you absolutely must implement your design, you could try using a trigger to enforce uniqueness for non-null values. See the basic example below. Note that in this example, if a...

  • RE: ActiveX Script Problems

    Sorry, I typed the assignment operator ( = ) instead of the equals operator ( == ).  Corrected code is shown below:

    function Main()

    {

      var c9 = DTSSource("Col009")

      var c10 =...

  • RE: ActiveX Script Problems

    Hmm..that is strange. Is DTS returning the string "null"? Maybe you could try something like this:

    function Main()

    {

      var c9 = DTSSource("Col009")

      var c10 = DTSSource("Col010")

      if (c9 == null || c9...

  • RE: ActiveX Script Problems

    Actually,I'd use both checks to be safe:

    function Main()

    {

      if (DTSSource("Col009") == null || DTSSource("Col009") == "")

      {

        DTSDestination("CLO") = DTSSource("Col010");

      }

      else

      {

        DTSDestination("CLO") = DTSSource("Col009");

      }

      return(DTSTransformStat_OK);

    }

    Mike

  • RE: Connection Problem!

    Is your server security (in EM, right click on Server, select server properties, then the security tab) configured for mixed mode? Maybe it's setup for "Windows Only" and 'jules' is...

  • RE: ActiveX Script Problems

    How about something like this:

    function Main()

    {

      if (DTSSource("Col009") == null)

      {

        DTSDestination("CLO") = DTSSource("Col010");

      }

      else

      {

        DTSDestination("CLO") = DTSSource("Col009");

      }

      return(DTSTransformStat_OK);

    }

    Mike

     

  • RE: Incorrect DOTW on SQL Server 8.0

    The first thing I would do is go to Control Panel | Date/Time and make sure the date, time, and year are correct. Also, make sure you've got the correct time...

  • RE: Use IsNumeric() to evalute Ssring that starts with 0D or 0E

    IsNumeric() checks to see if the string can be converted to one of the numeric data types, which includes int, float, money, and decimal.

    BOL says:

    "ISNUMERIC returns 1 when the input...

  • RE: Use IsNumeric() to evalute Ssring that starts with 0D or 0E

    What's happening is that if the string contains one D or E, then SQL Server treats the string as scientific notation. If you cast as real, you'll see the range...

  • RE: General UDFs to emulate BITTEST(), BITSET() ?

    A couple of thoughts on this:

    When using Power() with bigint, ALL parameters must be bigint, so as coded you will probably get arithmetic overflow errors when @nPosition is > 30.

    Cast...

  • RE: Automate replacing a word in .sql file

    Seems like all you are asking for is a single file search-and-replace utility.

    You could use munge.exe if you've got the Windows NT Resource Kit.

    I wrote a utility called frep.exe a long...

Viewing 15 posts - 526 through 540 (of 595 total)