Click here to Skip to main content
15,886,199 members
Home / Discussions / Database
   

Database

 
GeneralRe: i know jest the first later how can i write my sql Pin
Christian Graus3-May-08 1:41
protectorChristian Graus3-May-08 1:41 
GeneralRe: i know jest the first later how can i write my sql Pin
Adeel Chaudhry3-May-08 0:34
Adeel Chaudhry3-May-08 0:34 
QuestionAdventurework Database Downloading problem Pin
ManiMughal2-May-08 9:09
ManiMughal2-May-08 9:09 
AnswerRe: Adventurework Database Downloading problem Pin
Blue_Boy2-May-08 12:12
Blue_Boy2-May-08 12:12 
QuestionThe indicator opening session of user instant is not supported in this version of SQL Server?? Pin
jerome_data2-May-08 7:57
jerome_data2-May-08 7:57 
QuestionHot to deploy my db to mssql136.win-servers.com ? Pin
kindman_nb2-May-08 1:11
kindman_nb2-May-08 1:11 
AnswerRe: Hot to deploy my db to mssql136.win-servers.com ? Pin
Vasudevan Deepak Kumar2-May-08 3:26
Vasudevan Deepak Kumar2-May-08 3:26 
QuestionHow to shred rows from XML in SQL server 2005 Pin
okdeshpande2-May-08 0:37
okdeshpande2-May-08 0:37 
Hi,
I am trying to shred values of ModuleTorulemapid,selecteditemid and customvalue from following xml in SQL server 2005. For this purpose, I have written following code, but not able to shred it properly

----------------------------------------------------------------------
EXEC sp_xml_preparedocument @IDoc OUTPUT, @RollForwardRuleXML
SELECT DISTINCT
ModuleToRuleMapId 'ModuleToRuleMapGUID',SelectedItemId 'SelectedItemGUID',[UniqueIdentifier] 'OperationGUID',
CustomValue
FROM
OPENXML(@IDOC,'/ROOT/RuleBuilderModule/RuleBuilderRule/RuleBuilderOperation /RuleBuilderItem ',2)
WITH(ModuleToRuleMapId UNIQUEIDENTIFIER '/ROOT/RuleBuilderModule/RuleBuilderRule/@ModuleToRuleMapId',
SelectedItemId UNIQUEIDENTIFIER '../@SelectedItemId',
[UniqueIdentifier] UNIQUEIDENTIFIER '../@UniqueIdentifier',
CustomValue NVARCHAR(50) '@CustomValue'
)

EXEC sp_xml_removedocument @IDOC
-----------------------------------------------------------------------


Following is the XML which I am using
-----------------------------------------------------------------------
<ROOT>
<RuleBuilderModule Name="RollForwardMethod" UniqueIdentifier="6d6800a6-9006-4d65-a579-731872b16004" Timestamp="0">
<RuleBuilderRule Expression="Which method, automatic or manual, do you want to use for roll forward? <38fc8c42-c1ba-4843-81a4-69d8b9b21b98>" LockedStatus="3" ModuleToRuleMapId="93d552ea-5d8b-4cbd-b936-030ea4fca60a" RuleType="Question" IsBubbleHelpRequired="False" UniqueIdentifier="b88e94f3-48dc-4ce8-ae0c-be17c1133486" Timestamp="0">
<RuleBuilderOperation Name="RBuildMthdAutoManual" ValueSource="Internal" DisplayStyle="Multiple" SelectedItemId="45d72595-c7b7-41e4-bea3-1ffefa9bbfae" SelectedItem="Cch.WorkFlow.BusinessEntities.RuleBuilder.RuleBuilderItem" DialogType="ComboStyle" UniqueIdentifier="38fc8c42-c1ba-4843-81a4-69d8b9b21b98" Timestamp="0">
<RuleBuilderItem Name="Automatic" IsDefault="True" CustomValue="" UniqueIdentifier="45d72595-c7b7-41e4-bea3-1ffefa9bbfae" Timestamp="0" />
<RuleBuilderItem Name="Manual" IsDefault="False" CustomValue="" UniqueIdentifier="b0e4538f-8dc0-46d0-925e-f4a52e0ffdc6" Timestamp="0" />
</RuleBuilderOperation>
</RuleBuilderRule>
<RuleBuilderRule Expression="Rule: Automatically roll the project <363afba8-df04-4af2-a661-dc458bb55f5d>" LockedStatus="3" ModuleToRuleMapId="d5aeeaa7-09d9-4b33-aff9-74cedef43814" RuleType="Rule" IsBubbleHelpRequired="True" UniqueIdentifier="6ee47614-4632-498e-a619-7cacf3c547c4" Timestamp="0">
<RuleBuilderOperation Name="RBuildMthdAutoDuration" ValueSource="Internal" DisplayStyle="Link" SelectedItemId="8cc2752a-575f-484e-be83-1aa79fe1b45d" SelectedItem="Cch.WorkFlow.BusinessEntities.RuleBuilder.RuleBuilderItem" DialogType="ComboStyle" UniqueIdentifier="363afba8-df04-4af2-a661-dc458bb55f5d" Timestamp="0">
<RuleBuilderItem Name="after the client's fiscal year end" IsDefault="False" CustomValue="" UniqueIdentifier="38c5f62d-4859-4f1d-bcd2-807c9d81bf53" Timestamp="0" />
<RuleBuilderItem Name="when the project is completed" IsDefault="False" CustomValue="" UniqueIdentifier="3c66e057-baf2-4c81-a85e-1d4120ab8da2" Timestamp="0" />
<RuleBuilderItem Name="when the first linked work object is rolled" IsDefault="True" CustomValue="" UniqueIdentifier="8cc2752a-575f-484e-be83-1aa79fe1b45d" Timestamp="0" />
</RuleBuilderOperation>
</RuleBuilderRule>
<RuleBuilderRule Expression="How do you want to define who should approve the roll forward? <39d49d0f-6811-4286-8b7e-e75ee9abbdb5>" LockedStatus="3" ModuleToRuleMapId="992f66bb-d84e-4e4c-ba54-c8684b7aa4ae" RuleType="Question" IsBubbleHelpRequired="False" UniqueIdentifier="06b80a58-a700-4f2d-8d8d-e3ce1b752eaa" Timestamp="0">
<RuleBuilderOperation Name="RBuildMthdApprover" ValueSource="Internal" DisplayStyle="Multiple" SelectedItemId="18dca662-6713-4a5e-a3ea-375d48a68afc" SelectedItem="Cch.WorkFlow.BusinessEntities.RuleBuilder.RuleBuilderItem" DialogType="ComboStyle" UniqueIdentifier="39d49d0f-6811-4286-8b7e-e75ee9abbdb5" Timestamp="0">
<RuleBuilderItem Name="Individual" IsDefault="True" CustomValue="" UniqueIdentifier="18dca662-6713-4a5e-a3ea-375d48a68afc" Timestamp="0" />
<RuleBuilderItem Name="Role" IsDefault="False" CustomValue="" UniqueIdentifier="93aa037c-efb0-4038-b4ab-8d3f0da43f2d" Timestamp="0" />
<RuleBuilderItem Name="Team" IsDefault="False" CustomValue="" UniqueIdentifier="7984fc62-ad68-47ea-9b25-4ea9e97945b2" Timestamp="0" />
<RuleBuilderItem Name="Client Responsible Staff" IsDefault="False" CustomValue="" UniqueIdentifier="367fc7ee-f547-4fb2-bd8e-18b126e7da27" Timestamp="0" />
</RuleBuilderOperation>
</RuleBuilderRule>
<RuleBuilderRule Expression="Rule: <2346cf95-6281-4710-9a0a-ef743b50960d> should approve the automatic roll forward." LockedStatus="3" ModuleToRuleMapId="175b4326-eb2e-4a96-8930-06081070d471" RuleType="Rule" IsBubbleHelpRequired="False" UniqueIdentifier="f3b9104f-994c-46a7-82d4-7b85b71e4a23" Timestamp="0">
<RuleBuilderOperation Name="RBuildIndividgual" ValueSource="External" DisplayStyle="Link" SelectedItemId="739f5023-62f2-4ac0-a977-c6d074b4b0fd" SelectedItem="Cch.WorkFlow.BusinessEntities.RuleBuilder.RuleBuilderItem" DialogType="ComboStyle" UniqueIdentifier="2346cf95-6281-4710-9a0a-ef743b50960d" Timestamp="0">
<RuleBuilderItem Name="Unassigned" IsDefault="True" UniqueIdentifier="739f5023-62f2-4ac0-a977-c6d074b4b0fd" Timestamp="0" />
<RuleBuilderItem Name="Roger Fedrer" IsDefault="False" UniqueIdentifier="b5c3d0d2-d58e-4211-abdd-361ad729e309" Timestamp="0" />
<RuleBuilderItem Name="Martina Hinggis" IsDefault="False" UniqueIdentifier="0866c3b8-58ba-45fe-9135-3823f84ded31" Timestamp="0" />
<RuleBuilderItem Name="Jennifer Justin" IsDefault="False" UniqueIdentifier="ebac3d11-0b31-4266-a6c5-a04494397312" Timestamp="0" />
<RuleBuilderItem Name="Wilson Danial" IsDefault="False" UniqueIdentifier="c9b17eb4-7915-47ff-801d-90c7ae7abd91" Timestamp="0" />
<RuleBuilderItem Name="John Thomas" IsDefault="False" UniqueIdentifier="48876e2e-899e-4d1a-be00-eeadc744c481" Timestamp="0" />
</RuleBuilderOperation>
</RuleBuilderRule>
</RuleBuilderModule>
</ROOT>
------------------------------------------------------------------

