Forum Replies Created

Viewing 15 posts - 13,036 through 13,050 (of 15,379 total)

  • RE: UPDATE SELECT

    I too get the point about cardinality issues but the example really is more of a logic flaw than anything else. The example you provided has some serious issues that...

  • RE: How do i convert nvarchar to datetime?

    bharatgi (2/8/2012)


    hi,

    how would i get the field values to automatically show the display format rather than the sql standard format?

    Fields don't display stuff they simply store data. In this case...

  • RE: t-SQL query

    CELKO (2/7/2012)


    And we never, never use the UPDATE ..FROM.. syntax; it is not only proprietary, it does not work right.

    I have used this plenty over the years and have never...

  • RE: Sql tables for all countries States and Cities

    Uripedes Pants (6/14/2011)


    Kansas City and Texarkana immediately come to mind as spanning States.

    Actually the cities do NOT cross state lines. The metropolitan areas cross state lines but they have separate...

  • RE: Sql tables for all countries States and Cities

    spam reported

  • RE: Need to find columns with a specific value

    And here is another one that Lowell wrote (same caveats about production ;-)):

    CREATE PROCEDURE sp_UGLYSEARCH

    /*

    --Purpose: to search every string column in a databasefor a specific word

    --returns sql statement as...

  • RE: Need to find columns with a specific value

    Here is an old cursor based solution I wrote for just this sort of thing. Keep in mind this is NOT fast. Do NOT run this (or the previous one)...

  • RE: Separate values from one column to two

    Hi and welcome to SSC. There seems to be something missing here. First Chrissy asked you to post ddl (create table statements) and sample data (insert statements) along with desired...

  • RE: How do i convert nvarchar to datetime?

    bharatgi (2/7/2012)


    based on your code i tried the following:

    update [table1]

    set [ddate2] = convert(datetime,CAST([ddate] as datetime),112)

    but it now outputs '2011-09-01 00:00:00'

    If your new destination is actually a datetime, which i...

  • RE: Convert concatenated varchar date and time to datetime

    That's because you have data somewhere in there that can't be converted to a datetime.

  • RE: t-SQL query

    What is the question here?

  • RE: NULL's causing confusion.

    Shaun Dayaram (2/7/2012)


    Hi,

    For my own sanity, I need the following explained to me. It was an issue we picked up in a PROD environment.,

    eg.

    CREATE PROCEDURE dbo.my_proc

    ...

  • RE: Qoute " in output ????

    Not a lot of detail to go on here but your replace statement did exactly what you told it to do.

    declare @Tag_Data varchar(200) = '2''10"'

    select @Tag_Data = REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(@TAG_DATA,'"','\quote\'),'@','\at\'),'^','\carat\'),'|','\pipe\'),'=','\equal\') + '^'

    select...

  • RE: BOL Hyperlink Not Working Issue

    I would recommend not using the local copy and always use the online copy anyway. There are frequent changes and updates to the documentation and your local copy will not...

  • RE: How do i convert nvarchar to datetime?

    What is the datatype of your new column? I suspect it is another nvarchar(255). Please use the proper datatypes. You have datetime information put it in a datetime column.

    Look at...

Viewing 15 posts - 13,036 through 13,050 (of 15,379 total)