Skip to content

Database

Discussions on database access, SQL, and ADO

This category can be followed from the open social web via the handle database@forum.codeproject.com

17.1k Topics 61.8k Posts
  • Advice on Perfomance Turning of the Query

    database
    5
    0 Votes
    5 Posts
    0 Views
    V
    Thank you very much for the Advice, no my Query runs for 5 Min on 800 000 Records Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com
  • New SQLite Management Program

    database sqlite com
    2
    0 Votes
    2 Posts
    0 Views
    P
    Too spammy. Please consider the Product Showcase.
  • SSIS package

    database sql-server help announcement
    4
    0 Votes
    4 Posts
    0 Views
    P
    The C# forum may well be the correct forum. He hasn't answered my question there.
  • Link to Microsoft Virtual System

    database workspace
    3
    0 Votes
    3 Posts
    0 Views
    S
    Yes thanks got it.
  • Unknown storage engine 'InnoDB'

    mysql help com sysadmin discussion
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Uncertain on What to Use as Foreign Key of a Table

    database career design xml help
    4
    0 Votes
    4 Posts
    0 Views
    A
    Hi, thanks for responding. You said "calling it userstable is redundant", that was a typo.
  • Retrieve Data Using Comma Separated List

    database help question
    4
    0 Votes
    4 Posts
    0 Views
    M
    Yeah I probably snaffled that code from someone in the 90s and have not looked at it since :-O , I'm certain there is a better way of splitting the items. Never underestimate the power of human stupidity RAH
  • plsql

    oracle
    3
    0 Votes
    3 Posts
    0 Views
    P
    I foresee a return to single letter variables. Bring back the ZX80! Life is like a s**t sandwich; the more bread you have, the less s**t you eat.
  • Combine results from 2 foxpro DBF files using union

    database question
    2
    0 Votes
    2 Posts
    0 Views
    J
    I think got it. The numbers look correct on a couple of test items. I'm shocked that it works, doesn't really make sense to me how the inner select lines up with the main select. queryString += " SELECT " & _ " DISTINCT FITEMNO " & _ ", SUM(FSHIPQTY) " & _ ", AVG(FCOST) " & _ ", AVG(FPRICE) " & _ ", SUM(FSHIPQTY * FPRICE) " & _ ", (SELECT FDESCRIPT FROM ICITM01.dbf i WHERE i.FITEMNO = h.FITEMNO) AS FREALDESC " & _ ", SUM(FSHIPQTY * FPRICE - FSHIPQTY * FCOST)" & _ " FROM " & _ "(" & _ " SELECT " & _ " h.FITEMNO " & _ " , h.FSHIPQTY " & _ " , h.FCOST " & _ " , h.FPRICE " & _ " FROM ARTRS01H.dbf h " & _ " WHERE " & _ " h.FSHIPDATE >= @startDate AND h.FSHIPDATE <= @stopDate " & _ " UNION ALL " & _ " SELECT " & _ " v.FITEMNO " & _ " , v.FSHIPQTY " & _ " , v.FCOST " & _ " , v.FPRICE " & _ " FROM ARTRS01.dbf v " & _ " WHERE " & _ " v.FSHIPDATE >= @startDate AND v.FSHIPDATE <= @stopDate " & _ ")" & _ " GROUP BY FITEMNO "
  • Select count on 2 DBF files

    question
    3
    0 Votes
    3 Posts
    0 Views
    J
    OK, Thanks That's what I thought.
  • Stored Procedure for Item Allotment

    database sql-server sysadmin help
    7
    0 Votes
    7 Posts
    0 Views
    S
    What is the command/Query you are using to do so and what issue do you face.
  • Service solahart sunter 021-71231659

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Service solahart kebon jeruk 021-71231659

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Service solahart jakarta utara 082113812149

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Service solahart tangerang 082113812149

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Service solahart jakarta barat 082113812149

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Service solahart 082113812149

    adobe
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    8 Posts
    0 Views
    M
    Ambertje wrote: The view gets the data out of the bottom (STAGING) area in the form of text files. Ah I thought you were doing something sensible, expecting performance from text files is not going to work. I suggest you bulk copy the text files into staging tables, do attempt to apply transformations, and then use a stored proc to do the transforms from staging to your destination. I would expect an order of magnitude performance gain with proper tuning of the staging indexes and procedure design. If the data is extreme you may want to look into dropping staging indexes before the insert and reimplementing them after import. Doing transforms on the way in is a really lousy design, I know SSIS and all the tools do this but it is just wrong. Extract, Load, Transform Never underestimate the power of human stupidity RAH
  • 0 Votes
    6 Posts
    0 Views
    W
    Thanks for the suggestion :) Richard Deeming wrote: It's usually cleaner to use the ANSI JOIN syntax I usually use ANSI join but in this case I felt it would be more understandable to use the 'old' syntax because the variations for the join itself are quite different. Richard Deeming wrote: most databases don't use a case-sensitive collation, so there shouldn't be any need to use the LOWER function here. Not sure about this so I wanted to be on the safe side. I should have written these reasons to the original post in the first place. :)
  • Roadmap to learn SSIS

    sql-server help tutorial learning
    3
    0 Votes
    3 Posts
    0 Views
    S
    You can refer to this http://www.f5debug.net/tutorial/SSIS.aspx[^]