Click here to Skip to main content
15,892,480 members
Home / Discussions / Database
   

Database

 
Questionerror in the output Pin
aslamshaik25109781-Feb-07 9:13
aslamshaik25109781-Feb-07 9:13 
AnswerRe: error in the output Pin
Christian Graus1-Feb-07 15:18
protectorChristian Graus1-Feb-07 15:18 
QuestionQuerying multiple subclassed tables Pin
Keith Andersch1-Feb-07 6:46
Keith Andersch1-Feb-07 6:46 
AnswerRe: Querying multiple subclassed tables Pin
andyharman1-Feb-07 6:54
professionalandyharman1-Feb-07 6:54 
GeneralRe: Querying multiple subclassed tables Pin
Keith Andersch1-Feb-07 9:36
Keith Andersch1-Feb-07 9:36 
GeneralRe: Querying multiple subclassed tables Pin
andyharman1-Feb-07 22:27
professionalandyharman1-Feb-07 22:27 
GeneralRe: Querying multiple subclassed tables Pin
Keith Andersch2-Feb-07 9:31
Keith Andersch2-Feb-07 9:31 
Questionopenxml question [modified] Pin
El'Cachubrey1-Feb-07 3:49
El'Cachubrey1-Feb-07 3:49 
hi all
I have an table
CREATE TABLE [MultyItemsTab] (
[MultyId] [int] IDENTITY (0, 1) NOT NULL ,
[SingleId] [int] NOT NULL ,
CONSTRAINT [PK_MultyItemsTab] PRIMARY KEY
(
[MultyId],
[SingleId]
) ON [PRIMARY] ,
...
)
GO

And i want to save into one xml-based data
<br />
...<br />
set @txt = '<ROOT> <Style SingleId="0"/><Style SingleId="1"/> </ROOT>'<br />
<br />
EXEC sp_xml_preparedocument @idoc OUTPUT, @txt<br />
<br />
insert into MultyItemsTab select * from openxml(@idoc,'/ROOT/Style',0) with (SingleId int)<br />
<br />

...
And as a result in a table added 2 rows;

-----------------
MultyId-------------SingleId
0-------------------0
1-------------------1

But actually i want what MultyId indent not increase when add rows to this table at once.

I mean what desirable result is:

-----------------
MultyId-------------SingleId
0-------------------0
0-------------------1

How i can do this????


THANKS





-- modified at 10:16 Thursday 1st February, 2007
QuestionCalling an SP with Param... Pin
Astricks1-Feb-07 3:45
Astricks1-Feb-07 3:45 
AnswerRe: Calling an SP with Param... Pin
Pete O'Hanlon1-Feb-07 4:22
mvePete O'Hanlon1-Feb-07 4:22 
QuestionSelect TOP n in DataSet Pin
Vasudevan Deepak Kumar1-Feb-07 2:23
Vasudevan Deepak Kumar1-Feb-07 2:23 
AnswerRe: Select TOP n in DataSet Pin
deGupta1-Feb-07 3:00
deGupta1-Feb-07 3:00 
GeneralRe: Select TOP n in DataSet Pin
Vasudevan Deepak Kumar1-Feb-07 4:15
Vasudevan Deepak Kumar1-Feb-07 4:15 
QuestionPassing more parameters to stored procedure Pin
Siva Myneni1-Feb-07 2:22
Siva Myneni1-Feb-07 2:22 
AnswerRe: Passing more parameters to stored procedure Pin
andyharman1-Feb-07 4:39
professionalandyharman1-Feb-07 4:39 
GeneralRe: Passing more parameters to stored procedure Pin
Siva Myneni1-Feb-07 18:13
Siva Myneni1-Feb-07 18:13 
AnswerRe: Passing more parameters to stored procedure Pin
Elina Blank2-Feb-07 3:10
sitebuilderElina Blank2-Feb-07 3:10 
Questionusing XML as DataSource for RDL reports Pin
deGupta1-Feb-07 0:46
deGupta1-Feb-07 0:46 
QuestionSQL Case Statement Pin
si_691-Feb-07 0:38
si_691-Feb-07 0:38 
AnswerRe: SQL Case Statement Pin
Sylvester george1-Feb-07 0:53
Sylvester george1-Feb-07 0:53 
AnswerRe: SQL Case Statement Pin
deGupta1-Feb-07 3:02
deGupta1-Feb-07 3:02 
AnswerRe: SQL Case Statement Pin
Mike Dimmick2-Feb-07 6:16
Mike Dimmick2-Feb-07 6:16 
QuestionUser define Data type Pin
Software_Guy_1231-Feb-07 0:06
Software_Guy_1231-Feb-07 0:06 
AnswerRe: User define Data type Pin
Pete O'Hanlon1-Feb-07 0:27
mvePete O'Hanlon1-Feb-07 0:27 
GeneralRe: User define Data type Pin
Software_Guy_1231-Feb-07 6:40
Software_Guy_1231-Feb-07 6:40 

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.