Forum Replies Created

Viewing 15 posts - 181 through 195 (of 5,502 total)

  • RE: Cursors

    If a person insist in something it's always hard to change their mind.

    What might be a slightly different strategy though:

    Write a c.u.r.s.o.r *cough* in SQL Server and show that person,...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Schemas in SQL

    If you press F4 the properties window will open. There's a parameter "Schema" with ethe value "dbo". Change it to Category.

    Then create your table and save it as ParentCategories. Finally,...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: unable to connect reporting server

    Would you mind sharing the reason and how you resolved it?

    It might help others running into the same issue...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Schemas in SQL

    Did you use the table designer in Mnagement Studio?

    If so, you'll need to change the schema in the properties window (F4).

    Or, even better, use the SQL command CREATE TABLE in...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Subquery with "OR" strange problem.

    What happens if you use a unicode data type to query the data? Might be an issue with implicit conversion. Hard to tell without the actual execution plans and the...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Rebuilding XML - HELP!!

    Here's something to get you started:

    SELECT

    CAST(

    (SELECT '' AS [Description], RCode, '' as Override

    FROM #TAICR ICR

    WHERE ICR.TAICID=IC.ID AND RCodes = 'Comment'

    ORDER BY [XMLOrder]

    FOR...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to use stored procedure to query data in anohter server?

    Depending on the process it might be more efficient to perform joins, apply filters and/or aggregate data on the "source server" (Server A), e.g. by writing a stored procedure on...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Connecting to SQL from MS Access

    I second Erland's approach: create a sproc that will perform the tasks that need to be done and use one of the options described in the article he referenced.

    We do...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Alter Authorization on Schema Statement

    "dbo" has two interpretations:

    a) the object "dbo" is the default schema of a database and

    b) the principal "dbo" is the default user when a database is created that will be...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: use Of TSql in Xml and Run In Sql server

    Can you provide an example (rows in a table and hoe those should look in the XML you're looking for)?

    Might help to "knock down" the language barrier.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: If I understand Views VS Functions correctly...I should use views to enapsulated commonly used where clauses?

    ...customer decides they are missing some data or have too much and they throw another code that needs to be excluded\included...

    Exclude/include values in a report usually is a scenario where...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Database and its Objects Naming Standards

    There's only one absolute No-Go for me due to the technical side effects it can have: never ever prefix a stored procedure sp_ !

    The other "strong" standard is not to...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Querying XML data

    something like tihs?

    select

    person.x.value('(./personId)[1]','varchar(max)') as personId,

    person.x.value('(./name)[1]','varchar(max)') as name,

    note.y.value('(./date)[1]','varchar(max)') as [date],

    note.y.value('(./text)[1]','varchar(max)') as [text]

    from @xml e

    cross apply e.xmldata.nodes('organization/department/person') as person(x)

    outer apply person.x.nodes('note') as note(y)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Perfomance due to foreign key

    ...which is refrenced across 63 columns in 40 + tables...

    Just wondering: Why is a PK column refernced by more than one column of another table?

    There are cases when it is...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to View OR Retrieve all the tabs in SQL.

    Yep. 😀

    If nothing else, at least I could promote one of RG's products 😛



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 181 through 195 (of 5,502 total)