Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mejner

@mejner
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Find highest XML value in <p x="-0.979248" y="-0.00141319" />
    M mejner

    Ah, OK. This was my first idea to solve the problem. But being an "old style" .net programmer I thought there was a more effective built in way to do it. Stream and loop, simple enough...

    I'll skip the regex and find the position fo "y = " and "/>" and grab the string between those positions.

    ASP.NET xml

  • Find highest XML value in <p x="-0.979248" y="-0.00141319" />
    M mejner

    Hi all, I have a XML files that looks like this: ... <dataset> ... <p x="-0.979248" y="-0.00141319" /> ... </dataset> ... I need to find the highest value of y. The files have 100 000 rows so it should be reasonable fast. But any suggestions are welcome.

    ASP.NET xml

  • inner join on datetime timing out
    M mejner

    WOW! I've tried different indexes on the large table but I never got i right. Now this baby: SELECT Intervallvarden.storhet, Intervallvarden.id_intervallvarde, Intervallvarden.varde, Intervallvarden.tid, Intervallvarden.kanal_nr, MatpunktInstrument.instrumenttyp, MatpunktInstrument.instrumentnummer FROM MatpunktInstrumentParameter INNER JOIN MatpunktInstrument ON MatpunktInstrumentParameter.id_matpunkt_instrument_parameter = MatpunktInstrument.id_matpunkt_instrument_parameter INNER JOIN Intervallvarden ON Intervallvarden.instrument_typ = MatpunktInstrument.instrumenttyp AND Intervallvarden.instrument_nr = MatpunktInstrument.instrumentnummer AND Intervallvarden.tid > MatpunktInstrumentParameter.tid_upp WHERE (MatpunktInstrumentParameter.id_matpunkt = 2575) AND (Intervallvarden.tid > '2007-10-01 00:00') AND (Intervallvarden.tid < '2007-11-30 23:00') ORDER BY intervallvarden.tid Runs in two seconds! Table "Intervallvarden" being the 30 milion rows table. Thanks allot!

    Database database question sql-server sysadmin data-structures

  • inner join on datetime timing out
    M mejner

    OK, thanks. I'll try that out. Unfourtunally I need to join on hours as well. And in a perfect world on minutes as well.

    Database database question sql-server sysadmin data-structures

  • inner join on datetime timing out
    M mejner

    Hi all, I have a big table with 30 million rows (and growing) which I need to join to a table containing dates. The result is a bar graph diagram. But when I join with time over 12 hours the join times out SELECT table1.time, table1.value FROM table2 INNER JOIN table1 ON table1.time > table2.time_up AND table1.time < table2.time_down ORDER BY table1.time This should result in any thing from a couple of hundreds row to several thousands. I'm doing this in a Stored Procedure. I've put indexes on table1.time. Is this join simply to large for SQL Server 2005? Or how can I optimize this search?

    Database database question sql-server sysadmin data-structures
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups