TechTips / Database


TechTip: DB2 for i Impersonation Take 2: External Routines PDF Print E-mail
Tips & Techniques - Database
Written by Michael Sansoterra   
Friday, 13 June 2014 00:00

Use these external SQL routines as an alternative to the somewhat restrictive SET SESSION AUTHORIZATION statement.

Written by Michael Sansoterra

In "Impersonate Your Neighbor Using DB2 for i," I outlined how to use the SET SESSION AUTHORIZATION SQL statement to override the user profile of the current thread or, in many cases, the current job. The benefits of doing this include providing temporary authorization to resources such as IFS files and impersonating another user so that user-dependent code will be tricked into thinking that a different user is running it. However, there are a few restrictions on this statement that can limit its usefulness. In this tip, I'll introduce some external SQL routines (written in RPG) that allow an application to override the user profile without some of the restrictions of the built-in DB2 functionality.

Add a comment
Last Updated on Friday, 13 June 2014 00:00
Read more...
 
TechTip: Impersonate Your Neighbor Using DB2 for i PDF Print E-mail
Tips & Techniques - Database
Written by Michael Sansoterra   
Friday, 06 June 2014 00:00

Learn how to override the current user profile handle with a different user profile in DB2.

Written by Michael Sansoterra

For most database-related applications, using adopted authority is the preferred way to temporarily grant users controlled access to sensitive data. But one limitation of the adopted authority model is that it doesn't override IFS permissions. A second limitation is that the adopted authority model doesn't allow an application to "impersonate" another user. To help with these issues, the DB2 for i statement SET SESSION AUTHORIZATION provides a way to overcome both of these limitations.

Add a comment
Last Updated on Thursday, 05 June 2014 13:16
Read more...
 
TechTip: Even More Nifty New Features in V2R1 DB2 Web Query PDF Print E-mail
Tips & Techniques - Database
Written by Gene Cobb   
Friday, 28 March 2014 00:00

Recent DB2 Web Query group PTF levels 4 through 7 include a host of valuable new enhancements. Learn more about what are sure to be this product's most popular new features.

gene cobbWritten by Gene Cobb

In my last TechTip, I introduced you to several new features that have been delivered in DB2 Web Query version 2.1 group PTFs over the last year and a half. In this TechTip, you'll learn about three more major improvements to the product: REST Web Services, an application extension named WQRAX, and the new map-charting feature.  

Add a comment
Last Updated on Thursday, 27 March 2014 17:24
Read more...
 
User Rating: / 2
PoorBest 
TechTip: Some Nifty New Features in V2R1 DB2 Web Query PDF Print E-mail
Tips & Techniques - Database
Written by Gene Cobb   
Friday, 07 March 2014 00:00

Recent DB2 Web Query group PTF levels 4 through 7 include a host of valuable new enhancements. Learn more about what are sure to be the most popular new features in this product.

gene cobbWritten by Gene Cobb

Version 2.1 of DB2 Web Query for IBM i was released in June of 2012 and included a major overhaul of product ordering and packaging as well as many new enhancements. Since that time, IBM has released seven group PTFs, each one containing both fixes and exciting new features. In this two-part article, I cover some of the most significant new enhancements made to the product over the last 18 months.

Add a comment
Last Updated on Thursday, 06 March 2014 14:09
Read more...
 
Partner TechTip: Convert Queries for Increased Performance and Modern Results PDF Print E-mail
Tips & Techniques - Database
Written by Heath Kath   
Friday, 28 February 2014 00:00

Don't let a library of useful but outdated queries stop you from modernizing how you deliver your data.

heath kathWritten by Heath Kath

Are you still running IBM i green-screen queries? How many queries are you dealing with? Are you finding it hard to manage all those queries? Are your users tired of waiting for a slow-running query that can use only the Classic Query Engine (CQE)? Would your users prefer a modern, graphical interface with more distribution options?

Add a comment
Last Updated on Friday, 21 February 2014 14:17
Read more...
 
User Rating: / 1
PoorBest 
TechTip: Add Lock Detection to Your DB2 for i Arsenal PDF Print E-mail
Tips & Techniques - Database
Written by Michael Sansoterra   
Friday, 13 December 2013 00:00

Use the table function equivalents of Display Record Lock (DSPRCDLCK) and Work with Object Locks (WRKOBJLCK) in your SQL code.

Written by Michael Sansoterra

If you've ever wanted to yell at users and tell them to exit a specific screen (or wanted to just happily end their job automatically) because they're locking a record, then this tip is for you. Best of all, you'll be able to use this functionality right from the comfort of your SQL code.

Add a comment
Last Updated on Friday, 13 December 2013 00:00
Read more...
 
User Rating: / 1
PoorBest 
TechTip: Get a Grip on Your IBM i Databases with IBM Data Studio PDF Print E-mail
Tips & Techniques - Database
Written by Kent Milligan   
Friday, 11 October 2013 00:00

Increase your database understanding with this free IBM tool.

kent milligan 117x117Written by Kent Milligan

Your physical database implementation plays a key role in the performance and extensibility of your application. Because the AS/400's integrated relational database was so easy to use, many programmers created physical files and logical files without giving much thought to the database model. This approach has resulted in many unwieldy physical databases that are hard to understand.

Add a comment

Last Updated on Friday, 11 October 2013 00:00
Read more...
 
User Rating: / 1
PoorBest 
Partner TechTip: Master Your Big Data with SEQUEL PDF Print E-mail
Tips & Techniques - Database
Written by Heath Kath   
Friday, 20 September 2013 00:00

Wouldn't it be nice if big data access was fast and easy with minimal setup time or struggle?

heath kathWritten by Heath Kath

Big data: This term covers a lot of ground. With no definitive dividing line based on file size, data type, number of records, or job requirements, how do you know if you're doing big data? Ask yourself, has the size or speed requirements of new analytic initiatives put serious strain on existing IT infrastructure? Most organizations could say yes because big data is everywhere.

Add a comment
Last Updated on Friday, 20 September 2013 00:00
Read more...
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 2 of 14

WEBCAST

MC Webcast CenterFEATURED WEBCAST

See What i Can Do With Modern RPG Development

Your applications deserve more than just a new look! Change the perception of the IBM i as “old” with modern development tips from IBM and Profound Logic Software.
Watch as Barbara Morris, Brian May and Alex Roytman dive beneath the GUI surface to show the benefits of:

 

  • Working with free-format RPG in IBM i TR7
  • Breaking free from “The Cycle” of traditional RPG development
  • Going beyond the 10 character limit in display and database files
  • And more!

You'll also see a live demonstration of these techniques as the presenters create a modern web application before your eyes! 

 

Watch the Webinar Now!

 

TRIAL SOFTWARE

MS Office Connector for Query/400

NGS' Qport Office enables Windows users to run IBM Query/400 queries to: 

 - Create and update Excel spreadsheets and Access databases

 - Create Word documents

 - Send to Windows screen and PC printers

No query conversion is required. Works with i5/OS V5R1 & above. Installs in minutes!

If you don’t have a budget to replace IBM Query/400, but want your users to have one click enhanced output of their queries.… Request the online license agreement and product download instructions today!

Offer good through December 31, 2013.


   MC-STORE.COM