Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 3,232 total)

  • RE: how to inserto balnk value datetime column

    Just some inside info on what's happening here. When you attempt to insert a '' into a datetime column, SQL Server must CAST the blank value to datetime. ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query question

    Here's another approach w/o the PIVOT.

    SET NOCOUNT ON

    DECLARE @table1 TABLE(region_id int, region varchar(15))

    INSERT INTO @Table1

    SELECT 1, 'North East' UNION ALL

    SELECT 2, 'South East' UNION ALL

    SELECT 3, 'South West'

    DECLARE @Table2...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Who Wants to Be Rich?

    Well, first of all, everyone's opinion of rich differs. Making 150 K per year is far from rich. I do know that there are a couple of things...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: delete files using ssis

    Uh, you don't need a script task for this. This is an extremely simple operation to do. Use the ForEach Loop Container and place a File System Task...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SQl

    This is entirely too generic for anyone to help you out. We'll need some sort of table schema, sample data, and an example of what you are talking about...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: The data types xml and varchar are incompatible in the equal to operator.

    If it is NULL, why not just set it to the new XML value without going through the XML DML?

    DECLARE @ProductBase TABLE (ID int IDENTITY(1,1), CrossSell xml)

    INSERT INTO @ProductBase

    DEFAULT VALUES

    SELECT...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Convert rows into columns

    Here's a link to the OP's other post on this same topic for reference, but let's use this current thread as the only one going forward.

    Other thread:http://www.sqlservercentral.com/Forums/Topic582789-8-1.aspx

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: how to convert rows into columns

    Please don't cross post....

    Let's continue this thread here:http://www.sqlservercentral.com/Forums/Topic582739-338-1.aspx

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: The data types xml and varchar are incompatible in the equal to operator.

    Continuing the cross-posted thread from here: http://www.sqlservercentral.com/Forums/Topic582839-149-1.aspx#bm582875

    anupamabr,

    If when you select the XML value, it returns the word NULL, it means that there is no value. If you inserted...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: The xml data type cannot be compared or sorted, except when using the IS NULL operator.

    Please don't cross post.

    Continue discussion HERE:

    http://www.sqlservercentral.com/Forums/Topic582804-149-1.aspx

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Process a row two different ways

    You may try the Conditional Split or Multicast Data Flow Transformations (or a combination of both).

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: UNIQUE Constraint and Clustered Index

    The issues that everyone has raised here for correct placement of clustered indexes are all valid. It is a best practice to have a clustered index on all tables,...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: how to convert rows into columns

    Letting you know that it is best practice to do that kind of work in the reporting tool is helping you. That is what those types of tools were...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: The xml data type cannot be compared or sorted, except when using the IS NULL operator.

    Well, the error means exactly what it says...you can't compare the XML data type like that. I see that you declare the XML variable, but never assign it a...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: how to convert rows into columns

    That's what I thought. This kind of work is best done by the reporting tool, whether it be crystal, SSRS, or some other tool.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 1,561 through 1,575 (of 3,232 total)