Forum Replies Created

Viewing 15 posts - 4,066 through 4,080 (of 8,731 total)

  • RE: Query question - Joins??

    Do you have a new_RelatedProjectId column in your new_projecttasksBase table?

    That's the error, not really a syntax error on the joins, probably a misspelled column name.

  • RE: Wildcard Searches

    Yakov Shlafman (10/3/2015)


    Thanks for your article.

    the query for Contains โ€˜exact wordโ€™ will not work if the searched word is the last word on a line.

    Thank you, that's actually addressed...

  • RE: Wildcard Searches

    quagmired (10/1/2015)


    This article is just another example of why lack of native "modern" regex support is holding back MS SQL.

    You're probably right. I'm not sure what prevents MS to include...

  • RE: easy, very easy to answer

    Just as an FYI for the others, Khanacademy doesn't use SQL Server. Entering to the site, I found this:

    Our implementation of SQL is based off of SQLite

    That's why the...

  • RE: How to avoid using scalar User Defined Functions?

    Kim Crosser (9/30/2015)


    OK OK - I give!!!

    I hereby take the No-UDF pledge.

    From now on, I will never use a UDF. Instead, I will only write Select statements that include...

  • RE: When IsNumeric not numeric?

    Kim Crosser (9/30/2015)


    In addition to Try_Parse, there is a new function Try_Convert, which does what IsNumeric should always have done.

    set <output_value> = Try_Convert(<type>, <source_value>);

    Try_Convert returns the source_value converted to the...

  • RE: Shortcut Key for Template

    Some templates can be inserted by using:

    Ctrl+K, Ctrl+X or Ctrl+K, Ctrl+S

    Depending on what you have configured in the Code Snippets Manager (in the Tools Menu or Ctrl+K, Ctrl+B).

    I know is...

  • RE: Wildcard Searches

    Peddi Praveen kumar (9/30/2015)


    Hi Luis,

    Another Approach for "Like" Search is to Use "DataLength" And "Replace" together, as shown below:

    Begin

    declare @lv_search_string varchar(100);

    select @lv_search_string ='Parker'

    SELECT * FROM dbo.LIKETest WHERE DATALENGTH(Name) <>...

  • RE: Comparing and splitting data

    I assumed that PremID was a row identifier, which would handle that when we include it in the partition of the row_number() functions. If it's not, add the TaxYear column...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (9/30/2015)


    Brandie Tarvin (9/30/2015)


    ChrisM@Work (9/30/2015)


    An unsolicited email has just dropped into my Hotmail inbox from a recruitment agency touting a permy dev DBA role in Soho (London) paying ยฃ50k to...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (9/30/2015)


    Ugh. SQL Server is HARD.

    whimper

    I believe HADR is HARD. ๐Ÿ˜€

  • RE: Byte Me: Error Trapping

    That's what I call keeping your computer safe. Where can I get one of those security devices? ๐Ÿ˜€

  • RE: Comparing and splitting data

    It might be easier to just add 3 months. ๐Ÿ™‚

    SELECT PremID,

    PolicyID,

    DATEADD( MM, 3, CAST(...

  • RE: Wildcard in declared variable doesn't work

    What are you trying to accomplish with the condition WHERE Value LIKE '%' + Value + '%'?

    Unless NULL values are involved, that should always evaluate to true.

  • RE: UPDATE statement that doesn't make sense

    The first one fails because you're trying to use the alias as a table. That's not how alias work, you can use them to qualify columns, but not in place...

Viewing 15 posts - 4,066 through 4,080 (of 8,731 total)