Temporary Table
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Temporary TableExpand / Collapse
Author
Message
Posted 12/03/2005 10:44:47 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
I love the way the business objects work.  I have a need for a temp table.  Is there anyway to create a temp table and access this table with a StrataFrame BO?
Post #230
Posted 12/03/2005 10:22:57 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:54:01 AM
Posts: 4,104, Visits: 4,177
Scott,

You can use a Get method rather than a Fill method.  There are two methods that we use.  The first is a Fill.  A Fill updates the contents of a business object.  The other is a Get, which just returns a DataTable, or like you were asking, a temp table. 

There are two instrisic methods to a business object, GetDataTable and FillDataTable.  The Get method will just return a DataTable, the Fill will updates the contents of the business object.  However, each of these has two overloads which allows you to pass a string command (raw SELECT statement) or an SqlCommand.

I hope this helps.

Post #231
Posted 12/04/2005 10:12:58 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 06/17/2008 9:28:35 AM
Posts: 2,649, Visits: 1,863
Yes, Scott, you can also interact directly with the database through the ExecuteNonQuery methods on the business objects. You can create a new temp table by passing the CREATE command through the ExecuteNonQuery of a business object. Then you will use the business object whose structure matches that of the temp table to interact with the temporary table. When you're done with the temp table, you can pass your DROP command through the ExecuteNonQuery method as well.


www.bungie.net
Post #233
Posted 12/04/2005 7:33:58 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
Thanks for the info.  I was start working on this Monday.

Scott

Post #235
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:49pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.