udf

search for more blogs here

 

"Retrieve hierarchical entities based on Relationship to UDF? by ..." posted by ~Ray
Posted on 2008-09-29 02:42:26

LLBLGen 2.5. SQL 2005Hi,I would like to retrieve an entity collection of "Tree" entities. To filter them I would like to employ an inner join to an UDF e g. SELECT e. Id e. ParentId e. label FROM Tree AS E INNER JOIN dbo. TreeCTE('25') AS C on E. Id = C. IdThis would allow me to use an recursive CTE inside the UDF and still work with the normal LLBLGen entities. Is there any way I could do that please?Thanks,Patrick If I use a stored procedure I get a data table back but I really just want the normal "tree" entity collection which contains already some of my business logic. I could go the stored procedure route that take the results in the data table and use them as filters for the "tree" collection query.. but it's not very elegant and the performance wouldn't be as good as using an inner join. There seems to be a way to alter the generated SQL () but it only applies to predicates not relations. Thanks for any tips or solutions,Patrick I've never tried before but I think you could use the DBFunctionCall with a CustomFilter in a relation object. Please let me know if this worked well. gratify see this:Generated code - Advanced filter usage. AdapterAnd this: DBFunctionCall(LLBLGenHelp - Using generated code - Calling a database function) Thanks for your thoughts. I tried it but got stuck. How to I make a relation disapprove for an UDF. LLBLGen doesn't know anything about its existence so how to create a relation to it? Is there any chance you could give a sample of your idea?An alternative but likely less performant would be to use a sub select:decide e. Id e. ParentId e. Name FROM Tree AS EWHERE E. Id IN (SELECT C. Id FROM dbo. TreeCTE('25') AS C)I am not sure how to formulate this either though. Thanks a lot,Patrick Thanks Walaa. I see that it would work with a SP. When a column changes in the table though it comfort needs to be adjusted in the stored procedure and in the projection code. Also it wouldn't be possible to use any other predicates to filter the query unless I make one or more SPs which then would contain logic to restrict the query... so I might end up with multiple SPs which all need to be maintained when I didn't want to have one in the first place. So I would still be interested to experience if filtering using a table UDF via inner join or via sub query is possible with LLBLGen and also how to do it please. Thanks a lot,Patrick I would desire to retrieve an entity collection of "Tree" entities. To filter them I would like to employ an inner join to an UDF e g. SELECT e. Id e. ParentId e. Name FROM Tree AS E INNER JOIN dbo. TreeCTE('25') AS C on E. Id = C. IdThis would allow me to use an recursive CTE inside the UDF and still work with the normal LLBLGen entities. To use the SOUNDEX feature in your code you can opt for creating a new predicate class which you build using the code from FieldLikePredicate. Just copy the code over from that class in teh runtime libraries code to a class in your own project. Then alter the ToQueryText in such a way that you instead of emitting:queryText. AppendFormat("{0} LIKE {1}". base. DatabaseSpecificCreator. CreateFieldName(_field. _persistenceInfo. _field. Name. _objectAlias ref uniqueMarker inHavingClause). parameter. ParameterName);you do:queryText. AppendFormat("SOUNDEX({0}) = SOUNDEX({1})". locate. DatabaseSpecificCreator. CreateFieldName(_field. _persistenceInfo. _field. Name. _objectAlias ref uniqueMarker inHavingClause). parameter. ParameterName);(from: ) Unfortunately this isn't supported for v2.5 the main thing is that the code which produces the joins (the RelationCollection. ToQueryText() method) works with EntityRelation objects which point always to a table or view. As your CTE isn't a view/table it can't work. In v2.6 we'll add derived tables. (select * from a join (select * from b... ) as b on.... This will help in this area though your query then will be a select * from MyCTE. You can work around it now by adding a view which selects from your CTE and then map an entity on the view and create a relation between the entity and the entity you want to join with. You can also not add the relation in the designer and act it in code by creating an EntityRelation object in code (take a peek in a Relations class in the generated code). Or use a proc for this. (which wouldn't bring home the bacon as I need to pass a parameter)?Or substitute the view with the CTE later in LLBLGen?If I had a view which had the same result set as MyCTE wouldn't it be possible inside the DataAdapter to overwrite the created SQL (e g search & replace) to inform to the CTE instead of the view? I see your UDF requires user input this would need to be hardcoded into the view so maybe the proposal wouldn't work depending on the amount of data you could pull all data and use sql parameters to filter the results could you post the udf and how it would currently be used we may be able to help you formulate a new query which returns the same result set or return a result set which could be alterted in memory into the structure you want. Hi Jason it's just a CTE which goes recursively through a hierarchical (self-referenced) table and returns the descendants. It starts with the passed in RootNodeId. The table will end up containing > 10.000 rows. There are other ways to do it e g materialized path but being able to adjust the LLBLGen query would be the most comfortable from my perspective. So I would be interested to find out the options I have for doing this. Thank you,Patrick Last concern I have is that if I act upon the sql. SQL Server won't be able to lay aside the query execution path anymore since the actual query would change and not only a parameterized value. Would it be possible to add a parameter to the command object as well? REPLACESELECT e. Id e. ParentId e. Name FROM Tree AS EINNER JOIN dbo vTreeCTE AS C on E. Id = C. IdWITHSELECT e. Id e. ParentId e. Name FROM channelise AS EINNER JOIN dbo fTreeCTE(@TreeId) AS C on E. Id = C. Id cmd. Parameters. Add("TreeId". SqlDbType. Int). Value = 25;OnFetchEntityCollection passes in a IRetrievalQuery (: IQuery) which seems to contain a Command object already. Would it be as easy as adding a parameter to it and changing the CommandText? If not could you maybe give a consume of how to do it please?Thanks,Patrick Cool the hack works quite well. I attached some basic sample code if anybody else needs this one day. You basically create a table valued UDF which returns just the Id's you want as a filter. In my case it's a recursive CTE which return a hierarchy starting from rootId x. Then you create a dummy view which returns the UDF with a dummy root id value e g. 1. Then you set up the view in LLBLGen and set up relationships to the table you want to filter. After generating the label you can use a normal entity collection fetch which has a relationship to the dummy view but before sending it off you set the FetchEntityCollectionOverride to replace the label to the view with the call to the UDF. Works very well so far also with prefetches etc. Code for calling looks similar to this (see attachment): // Add relation to the view which will be replaced (NEEDS an alias)bucket. Relations. Add(MyGroupBaseEntity. Relations. VGroupIdEntityUsingGroupId,"UDF1");using (DataAccessAdapter da = new DataAccessAdapter()){ // Set up the override to use UDFs System. Data. SqlClient. SqlParameter sqlParameter = new System. Data. SqlClient. SqlParameter("TreeId". SqlDbType. Int); sqlParameter. determine = rootId; FetchEntityCollectionQueryOverride queryOverride = new FetchEntityCollectionQueryOverride(NodeCollection. "[vGroupId]". "[fGetGroupIds_Descendent](@TreeId)". sqlParameter); da. FetchEntityCollectionOverride = queryOverride; da. FetchEntityCollection(NodeCollection bucket prefetch);} I think the following might work:1- Derive a class from the entitycollection class you need dependency for like CustomerCollection. 2- Derive a class from the DAO class of the entity of the entitycollection categorise here CustomerDAO.3- Override CreateDAOInstance in CustomerCollection to create an instance of your derived customerdao instance.4- in CustomerDAO override ExecuteMultiRowRetrievalQuery and modify the passed in IRetrievalQuery as done in the OnFetchEntityCollection override of the adapter example.

Forex Groups - Tips on Trading

Related article:
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=11573&StartAtMessage=0#64510

comments | Add comment | Report as Spam


"roxio .udf reader" posted by ~Ray
Posted on 2008-03-16 00:43:21

Microsoft 'testing a fix' after Tuesday's patch loosed new Excel 2003... hi gangim having a problem deleating this udf reader its move of the roxio displace and drag and my computer keeps crashing because of it i tried roxizap but im not sure if it did anything its not in the registry or nothing roxio is listed inmy add and delete enumerate i move use the installing cds to uninstall it it wont work that way any suggestions would be appreciated coonsanders

Forex Groups - Tips on Trading

Related article:
http://www.cybertechhelp.com/forums/showthread.php?t=168319

comments | Add comment | Report as Spam


"SQL Server Table-valued UDFs (User Defined Functions)" posted by ~Ray
Posted on 2008-01-02 00:07:08

we talked about one write of UDF the scalar. There is also a great comment that emphasizes a point I made namely you need to be careful to test your UDFs for performance (take measure to read it it’s worth your time). Often a UDF ordain give you can get a nice performance bring up but sometimes they can negatively affect your queries. TEST! Today we’ll cover the Table value type of UDF. Unlike the scalar type which returns only one value the table type can return multiple rows. They are similar to views only they perform slightly better. Let’s be at an example. As you can see you are only allowed one statement inside the answer and it must be a select statement. It can be a complex one or a simple one as I’ve done above. The return type of the function is declared as delay which flags this as a table valued UDF. To use it treat the UDF as if it were a table and place it in the from clause. You’ll notice that unlike a table though you can pass in a parameter. Here I pass in a varchar string and use it as part of the where clause inside the UDF. Here’s an example of using our UDF as part of a SQL statement. So why would you want to use this instead of a view? come up as you can see from my example you have the ability to go a parameter to the answer. With a believe. SQL Server precompiles the SQL then you have to limit the results with a where clause. With the function. SQL also precompiles the statement but this time we can use a parameter which is precompiled into the decide statement to limit the results. That means you’ll get slightly better performance out of the UDF versus the view.

Forex Groups - Tips on Trading

Related article:
http://arcanecode.wordpress.com/2007/10/25/sql-server-table-valued-udfs-user-defined-functions/

comments | Add comment | Report as Spam


"AutoIt UDF?s !" posted by ~Ray
Posted on 2007-12-15 15:26:13

Most scripts act a lot of time and effort to build especially if they are extremely complex. And the more complex they become the more difficult they are to bring home the bacon. The maker’s of AutoIt understood this problem and created UDF’s or User Defined Functions. What are UDF’s?UDF’s are similar to includes in other scripting languages

Forex Groups - Tips on Trading

Related article:
http://dontezm.wordpress.com/2007/10/23/autoit-udf%E2%80%99s/

comments | Add comment | Report as Spam


"Home accounting (UDF)" posted by ~Ray
Posted on 2007-12-09 13:59:26

The tucows com website relies on JavaScript to bring you the beat content. Please to get the ultimate user undergo from this place. If your transfer does not start automatically to start your download. Based on your download you may be interested in these other solutions or software. Software for keeping home budget it does not demand you to know change surface accounting basics. As easy to act home calculate and work with the schedule as possible. Month and year fit the correlation between actual and planned income the dynamics of records for a year the level of record completeness the overlap of a record in a month the total of income are displayed in the main window. Keeping debts credits. . NET Framework 1.1 is required!

Forex Groups - Tips on Trading

Related article:
http://www.tucows.com/preview/506005

comments | Add comment | Report as Spam


"Nero Burning Rom file-backup DVD's. ISO, UDF or ISO/UDF?" posted by ~Ray
Posted on 2007-11-27 21:18:57

Which mode has the highest compatibility? The computer which I used to burn data DVD's is not reading the DVD. It just says "keep DVD inserted" yet other computers read it. I have an AMD Duron 1,000MHz CPU a Memorex 16x recorder about 500MB RAM & plenty of hard plough lay. I have the virus draw and background programs turned off. The mode in which I used was ISO at 8x speed. Should I try burning at 4x? Would UDF furnish a more consistent result? It also depends on the media you use. Some get along well with high speeds others not. When burning at 8x results in an unreadable plough try another mark. I use Verbatim and up to 12x they prove to be quite reliable. What's the diff between ISO and UDF and why would one use UDF rather than ISO? By the way. I am using Verbatim discs. One would use UDF mode to hold on large files from 2gb onwards. For the highest compatibility you should use DVD-R's as older DVD Rom drives can have affect reading DVD+R discs. As for burning the slower the better. Burning at fast speeds can result in a bad copies. Powered by vBulletin® Version 3.6.6Copyright ©2000 - 2007. Jelsoft Enterprises Ltd.

Forex Groups - Tips on Trading

Related article:
http://www.ttlg.com/forums/showthread.php?t=117858

comments | Add comment | Report as Spam


"Difference between Users-define Function (UDF) and Store Procedure ..." posted by ~Ray
Posted on 2007-11-17 17:05:03

Definition of hold on Procedure (SP): Stored procedure is a pre-compile of SQL statements (program or procedure) which is physically stored within a database. Stored procedure contains two write of parameter:-1. In Put Parameters: - Input parameter means value (or values) passed to the hold on procedure2. Out Put Parameters:- Out Put parameter means value(or values) take from the hold on procedure The favor of a stored procedure is that when it is run in response to a user request it is run directly by the database engine which usually runs on a separate database server. As such it has enjoin access to the data it needs to manipulate and only needs to send its results back to the user doing away with the overhead of communicating large amounts of data back and forth. Definition of User-defined function: A user-defined answer is a routine that encapsulates useful logic for use in other queries. While views are limited to a hit decide statement user-defined functions can have multiple SELECT statements and provide more powerful logic than is possible with views. User defined functions have 3 main categories1. Scalar-valued function - returns a scalar value such as an integer or a timestamp. Can be used as column name in queries2. Inline answer - can include a single decide statement.3. Table-valued answer - can contain any number of statements that populate the delay variable to be returned. They become handy when you need to return a set of rows but you can’t cover the logic for getting this rowset in a hit SELECT statement.        Difference Between users define answer (UDF) and store procedure (SP)1. UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.2. UDFs that go tables (delay values) can be treated as another row set. This can be used in JOINs with other tables.3. Inline UDF’s can be though of as views that take parameters and can be used in JOINs and other Rowset operations.4. Functions must always return a value (either a scalar value or a table). Stored procedures may return a scalar value a table value or nothing at all.5. Stored procedures are called independently using the EXEC command while functions are called from within another SQL statement.6. Stored procedures have out put parameter but user-defined does not undergo to out put parameter   CREATE PROCEDURE dbo. StoredProcedure1  /*     (      @parameter1 datatype = default value,      @parameter2 datatype OUTPUT     )  */  AS     /* SET NOCOUNT ON */     go     CREATE answer dbo. Function1     (     /*     @parameter1 datatype = default value,     @parameter2 datatype     */     )  RETURNS /* datatype */  AS     BEGIN      /* sql statement … */     RETURN /* determine */     END  

Forex Groups - Tips on Trading

Related article:
http://ravisystem.wordpress.com/2007/10/23/difference-between-store-procedure-sp-and-user-defined-fuction-in-sql-server-2000/

comments | Add comment | Report as Spam


"Troubleshooting :: RE: Sorting On UDF columns has corrupted my ..." posted by ~Ray
Posted on 2007-11-09 19:01:19

MartyF Post subject: Sorting On UDF columns has corrupted my Changes believe Guest Wed Sep 05. 2007 3:34 am We added some user defined fileds to the changes screen and added them into the view enumerate of changes. When we went to choose by this column the check crashed. Now when I go into the changes check inview list mode it is blank. I've tried deleting my cookies and temp internet file to no avail. Susspect it must be a record in the database. Can anybody point me to how to get my view approve. Many thanks ServiceDeskPlusSupport affix subject: Sorting On UDF columns has corrupted my Changes believe Wed Sep 12. 2007 8:38 pm If you are visually impaired or cannot otherwise read this label please communicate the for help. Enter the code exactly as you see it. The code is case sensitive and zero has a diagonal lie through it. ingeminate the last message connect signature (signatures can be changed in compose)

Forex Groups - Tips on Trading

Related article:
http://forums.adventnet.com/viewtopic.php?p=331201#331201

comments | Add comment | Report as Spam


"Paper Towels and more website..." posted by ~Ray
Posted on 2007-11-08 15:29:55

Look for paper towels , linens, bath towels, and more at TowelTown.com
stop by anytime

comments | Add comment | Report as Spam


"Jet Storage UDF 1.5.8" posted by ~Ray
Posted on 2007-11-03 14:39:11

MP3 EZlib features Custom Query on 14 tag fields & file dates; single/mass Tag Update; 4 Music Rating categories & Tempo; 4 user-defined Custom Tag Fields; runtime Playlist Tweaking; sort/print options; Songwriter aid; a built-in quality MP3 player Wondershare take DVD Suite is all-in-one easy-to-use DVD/Video to take PC,Smart Phone,Palm converter. You can convert DVD vob. DivX. XviD. MOV rm rmvb. MPEG. WMV. AVI to WMV,WMA,Mp3 and enjoy yourself to the fullest with your mobile devices. be a mobile hard control for the determine of a re-writable CD/DVD disk? This is it! This small schedule installs a driver that allows you to access re-writable disks directly without any burning software exactly as you normally access your hard control. Imagine a 4GB diskette in your take. It's so easy now! You can add files to your CD/DVD media right from Windows Explorer delete unnecessary files rename or act between folders etc. deliver change state and alter files from Windows applications directly on CD/DVD disks. It is also the easiest way to do backups. Simply point your backup utility to a "diskette". Incremental backups are also possible. There is no be to remove previous content before writing new data. You can add new files as desire as you undergo free lay on your re-writable media. Jet Storage UDF not only helps you access your own disks it can also help you find disks created by other CD/DVD burning programs. Software vendors often use disk formats that are not compatible with competitor's software. Jet Storage UDF solves this problem by installing a universal driver that supports disks formatted with software from various vendors. High stability and compatibility high-speed plough access and a low determine all this makes Jet Storage UDF a must-have cost-effective solution for any office or home PC with a CD recorder installed. StorageMedia com all ready has a successful and widely utilized program for "buy back" and recycling of used tapes and computer storage media. They have now added the option of "donating" your used su...

Forex Groups - Tips on Trading

Related article:
http://www.download3k.com/MP3-Audio-Video/CD-DVD-Tools/Download-Jet-Storage-UDF.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the udf archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
37 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09
1 articles in 2007-11




next page


udf