Forum Replies Created

Viewing 15 posts - 2,221 through 2,235 (of 5,504 total)

  • RE: parsing email id from string

    kevin4u06 (1/4/2011)


    thanks got it......is there any other way instead of a single select statement.....which is beter than the queries posted in the challenge.

    to quote from a previous post:

    ...there are situations...

  • RE: parsing email id from string

    kevin4u06 (1/4/2011)


    they haven't yet....i need that solution....cause im dealing with the same scenario right now....

    Trust me,they have. 😉

  • RE: Need help, to load dynamic columns

    JustMarie (1/4/2011)


    ...but there's no easy or more efficient way to do it.

    ...

    Would it be possible for you to provide two files and the final table structure ( = expected result)?

    If...

  • RE: parsing email id from string

    Cross-posting. I'm sorry.

    But I just checked over at beyondrelational. The challenge is over. Winners are announced. All codes are available.

    In general, I don't consider it as a good idea to...

  • RE: parsing email id from string

    It looks like you're dealing with exactly the same scenario as described in one of the

    T-SQL challenges over at beyondrelational.

    You might want to have a look at the solutions...

  • RE: Are the posted questions getting worse?

    Koen (da-zero) (1/4/2011)


    GilaMonster (1/4/2011)


    <sigh> Talking plagiarism. He really should know better...

    http://www.sqlservercentral.com/Forums/Topic1042151-2799-1.aspx

    Waw, LutzM's reply is really brutal 😀

    (but I'm thinking the same thing)

    I'm sorry if it comes across brutal. It was...

  • RE: Are the posted questions getting worse?

    Roy Ernest (1/4/2011)


    Now I am following Dave. Brandie, what is your twitter handle?

    Roy, what's that magic "twitter handle" stuff about?

    I sometimes have a hard time following Dave, especially if he...

  • RE: parsing email id from string

    kevin4u06 (1/4/2011)


    Hi Lutz,

    I created a function by slightly modifying your query

    CREATE FUNCTION [dbo].[udf_TEST_EMAIL] (@String VARCHAR(MAX))

    RETURNS @Email TABLE (Email VARCHAR(MAX))

    AS

    BEGIN

    DECLARE @E_mailID VARCHAR(MAX), @delimiter CHAR(1), @sub varchar(max)

    SET @delimiter ='@'

    WHILE...

  • RE: Pivot Query Modifications

    First of all: EXCELLENT way to provide sample data!! VERY GOOD JOB!!

    Now to your questions:

    1. Need to display CheckList Name instead of ID

    2. want to display 'Sunday' in output column...

  • RE: Problem with top record

    hoanglong88i (1/3/2011)


    In my view, the perfect answer here is based on most requests that want to know all the missing codes. Like Harin's solution or this article:

    http://www.sqlservercentral.com/articles/SQL+Puzzles/findinggapsinasequentialnumbersequence/2336/

    But Lutz, your solution...

  • RE: Need help, to load dynamic columns

    I'm not sure if SSIS is the right tool for it...

    Why not load and process the file using T-SQL? It's kinda old-fashioned, but I'm confident much less painful than trying...

  • RE: (ask) query SQL about my stock list of items

    kurniawan.kumala (1/3/2011)


    hi dave,

    would you answer this question , please......

    when i try to create Index [kur_items] at temp_stok (i use sql server 2005)

    -------------------------------------------

    CREATE NONCLUSTERED INDEX [kur_items]

    ON [dbo].[temp_Stok]

    ...

  • RE: parsing email id from string

    Jeff Moden (1/3/2011)


    What if the string contains an "@" that isn't actually part of an email address?

    Then we'd need the split string, I guess.

    I'd probably use the method stated above...

  • RE: Indexes for Booking Search

    The key information in your reply is NHibernate and most probably a misuse of it.

    Check your app while a trace is running and check the values needed for functionality vs....

  • RE: parsing email id from string

    Something like this?

    DECLARE @string VARCHAR(MAX)

    SET @string = '...the email ids abs@yahoo.co.uk and also cds@gmail.com are my mails ids...'

    DECLARE @sub VARCHAR(MAX)

    SELECT @sub = LEFT(@string,CHARINDEX(' ',@string,CHARINDEX('@',@string,1))-1)

    SELECT RIGHT(@sub,LEN(@sub)-CHARINDEX(' ',REVERSE(@sub))-1)

    I think this method...

Viewing 15 posts - 2,221 through 2,235 (of 5,504 total)