Forum Replies Created

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

  • RE: Query question - Joins??

    After reviewing the code, I found that you are referring new_projecttasksBase which isn't included in the query. If you're referencing it, you need to add it to the JOINS.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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) <>...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Are the posted questions getting worse?

    Brandie Tarvin (9/30/2015)


    Ugh. SQL Server is HARD.

    whimper

    I believe HADR is HARD. ๐Ÿ˜€

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Byte Me: Error Trapping

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

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Comparing and splitting data

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

    SELECT PremID,

    PolicyID,

    DATEADD( MM, 3, CAST(...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • 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.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

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