Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Thabo Codeproject

@Thabo Codeproject
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hi can any one help me to integrate windows CE emulator to Visual studio 2008
    T Thabo Codeproject

    Hi the actual problem is ,i dont have the device and there is no emulator for windows CE in visual studio.I alredy downloaded the emulator seperately from microsoft.But the problem is how to integrate that to visual studio emulator manager.Is that possible to debug the Windows CE devlopment in other emulators(not windows CE) ?Is that working in the Windows CE device?Or is there any other way to add Windows CE emulator to visula studio?

    Thabo

    Mobile csharp help tutorial visual-studio question

  • Hi can any one help me to integrate windows CE emulator to Visual studio 2008
    T Thabo Codeproject

    Hi every body i am trying to develop a application for Mobile computer call Dolpine6500.It uses Windows CE 5.0 as OS. I have created a project (smart Device) in Visual studio 2008 using C#.Now i want to check this application .The problem is i dont have the device on my hand.But I have Windows CE emularor on my PC.But how Can i deploy my out put from Visual studio to this emulator.I went throught sm articles in Microsoft .But i cant understand that.Can any body explain me step by step ,about how to attach windows CE emulator to Visual studio. :(

    Thabo

    Mobile csharp help tutorial visual-studio question

  • Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified]
    T Thabo Codeproject

    Hi thank u very much.... I made a simple mistake... i re wrote the coding as this

    set QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: Thabo
    -- Create date: 18.02.2011
    -- Description: TEST XML
    -- =============================================
    CREATE PROCEDURE [dbo].[sppassingStoredProcedue]
    AS
    DECLARE @x XML
    BEGIN

    SET NOCOUNT ON;
    SET @x=(SELECT PramryKeyForThisTable,AutoNumberColumn,Data1,Data2,Data3 FROM tblInsertTableForAutoNumber FOR XML AUTO,ROOT('MYROOT'))
    

    INSERT INTO CopyOftblInserTableForAutonumber
    SELECT
    R.Tab.value('@PramryKeyForThisTable [1]','SMALLINT') AS PramryKeyForThisTable,
    R.Tab.value('@AutoNumberColumn [1]','SMALLINT')AS AutoNumberColumn,
    R.Tab.value('@Data1 [1]','VARCHAR(50)') AS Data1,
    R.Tab.value('@Data2 [1]','VARCHAR(50)') AS Data2,
    R.Tab.value('@Data3 [1]','VARCHAR(50)') AS Data3
    FROM @x.nodes('//MYROOT/tblInsertTableForAutoNumber')AS R(Tab)

    END

    The mistake which i made before is ,the colum name which is in XQUERY was not same as in select statement.Now All are Working fine :-D Thank you agin for your help.I am a new person to Codeproject.But i got great response !!!!Thank you .Now i am always using code project ;)

    Thabo

    Database database help sql-server sysadmin xml

  • Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified]
    T Thabo Codeproject

    Hi thanks,,, i tried based on your advice.I just chnaged my code little bit. like this

    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: Thabo
    -- Create date: 18.02.2011
    -- Description: TEST XML
    -- =============================================
    ALTER PROCEDURE [dbo].[sppassingStoredProcedue]
    AS
    DECLARE @x XML
    BEGIN

    SET NOCOUNT ON;
    SET @x=(SELECT PramryKeyForThisTable,AutoNumberColumn,Data1,Data2,Data3 FROM tblInsertTableForAutoNumber FOR XML AUTO,ROOT('MYROOT'))
    

    INSERT INTO CopyOftblInserTableForAutonumber
    SELECT
    R.Tab.value('@PrimaryKeyForThisTable[1]','SMALLINT)') AS PramryKeyForThisTable,
    R.Tab.value('@AutoNumberColumntext[1]','SMALLINT')AS AutoNumberColumn,
    R.Tab.value('@Data1 [1]','VARCHAR(50)') AS Data1,
    R.Tab.value('@Data2 [1]','VARCHAR(50)') AS Data2,
    R.Tab.value('@Data3 [1]','VARCHAR(50)') AS Data3
    FROM @x.nodes('//MYROOT/tblInsertTableForAutoNumber')AS R(Tab)

    END

    i also print the @x variable.I got the correct XML with all data.But when i go to the XQuery also i got all the row and values except PrimaryKeyForThisTable, AutoNumberColumntext column values.i got null values for those columns.I thing there might be a dataconversion problem.I tried the text() function .But nothing happened.How i get those values?

    Thabo

    Database database help sql-server sysadmin xml

  • Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified]
    T Thabo Codeproject

    Thanks...I didnt find that when i read my code :-D Now it was compiling succesfully, but when i execute sp all the colums values of copy table are given null. The first table have 19 rows but with data.The copy table also have 19 rows but without data i mean all are NULL! Is their any thing error in logic ? The thing is ,i dind work with XML in SQL SEERVER before. :sigh: Thabo

    Database database help sql-server sysadmin xml

  • Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified]
    T Thabo Codeproject

    Thank u Luc Pattyn i edit thos within Pre tag :) Thabo

    Database database help sql-server sysadmin xml

  • Hi everyone i am a new comer for this forum ,I have a small problem with format the xml to a table in SQL SERVER stored procedure [modified]
    T Thabo Codeproject

    This is the senario, i am trying to copy a table and store that table into a XML variable(Not physically xml file) and read that XML variable ,at the same time also trying to retrive and insert all data to another table.The stored procedure is given below

    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: Thabo
    -- Create date: 18.02.2011
    -- Description: TEST XML
    -- =============================================
    CREATE PROCEDURE sppassingStoredProcedue
    DECLARE @x XML
    AS
    BEGIN

    SET NOCOUNT ON;
    SET @x=(SELECT PramryKeyForThisTable,AutoNumberColumn,Data1,Data2,Data3 FROM tblInsertTableForAutoNumber FOR XML AUTO ,TYPE ,ELEMENTS XSINIL,ROOT ('TABLEROOT'))

    INSERT INTO CopyOftblInserTableForAutonumber
    SELECT
    tab.col.value('@PrimaryKeyForThisTable[1]','SMALLINT') AS PramryKeyForThisTable,
    tab.col.value('@AutoNumberColumn[1]','SMALLINT')AS AutoNumberColumn,
    tab.col.value('@Data1[1]','VARCHAR(50)') AS Data1,
    tab.col.value('@Data2[1]','VARCHAR(50)') AS Data2,
    tab.col.value('@Data3[1]','VARCHAR(50)') AS Data3
    FROM @x.nodes('//TABLEROOT/tblInsertTableForAutoNumber')AS tab(Col)

    END

    Actually the second table is the copy of the first table.It has same stucure of the first table The table structure is, colum name datatype ----------- -------- PramryKeyForThisTable smallint AutoNumberColumn smallint Data1 varchar(50) Data2 varchar(50) Data3 varchar(50) I have got different different error messages every time.i hve got this error message for above cording.

    Msg 156, Level 15, State 1, Procedure sppassingStoredProcedue, Line 7
    Incorrect syntax near the keyword 'DECLARE'.
    Msg 156, Level 15, State 1, Procedure sppassingStoredProcedue, Line 8
    Incorrect syntax near the keyword 'AS'."

    I couldnt figure out how to do this. Can any one pls give a good solution for this. Thabo

    -- Modified Friday, February 18, 2011 11:33 AM

    Database database help sql-server sysadmin xml
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups