Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Bobbber

    Using string values as column names

    Hi, This sounds like a strange question, but is there any function (or any other way) of passing a string in and getting out the field with the same name in a query? Something like this (SalesTotals is a column in tblSalesTotal) : SELECT someFunction ('SalesTotals') from...
  2. Bobbber

    Average by day, month

    In the case of the top line : Year Clients Average Average Opened per Day per Month 2003 3989 10 332 If you do "select 3989/365" is rounds it to 10... but : "select 3989/10.00" shows the correct figure of 10.928767 (i.e. almost 11) R
  3. Bobbber

    Average by day, month

    Hi, I'm not sure about the weekends or holidays, I'd just call the 365 days, 365-10-(52*2)=251 days. Have you thought about integer divisions? "select 10/365" = 0 whereas : "select 10/365.00" = .027397 By using 365.00 instead of 365, you'll force SQL to take into account fractions. Rob
  4. Bobbber

    Dynamic DatPart in datediff function

    Hi All... I'm trying to calculate a dynamic period by using a value from a table to determine the period used. i.e. in some cases I'd like to compare the dates in days and other cases in years, months etc... DECLARE @DatePart varchar(50) SELECT @DatePart = [DatePart] FROM tblDateParts SELECT...
  5. Bobbber

    Maximum when a value is a maximum?!

    Sorry for the strange title, but I don't know how else to describe what I'm trying to achieve. Imagine a table tblTable (all three columns are integers) : ID Int1 Int2 1 10101 100 1 10102 25 1 10102 50 2 10013 65 I want a simpler way of finding the maximum...
  6. Bobbber

    Using with(nolock) from Universe

    Thanks for the replies. I was thinking something for derived tables like this : select * from tbl1 with(nolock) But then the BO universe query would be something like : SELECT * FROM (SELECT * FROM tbl1 with(nolock)) X Once you do that with a hundred derived tables joined together it...
  7. Bobbber

    Using with(nolock) from Universe

    Yes I do want dirty reads. It results in a marked improvement in processing (report) times. We have a live replication feed of data from the user production server - and i don't want the reporting/universe queries to lock this out. Thanks for your help so far! Bob
  8. Bobbber

    Using with(nolock) from Universe

    Thanks for the tip - but it would appear only Oracle table hints are available there... not for SQL Server?! Bob
  9. Bobbber

    Universe design to allow use of SQL Server "with(nolock)"

    Sorry sv... I was under the impression this was for Enterprise.
  10. Bobbber

    Using with(nolock) from Universe

    Hi, We are looking at making a basic BO universe to test it's performance and usefulness against our currect solution (SQL Server stored procedures). We are keeping the SQL Server - and currently the SPs references tables and includes the "with(nolock)" hint. Is there a way to force queries...
  11. Bobbber

    Universe design to allow use of SQL Server "with(nolock)"

    Hi, We are looking at making a basic BO universe to test it's performance and usefulness against our currect solution (SQL Server stored procedures). We are keeping the SQL Server - and currently the SPs references tables and includes the "with(nolock)" hint. Is there a way to force queries...
  12. Bobbber

    Report Engine Not Opened

    Yes - I have exactly the same problem in the same environment(s) (BOXIR2, SQL Server 2000, Windows Server 2000). I'm using BOXIR2 with a Business View, which has a list of values from it. When I try to save the LOV - I get exactly the same two error messages. Really grateful if anyone knows...
  13. Bobbber

    "My Infoview" inaccessible

    Hi, I have a copy of Business Objects Enterprise XI Release 2. In the Infoview the button at the top called 'My InfoView' is greyed out (inaccessible). When I go into preferences - the option to set My Infoview as the initial view is also greyed out. Why might this be? I need to give my...
  14. Bobbber

    Problem with ActiveX Viewer

    Interesting one.... have you tried changing the text in the subreport to a different font/size? Is the font used in the designer in the font list on the ActiveX viewer PC? Bob
  15. Bobbber

    Stored Procedure Performance Problem

    C'mon guys.... My question is "why it takes longer in a stored procedure than in QA"... Thanks! Bob
  16. Bobbber

    Stored Procedure Performance Problem

    Yes - a second or third run of the procedure makes little difference. Sorry! I know you're trying! Bob
  17. Bobbber

    Stored Procedure Performance Problem

    George, Using a temporary table or a "real" one makes little difference to the processing times I'm getting. Bob
  18. Bobbber

    Stored Procedure Performance Problem

    Hi Denis, Thanks for the fast reply. But the table tblPPP contains many surnames of 'smith' and therefore the table yyy is populated with a couple of thousand rows. This surely only updates one row? And doesn't explain why this is many times slower as a stored procedure than executing each...
  19. Bobbber

    last record

    Add an autoincrement field to the table (call it ID or something). Then : SELECT TOP 1 * FROM Table order by ID desc Bob
  20. Bobbber

    Reporting problem

    'tbl' is the table name of the dataset you supplied.

Part and Inventory Search

Back
Top