Forum Replies Created

Viewing 15 posts - 6,976 through 6,990 (of 7,164 total)

  • RE: Error produced when converting SQL into XML

    Sorry this took so long...

    I have a testbed setup and can see the XML value from your DB query within a script task...it looks OK and as you mentioned now...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to regenerate recordset from XML data+schema

    I thought of an option...I haven't done a proof-of-concept on it because I don't have a copy of Visual Studio here that supports SQL Server Database Projects but I did...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Accessing Child node from xml data type

    DECLARE @x XML = N'<parent><child>Hello World!</child></parent>' ;

    SELECT @x.query('/parent/child') ;

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Connecting to SQL server: SLOW- IP adress, FAST- name

    Is this for a local instance of SQL Server?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Condition in Where clause query

    pwalter83 (3/9/2011)


    GilaMonster (3/9/2011)


    Could you post table definitions, sample data and expected result please?

    Now this is really frustrating. Without even reading the question, you have given a template answer. This way...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Local connection doesn't work

    First issue: I think the reason why you cannot access the DB from Excel using Windows Auth while your machine is unplugged from the network is because SQL Server cannot...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Sorting data issue

    TK-487581 (3/8/2011)


    Yes, i've even tried the top 100 percent, but still no good.

    So, just confirming - Index is only for performance. It has no hand in sorting the data, right?...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Sorting data issue

    TK-487581 (3/8/2011)


    Yes, i've even tried the top 100 percent, but still no good.

    So, just confirming - Index is only for performance. It has no hand in sorting the data, right?...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Sorting data issue

    The only way to guarantee sort order is to issue an ORDER BY in your query...this is a fundamental concept of set theory.

    This may look familiar: The ORDER BY...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Calculating percentage issue

    This may clear things up:

    SELECT CONVERT(DECIMAL(6), 10.95) AS a,

    CONVERT(DECIMAL(6, 2), 10.95) AS b

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: create Job to check Database Status(Online/Offline/Suspect) If not online send mail

    SELECT *

    FROM sys.databases

    WHERE state_desc != 'ONLINE'

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Calculating percentage issue

    You'll want to convert the numerator and denominator to float or some form of a decimal before doing your division...sorry I did not consider it.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Calculating percentage issue

    Try this:

    WITH cte(numerator, denominator)

    AS (SELECT (SELECT COUNT(DISTINCT encounter) AS numerator

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: transfer data from Sybase to SQL

    SQL Server will implicitly convert your data in the text file to the destination data type per the table definition. That said, if you exported some data from Sybase and...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: OLE DB Destination and Triggers

    You're very welcome :Whistling:

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,976 through 6,990 (of 7,164 total)