Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 5,590 total)

  • RE: Need help with some code..

    jguerra2 (11/22/2010)


    Hey thanks alot. Havent learned and thing about Cross Tabs and Pivot Tables. I am checking you article out now 🙂

    Thanks for the code. I will try it...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (11/22/2010)


    Brandie Tarvin (11/22/2010)


    Chris Morris-439714 (11/22/2010)


    CirquedeSQLeil (11/22/2010)


    Chris Morris-439714 (11/22/2010)


    Wishing Jack C a speedy recovery and some quality time for recuperation.

    Get well soon, mate.

    Did I miss something more than the...

  • RE: Are the posted questions getting worse?

    Chris Morris-439714 (11/22/2010)


    CirquedeSQLeil (11/22/2010)


    Chris Morris-439714 (11/22/2010)


    Wishing Jack C a speedy recovery and some quality time for recuperation.

    Get well soon, mate.

    Did I miss something more than the burnout?

    Our DBA caught some...

  • RE: Need help with some code..

    Basically, you're going to pivot this data. Read the two cross-tab/pivot tables articles in my signature.

    I think that this will do it:

    ;WITH CTE AS

    (

    SELECT dbo.poitem.fpartno AS Part,

    ...

  • RE: cursor appropriate?

    Try this:

    if object_id('tempdb..#table1') IS NOT NULL DROP TABLE #table1;

    if object_id('tempdb..#table2') IS NOT NULL DROP TABLE #table2;

    if object_id('tempdb..#table3') IS NOT NULL DROP TABLE #table3;

    create table #table1 (col1 int,col2 varchar(30));

    insert into #table1...

  • RE: Time Intervals

    The only thing I'm seeing is the way that you populate your @splitTimes table variable. I'd change it to a set-based method:

    -- See Jeff Moden's article

    -- The "Numbers" or...

  • RE: fine tune query

    It might be worth using temp tables.

    CREATE TABLE #tmpAuthors (AuthorUserID int PRIMARY KEY CLUSTERED);

    IF @author_id = 0

    INSERT INTO #tmpAuthors

    SELECT AuthorUserID

    FROM tblAuthors

    WHERE Active = 0

    ELSE

    INSERT...

  • RE: How to pick specific data from a varchar(250) size column

    Shamshad Ali (11/22/2010)


    Stuck in next step, there are some other values which does not work with my existing function. here is the new sample data:

    ?link=ProductsAndServices?src=NLVANOV10_lid={5F86099C-AFDD-DF11-80B8-001CC023728E}&stid=1&ptu=1

    ?src=NLVANOV10_lid={5F86099C-AFDD-DF11-80B8-001CC023728E}&stid=1&ptu=1

    Should check both & and _lid...

  • RE: XML extraction from database

    Okay, do you want this:

    <ichicsr lang="en">

    <ichicsrmessageheader>

    <messagetype>ichicsr</messagetype>

    <messageformatversion>2.1</messageformatversion>

    <messageformatrelease>2.0</messageformatrelease>

    <messagenumb>prd_88</messagenumb>

    <messagesenderidentifier>A</messagesenderidentifier>

    ...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (11/22/2010)


    Dave Ballantyne (11/22/2010)


    Well , that was easy

    http://www.sqlservercentral.com/Forums/Topic1024259-338-1.aspx

    Can't think what's the right thing to say here. All I can do is shake my head.

    It boggles the...

  • RE: Table variables & Try Catch

    Alvin Ramard (11/22/2010)


    WoW!!!

    You're a genius Dave!!

    Who else would have thought of doing that??? 😀

    LOL! (avatar applies here...)

  • RE: temp table in sysobjects

    BTW, the best way to check for the existance of a temporary table in your current session is:

    IF OBJECT_ID('tempdb..#YourTempTable') IS NOT NULL

    Note that in SQL Server thru version 2008R2, temp...

  • RE: XML extraction from database

    The results of your query give:

    <ichicsr lang="en">

    <ichicsrmessageheader>

    <messagetype>ichicsr</messagetype>

    <messageformatversion>2.1</messageformatversion>

    <messageformatrelease>2.0</messageformatrelease>

    <messagenumb>prd_88</messagenumb>

    <messagesenderidentifier>A</messagesenderidentifier>

    ...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (11/21/2010)


    GilaMonster (11/21/2010)


    bitbucket-25253 (11/20/2010)


    All this gibbering and jabbering about age -- Your are all youngsters.

    I've got a GREAT GRAND DAUGHTER born on April 2nd, 2010. As Jeff Moden...

  • RE: Running Total using T-SQL

    No problem - always glad to help. I've noticed your absence, and didn't know when you might be back. Haven't heard from the OP, so maybe it wasn't quite as...

Viewing 15 posts - 2,341 through 2,355 (of 5,590 total)