Forum Replies Created

Viewing 15 posts - 13,876 through 13,890 (of 15,381 total)

  • RE: TSQL Help

    Walton (9/30/2011)


    Thank you Sean,

    We are not running the query SSMS we put query itself in some application which will take select statment only.

    Don't be so sure about that. 😉 Try...

  • RE: TSQL Help

    With a temp table this is simple.

    create table #MyVals(RowID int identity, returnVal int)

    insert #MyVals exec my_proc @para1

    insert #MyVals exec my_proc @para2

    insert #MyVals exec my_proc @para3

    select * from #MyVals order by...

  • RE: security

    1)List the Logins which are disabled

    select * from sys.server_principals where is_disabled = 1

    2)List are logins which have not been used in past 180 days.

    Aside from a login trace I...

  • RE: TSQL Help

    Pretty sparse on the details...so you can't create a temp table (that is a strange mandate), no looping (good idea to avoid looping whenever possible).

    So this is like calling the...

  • RE: TSQL Help

    You're right. That is totally unclear. Can you explain what you mean a bit more clearly?

  • RE: Using TRY-CATCH with Multiple DELETE DMLs

    YSLGuru (9/30/2011)


    Sean Lange (9/22/2011)


    Given the inability to do this via RI it looks like what you posted originally should work fine. The painful limitation of course is that it can...

  • RE: Updating rows > 100

    You said you have errors. Would you care to share those?

  • RE: spot the Cartesian product

    Realize the reason nobody is willing to help is the same reason you don't want to deal with it. That code is a mess. We don't have the tables or...

  • RE: spot the Cartesian product

    That isn't t-sql, it is oracle.

  • RE: how to split the xml and load it into the DB

    Maybe some ddl, business rules, clear explanation...seems all your posts today are lacking the most important thing to get some help, details.

  • RE: shared database and multiple schema -

    Some others may weigh in with their opinions but I think you will find it easier to have a separate database for each client in the long run. From the...

  • RE: Help with joining two tables

    seftest_09 (9/29/2011)


    I am a new and am having some trouble with joining two tables.

    table1: (topicID, questionID) where topicID is the primary key. For each topicID, there are many questionID's.

    Now,...

  • RE: Select All at top of queried parameter list

    Select stateName, stateId

    union all

    select '--Select All--', null

    from USStates order by stateName

    That will get you the "empty" row for select all.

  • RE: INSERT special character

    No problem. That get you what you need then?

  • RE: INSERT special character

    You have to add an extra ' to make it work.

    select 'don''t'

    --edit sadly a typo in so few words. 🙂

Viewing 15 posts - 13,876 through 13,890 (of 15,381 total)