Could anyone please help me out to shred those values properly?

Thanks In Advance
OmPrakash
QuestionCalling a CLR assembly in SQL Server Pin
Member 39190491-May-08 14:31
Member 39190491-May-08 14:31 
AnswerRe: Calling a CLR assembly in SQL Server Pin
Vasudevan Deepak Kumar2-May-08 3:29
Vasudevan Deepak Kumar2-May-08 3:29 
GeneralRe: Calling a CLR assembly in SQL Server Pin
Member 39190492-May-08 7:23
Member 39190492-May-08 7:23 
GeneralRe: Calling a CLR assembly in SQL Server Pin
Member 39190492-May-08 9:00
Member 39190492-May-08 9:00 
QuestionProblem with DataView.RowFilter Pin
dergunnar1-May-08 10:58
dergunnar1-May-08 10:58 
AnswerRe: Problem with DataView.RowFilter Pin
CodingYoshi1-May-08 13:45
CodingYoshi1-May-08 13:45 
GeneralRe: Problem with DataView.RowFilter Pin
dergunnar2-May-08 12:26
dergunnar2-May-08 12:26 
QuestionComputing a field value in SQL server 7.0 Pin
VardhiniKanaks1-May-08 10:37
VardhiniKanaks1-May-08 10:37 
Questionhow to populate empty ms access database from dataset Pin
Shreyas Ganesh1-May-08 6:01
Shreyas Ganesh1-May-08 6:01 
AnswerRe: how to populate empty ms access database from dataset Pin
Kschuler1-May-08 7:34
Kschuler1-May-08 7:34 
GeneralRe: how to populate empty ms access database from dataset Pin
Shreyas Ganesh1-May-08 8:30
Shreyas Ganesh1-May-08 8:30 
GeneralRe: how to populate empty ms access database from dataset Pin
Kschuler1-May-08 8:41
Kschuler1-May-08 8:41 
GeneralRe: how to populate empty ms access database from dataset Pin
Shreyas Ganesh1-May-08 15:35
Shreyas Ganesh1-May-08 15:35 
GeneralRe: how to populate empty ms access database from dataset Pin
Kschuler2-May-08 3:38
Kschuler2-May-08 3:38 
GeneralRe: how to populate empty ms access database from dataset Pin
Blue_Boy2-May-08 5:56
Blue_Boy2-May-08 5:56 
GeneralRe: how to populate empty ms access database from dataset Pin
Shreyas Ganesh3-May-08 5:35
Shreyas Ganesh3-May-08 5:35 
Questionhow can i get Minmam value Pin
asha_s1-May-08 1:38
asha_s1-May-08 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.