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 strongm 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. MrPlough69

    How to get a Range of Date Ranges?

    Hi RiverGuy, That's exactly what I was looking for! I had an inkling that a self join would be required, but just couldn't get my head around it. Many thanks, and have a star.
  2. MrPlough69

    How to get a Range of Date Ranges?

    The closest I've got up to now is the following, but I'm still struggling to fill in the gaps: SELECT * FROM @Seasons LEFT JOIN @Transfers ON StartDate <= TransferDate AND TransferDate <= EndDate WHERE GETDATE() > StartDate AND ( SELECT Min( TransferDate ) FROM @Transfers WHERE PlayerId = 1...
  3. MrPlough69

    How to get a Range of Date Ranges?

    Hi All, I have a table called Seasons, which contains a list of football seasons along with the date that they start and end. And a table called Transfers which contains a list of players along with the team that they moved from/to, and the date of the transfer: DECLARE @Seasons TABLE( Id...
  4. MrPlough69

    Multiple Product tables

    It sounds like a possible candidate for table inheritance as described here: http://www.sqlteam.com/article/implementing-table-inheritance-in-sql-server
  5. MrPlough69

    Convert HTML to PDF in ASP, or Creat PDF in asp

    Hi Hongying asp pdf is good http://www.asppdf.com/index.html Princexml http://www.princexml.com/ is exceptional but expensive. Both have versions that you can try for free.
  6. MrPlough69

    aspSmartImage discontinued - Alternatives?

    Hi csiwa28, I can recommend ImageMagik as an alternative, it also happens to be free. You can get it at: http://www.imagemagick.org/script/index.php
  7. MrPlough69

    Improve Stored Procedure Performance

    Thanks for the suggestions all. The problem was caused by a poorly placed clustered index (set to a column with few unique values).
  8. MrPlough69

    Dealing with Funky Characters &amp;eacute;

    Hi Ironhide, When you display the text back to the user you should be using the inbuilt Server.HtmlEncode() function, e.g.: s_UserString = "&eacute;" Response.Write( Server.HtmlEncode( s_UserString ) ) All user input should be encoded in this way when written back to reduce the...
  9. MrPlough69

    Improve Stored Procedure Performance

    George, The players are given a rating initially by our general data inputters who watch the match, the results are then used in another application where a special user further refines the ratings, finally standard users get to set their own ratings. I join on the tables twice so that I can...
  10. MrPlough69

    Improve Stored Procedure Performance

    Here you go Denis |--Compute Scalar(DEFINE:([Expr1025]=CONVERT_IMPLICIT(int,[Expr1038],0))) |--Stream Aggregate(GROUP BY:([PDMSoccerSQL2000].[dbo].[MATCHmagTeams].[Surname], [Expr1024], [PDMSoccerSQL2000].[dbo].[MATCHmagTeams].[RefNo])...
  11. MrPlough69

    Improve Stored Procedure Performance

    I've just had a double check George, and I can confirm that there are indeed no scans. The operations that are taking up the bulk of the time are clustered index seeks on the TeamSquads and LineupRatings tables. I'm a bit confused about these as I thought clustered index seeks should be...
  12. MrPlough69

    Improve Stored Procedure Performance

    Thanks Mark, I now have the following: ALTER PROCEDURE [dbo].[GetTeamLineup] @UserId INT, @FixtureId INT, @TeamId INT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT mt.Surname, COALESCE(...
  13. MrPlough69

    Improve Stored Procedure Performance

    Hi All, I’ve got the following stored procedure which returns a list of football players along with some simple stats (running on SQL Server 2005): CREATE PROCEDURE GetTeamLineup @UserId INT, @FixtureId INT, @TeamId INT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from...
  14. MrPlough69

    Print Table Definition

    Also, a nice handy shortcut in Query Analyzer is to highlight the table name, then press Alt+F1.
  15. MrPlough69

    Tkinter user-input

    Check out Events and Bindings - the <key> event appears to be what you're looking for: http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm
  16. MrPlough69

    with response .write and end with

    Works fine for me Onressy, are you receiving an error message?
  17. MrPlough69

    regex for hyperlink

    It looks like the problem is in that your character class: [-_./a-zA-Z0-9!&%#?+,\'=:~] a-z and A-Z don't cover the extended characters such as á using \w in your character class should match these as well: [-_./\w0-9!&%#?+,\'=:~]
  18. MrPlough69

    httpd and Fedora core 5

    What error message do you get if you run the command: service httpd configtest ?
  19. MrPlough69

    restart apache from php

    You could allow the apache user to restart the httpd service by using sudo, I don't know a great deal about the security implications this would have though.
  20. MrPlough69

    Proxy forward to another Proxy

    Heya, Can you not just configure the multihomed proxy to use the second proxy as an upstream proxy? I know in squid you add a line similar to: cache_peer 10.0.0.1 parent 3128 3130 No idea how you would get your pac file to do it though... Cheers.

Part and Inventory Search

Back
Top