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

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...New fields not populated with Data from SPNew fields not populated with Data from SP
Previous
 
Next
New Post
10/5/2010 6:40 PM
 
I have a stored procedure I have been using in my module that retrieves all fields from the file.
as
select * from TTS_EmpTimeDayTotal
where ...
I added to fields to the table after the 6th field in the table there are now 27 fields there were 25.
I updated the components in my Project to include the fields added and Compile with no errors.

When I call the procedure and walk through the class for the returned data it skips over the 2 new fields and therefore does not provide the data for the 2 new fields. When I run the SP in a query window in SQL it shows the fields. WHen I reference the new field in my code it does so with no errors.

I can't see what I missed in the DAL does anyone have an Idea as to what is missing or wrong?
should I be able to add fields? I added them in the same order in all the DAL sections
Thanks
 
New Post
10/5/2010 6:47 PM
 
most likely it is a caching issue, try restarting the application and clear server cache. However "SELECT * FROM myTable" should be avoided, because it weakens the database - application layer interface, inconsistencies will show up on runtime in the application, not in your stored procedure or where it gets called.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/5/2010 6:57 PM
 
I will try clearing 
when you say "application layer interface, inconsistencies will show up on runtime in the application" what are you referring to? meaning if I add new fields and my DAL is not handled to use them?
Thanks
 
New Post
10/5/2010 7:02 PM
 
Dan Rowe wrote:
when you say "application layer interface, inconsistencies will show up on runtime in the application" what are you referring to? meaning if I add new fields and my DAL is not handled to use them?

 No, if you alter the table (add, delete, rename, re-type or rearrange columns) you do not need to modify the sproc or DAL (if accepting a datareader), but the business logic may fail - and damn, this can result in extended debugging sessions.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/5/2010 7:11 PM
 
I cleared the cache and it still skips over the properties for the new fields  when running the SP.
And this has turned into an extensive debug session :(
I did at one point change the SP to reference all the fields by name but this did not make a difference
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...New fields not populated with Data from SPNew fields not populated with Data from SP


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