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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SqlGridSelectedView related questionSqlGridSelectedView related question
Previous
 
Next
New Post
4/5/2007 10:06 PM
 

Hai

I am new to dotnetnuke and Sql

I tried to insert "UserID" value in to the field of a table. But i am getting error message. The sql statment is as follows.

 

INSERT INTO [ttttt]
([EDIT:ColumnName:1]) VALUES ([UserID])

I need sugeestions to save the UserID in the table.

thanks

shashi

 

 
New Post
4/6/2007 12:28 PM
 

general SQL statements: 
if the record exists, use the update statement (you need the parameters @userID as new value and @rowID as ID of the record):

UPDATE mytable SET mycolumn = @UserID WHERE rowID = @rowID

if you want to insert a new record use:

INSERT INTO myTable (rowID, userID, otherValues) Values (@rowID, @userID, @otherValues)

 

Please note: for questions, related to 3rd party components, please use the developers / vendors support options.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/6/2007 10:12 PM
 

Thanks for the reply

SqlGridSelectedView is free tool provided by the developer for dotnetnuke community.

It is really wonderfull Module. I am thnkfull to the devolper for devolping such a nice module and giving it to dotnetnuke community.

I was trying to insert [DNN;UserID] value in the table.

As per the help file, the UserID value was replaced for the value of [DNN;UserID].

I would like to know

1) How the DNN values like DNN:UserID, DNN;PortalNo etc is used while inserting in to table.

a few t-sql syntax example will help me.

2) Is there any module for creating table,inserting data into table and updating data in to the table.

As I understand , Userdefined table will not create new table. I feel it is difficult to manipulate data using sql in the context of

UserdefinedTable.

 

 

 

 
New Post
4/8/2007 4:42 AM
 

Yes it is. It is not free, but you can try it for free (unlimited times). See http://components.init.si

Primoz

 
New Post
4/8/2007 7:32 AM
 

UserDefinedTable is not created to maintain default SQL tables, as it uses its own serialized data structures - our "trick" to store multiple different custom table structures inside 3 common physical tables.

AFAIK there are a number of different solutions around to display SQL data (e.g. core module Reports), a smaller number of modules, that are also able to edit data (e.g. free Advanced DataGrid) and for sure not many modules, that are able to create/alter tables (to be honest, a have not checked out the example stated before).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SqlGridSelectedView related questionSqlGridSelectedView related question


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