Forum Replies Created

Viewing 15 posts - 181 through 195 (of 5,503 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,...

  • 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,...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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...

  • 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.

  • 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...

  • 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...

  • 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)

  • 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...

  • 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 😛

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