Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listbulk import directly to the database?bulk import directly to the database?
Previous
 
Next
New Post
8/11/2007 10:28 AM
 
Hi,
I use UDT as the conatus module replacement. I the contacts I used to import 100's of records through xml import.
When I try the same with UDT I have a lot of troubles doing it.
Does anyone has a SP that I can use for that bulk import directly to the database?
Thanks,
T.

Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
8/11/2007 11:50 AM
 

mass import is a feature planned for UDT 4.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/11/2007 12:40 PM
 

And for now, can I use the SP? Itries it but have FK conflicts. must be something in my qury but I can' tfind out what.

I'd appreciate your help if possible.

Here is my query


INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (5, 3, 'name')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (6, 3, 'John')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (7, 3, '02-5255555')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (8, 3, '02-5255555')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (9, 3, '02-5255555')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (10, 3, '02-5255555')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (11, 3, '02-5255555')
INSERT INTO            UserDefinedData(UserDefinedFieldId, UserDefinedRowId, FieldValue)
VALUES     (12, 3, 'xxx@xxx.com')

And here is the error message:

Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.
Server: Msg 547, Level 16, State 1, Line 1
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserDefinedData_UserDefinedRows'. The conflict occurred in database 'tomer_db', table 'UserDefinedRows', column 'UserDefinedRowId'.
The statement has been terminated.

 


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
8/11/2007 12:48 PM
 

UDT uses a serialized storage format. each row has an entry in row metadata table and for each value an entry in the data table.

For each row, you need to add a record in UserDefinedRows first; using the rowID returned you can afterwards add a record for each field per row into UserDefinedData table.

Do not forget to add the necessary values createdBy, createdAt, UpdatedBy and UpdatedAt.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/12/2007 8:31 AM
 

Thanks Leupold,

I should've noticed that.

T


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listbulk import directly to the database?bulk import directly to the database?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out