Forum Replies Created

Viewing 15 posts - 7,291 through 7,305 (of 15,381 total)

  • RE: Stored Procedure syntax

    M Joomun (8/5/2013)


    Yes, thanks Sean. Changing the dataype has worked.

    Glad that worked for you. More importantly, do you understand why that worked?

  • RE: Stored Procedure syntax

    M Joomun (8/5/2013)


    Hello All,

    I'm using the procedure to return results to an Access 2010 .adp:

    I would like to return a result if the user enters the following:

    The search criteria SubjectNumber...

  • RE: Timetable query, using CASE

    madsovenielsen (8/4/2013)


    That query looks overly complex, is it not possible to use IF ELSE instead of the switch case?

    It really isn't that complex. You could instead choose to not use...

  • RE: update records based on condition

    riya_dave (8/2/2013)


    IF YOU EXECUTING IT SECOND TIME it moves all the values to scondition

    also if there is duplicate example

    id pcondition scondition

    1 sa ...

  • RE: update records based on condition

    riya_dave (8/2/2013)


    u r updating cte i need to update customecode table

    Did you actually notice what happens when you do that? It updates the base table. 🙂

  • RE: update records based on condition

    riya_dave (8/2/2013)


    but i dont need select ,i just need update statement, the store proc should not have select

    So turn the select into an update. 😉

    ;with SortedData as

    (

    select cc.*, s.SortOrder, ROW_NUMBER()...

  • RE: update records based on condition

    Thanks! That makes it so that those of us helping have enough information to work with. I took the liberty of turning your sort logic into a table too so...

  • RE: Need help with T-SQL to combine email addresses

    heh I forgot the semicolon in my post. Alan you don't need to do this with a subselect, just a simple query works.

    SELECT cEmail + ';'

    FROM #people

    FOR XML PATH('')

  • RE: Need help with T-SQL to combine email addresses

    If you don't need any grouping and just simply want all emails from that table into a single column you can do that like this.

    select People.cEmail

    from dbo.People

    for xml path('')

    If...

  • RE: update records based on condition

    riya_dave (8/2/2013)


    i am trying to explain it here

    Why do you find it so difficult to read the article about best practices? Why is it so difficult to take a few...

  • RE: Date Parse Help

    rocky_498 (8/2/2013)


    Yes I got it. Sorry or confusion, Thanks Guys.

    Yes you guys are right good idea to change D.Type.

    Sometime not a good idea to argue with Manager about...

  • RE: Date Parse Help

    rocky_498 (8/2/2013)


    Luiz thank you for your help, however that sql is just for one e.g. How I can use your sql on one column?

    Year could be 2013 or 2012 or...

  • RE: Easy (I hope) join question

    taigovinda (8/2/2013)


    Good point... For the sample data that is definitely smarter. In my actual data I have about 6 fields that are like 'address' in that there could...

  • RE: Linked server restirction

    sundar329 (8/2/2013)


    We have already created linked server now we cannot re-create the linked server. Is there any other possibilities to restrict linked server access for particular login alone.

    No need to...

Viewing 15 posts - 7,291 through 7,305 (of 15,381 total)