Forum Replies Created

Viewing 15 posts - 151 through 165 (of 369 total)

  • RE: Extracting XML File that is stored as a text data type

    Using the sample data posted, here is a simple query extracting out the values of the GName and FamName elements.

    The sample code shows how namespaces are used in the XQuery....


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Extracting XML File that is stored as a text data type

    Your XML nodes are qualified by namespaces. Therefore, you must specify the namespaces as part of your XQuery.

    See Jacob Sebastian's article (one of a series on XML) here:

    http://www.sqlservercentral.com/articles/XML/61333/

    You can...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Full text indexes and normal T-SQL

    brd123 (3/26/2009)


    Thanks for the replies. My largest column contains close to 900 bytes. I can change the ntext to varchar but then I get an error about placing...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: TSQL

    John Kraeck (3/26/2009)


    The following works without errors in SQL 2005. The table is created, the values inserted and the results selected.

    Not in SQL Server 2005 SP3


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Full text indexes and normal T-SQL

    1. Read the BOL as it describes the basic of full-text, architecture, etc.

    2. See Hilary Cotter's nice articles at http://www.simple-talk.com/sql/learn-sql-server/sql-server-full-text-search-language-features/

    3. Use MSDN for additional research. See: http://msdn.microsoft.com/en-us/library/ms345119.aspx

    4. Search the...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Full Text Search on a View

    Sorry, it is not supported. Even if the view is a 1:1 match on the table (i.e., no joins) it does not work. The problem is due to...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: TSQL

    Steve Jones - Editor (3/26/2009)


    I have edited the question to say SQL 2005. We don't necessarily have time to test and go through all questions on all platforms, and I...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Maximum No. of Indexes

    Andrew Watson (3/20/2009)


    I do have the 2008 BOL on my desktop. CREATE INDEX is OK, but it's wrong in the "Implementing Indexes" section of "Designing and Implementing Structured Storage".

    Likewise....


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Convert XML with nested tables / elements to regular (sql)Tables

    See: Jacob Sebastian's Sales Order Workshop Part IV

    http://www.sqlservercentral.com/articles/Stored+Procedures/2912/

    BTW, Don't use OPENXML. Use XQuery


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Convert XML with nested tables / elements to regular (sql)Tables

    The magic trick is to shred it into one big flattened table using the CROSS APPLY operator.

    For example (code snippit):

    SELECT

    x1.stage.value('@ID', 'uniqueidentifier'),

    x2.activity.value('@ID', 'uniqueidentifier'),

    ...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: is it a good practice to return multiple datasets in a stored procedure

    It depends.

    It prevents multiple round trips to the database server, particularly if the multiple result sets are related. For example, if the logic requires a complex lookup to get...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: How do you query a report to determine if it will print in portrait or landscape?

    You can query the page size propeties via code and you don't have to parse the XML. See the following link which contains a VB.Net RS script:

    http://www.developmentnow.com/g/115_2005_10_0_0_616192/Probs-running-script-to-fix-linked-report-page-settings.htm

    Converted to C#

    ReportService2005.Property[]...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Make the stored procedure to run daily

    I understand the requirement as I have a similar situation. I.e., we are a SaaS company and we have numerous customer databases that are all the same. So...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: How do you query a report to determine if it will print in portrait or landscape?

    I had similar problems with Linked Reports. There is no property of "portrait" or "landscape". Everything is done by page size. See the following links to set...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: FOR XML With Multiple Elements?

    Yes, you can create hierarchical nested XML (e.g., Master / detail) with elements and attributes with SQL Server 2005. The trick is to use sub-selects where you want the...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

Viewing 15 posts - 151 through 165 (of 369 total)