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
  • What is the difference between Data Warehouse and Database?

    question database
    8
    0 Votes
    8 Posts
    0 Views
    B
    Well... it's the same you know. For some reason I won't explain here it happens that companies or countries block some websites. Some companies block everything except professional website like this one (codeproject) or Microsoft or universities, ... But blogs are blocked. That the reason I don't like when people answer to go to check on Google or other search website.
  • Database design

    database design regex
    5
    0 Votes
    5 Posts
    0 Views
    G
    There is not a straight answer to that question as there are many different forms of data warehouses. Also a data warehouse is a database so the question does not really make sense. The data warehouses I have worked with differ from non data warehouse databases in the following manner: A data warehouse keeps transactional data so that the state of a database at any point in time can be recreated. As a consequence data warehouses contain a lot of data as every single change, at the column level, illicits the creation of a new row. Data warehouses can contain raw, staging and warehouse schemas to enable the verifying of data before it is placed in the data warehouse. A data warehouse is generally used where one wants to be able to have an audit trail of the contents of the database. That's my t'penneth. “That which can be asserted without evidence, can be dismissed without evidence.” ― Christopher Hitchens
  • Performance problem

    help database performance question
    7
    0 Votes
    7 Posts
    0 Views
    L
    More complete and definitely friendlier :D
  • Read Only Database

    announcement database performance question
    10
    0 Votes
    10 Posts
    0 Views
    B
    It's not about paranoia... unit testing, business and database testing has been for client paranoia and audit validation. In my case it's about respecting law and users protection.
  • 0 Votes
    2 Posts
    0 Views
    J
    Rent a DBA. Wrong is evil and must be defeated. - Jeff Ello[^]
  • save documents in/out MySQL

    csharp mysql com question announcement
    2
    0 Votes
    2 Posts
    0 Views
    J
    Reasons to save in the DB: One point of backup. Referential integrity. Can't as easily be tampered with. Reasons to save in the file system: Keeps the size of the database down. Easier to edit the documents. Wrong is evil and must be defeated. - Jeff Ello[^]
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Sybase OleDB connection help [modified]

    database com help csharp java
    2
    0 Votes
    2 Posts
    0 Views
    A
    Hi Devvvy, i have a legacy code in VB.Net 1.1 and Sybase ASE 12.5, system is working fine as i took over from previous developer. Now client want to upgrade to ASE 15.7. we created a totally new environment and installed DB and ASE Client on new machines. I was getting Connection Error while connecting with new DB. I modified connection string in web.config Previous: <add key="connectionString" value="Provider=Sybase.ASEOLEDBProvider.2;Server Name=DBDV01;Initial Catalog=RLDB;Password=db_user;User ID=db_user;Server Port Address=4100;Persist Security Info=True" > </add> New: <add key="connectionString" value="Provider=ASEOLEDB;Server Name=DBDV01;Initial Catalog=RLDB;Password=db_user;User ID=db_user;Server Port Address=4100;Persist Security Info=True" > </add> Login works fine however just after Login when system tries to run any other query in database I get following error message: [Message Class: 14][Message State: 1][Transaction State: 1][Server Name: DBDV01] [Native Code: 924] [ASEOLEDB]Database 'RLDB' is already open and can only have one user at a time. [Message Class: 11][Message State: 1][Transaction State: 1][Server Name: DBDV01] [Native Code: 4001][ASEOLEDB]Cannot open default database 'RLDB'. [Message Class: 10][Message State: 1][Transaction State: 1][Server Name: DBDV01] [Native Code: 5704][ASEOLEDB]Changed client character set setting to 'iso_1'. [Message Class: 10][Message State: 2][Transaction State: 1][Server Name: DBDV01] [Native Code: 5701][ASEOLEDB]Changed database context to 'master'. [Message Class: 10][Message State: 1][Transaction State: 1][Server Name: DBDV01] [Native Code: 5703][ASEOLEDB]Changed language setting to 'us_english'. I am also getting similar error if i try to open both SYBASE CENTRAL and SQL ADVANTAGE at the same time. any help will be welcome.
  • Selective queries?

    css database sysadmin architecture question
    13
    0 Votes
    13 Posts
    3 Views
    U
    I've been looking at repository pattern implementations (using .Net and EF). Many of them aren't selective. One of the most common methods is GetByID. This gets the whole record. Is this really bad? It will return one record, and in most systems it'll use the primary key. One of the most shocking things I have seen is List GetAll(). This returns ALL records in a table. This is clearly going to become an issue in large systems. Another way some systems work is by using DDD and having aggregates return all related data. This tends to make the code simple, but I have doubts about scalability. Has anybody got experience with a system like this?
  • 0 Votes
    10 Posts
    0 Views
    M
    I'm with the other 2, their arguments are perfectly valid, and here is another, triggers spit are a support nightmare, digging out an error in a nested trigger can drive you nuts. Triggers spit have their place, they are excellent for auditing and logging changes to your data ONLY. Never underestimate the power of human stupidity RAH
  • How to connect with SSH Tunnel?

    help csharp mysql com sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    J
    I tried this but same problem: sql_connection = new MySqlConnection("server = 10.0.0.111; Port = 3306; Database = bizcards; Uid = root; Pwd = mujtaba; SslMode = Preferred;"); Technology News @ www.JassimRahma.com
  • Get the max elements in a join?

    database question learning
    3
    0 Votes
    3 Posts
    0 Views
    J
    CREATE TABLE statuser ([userid] int) ; INSERT INTO statuser ([userid]) VALUES (1), (2) ; CREATE TABLE stat ([userid] int, [status] int, [startdate] date) ; INSERT INTO stat ([userid], [status], [startdate]) VALUES (1, 1, '2012-05-30'), (1, 2, '2013-06-23') ; with maxstat as ( select s.userid,max(startdate) startdate from statuser su left outer join stat s on su.userid = s.userid group by s.userid ) select s.userid,s.status,s.startdate from maxstat m join stat s on m.userid = s.userid and m.startdate = s.startdate Oh, also make a habit of having the same name of the fields in all tables, so if it's called USER_ID in one table don't call it PEOPLE_FK in another. It's much easier to debug that way. Wrong is evil and must be defeated. - Jeff Ello[^]
  • 0 Votes
    15 Posts
    0 Views
    L
    ..and might even work relative happily using a different provider[^] on a Raspberry Pi :-D Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • 0 Votes
    7 Posts
    1 Views
    J
    I finally got it in 1 shot. Runs super fast now. Customer complained about the 5 minute run time, so I took another stab at it. Don't know why it I got it this time, perhaps the nap time and the beers! SELECT DISTINCT v.FITEMNO , SUM(v.FSHIPQTY) , SUM(v.FSHIPQTY * v.FPRICE) , (SELECT FDESCRIPT FROM ICITM01.dbf WHERE FITEMNO=v.FITEMNO) AS FREALDESC FROM ARTRS01H.dbf v WHERE FCUSTNO=@FCUSTNO GROUP BY v.FITEMNO
  • Compare two tabel and add/update query

    database collaboration announcement
    2
    0 Votes
    2 Posts
    0 Views
    M
    It would be useful to know which database you are using. Assuming SQL Server then here is some google foo[^] Never underestimate the power of human stupidity RAH
  • i Team,

    collaboration
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • SQL search question

    question database mysql com announcement
    7
    0 Votes
    7 Posts
    2 Views
    L
    Jassim Rahma wrote: so I want to be able to split all and search There's a small difference to keep in mind when using this technique instead of a full-text search; you're effectively selecting ALL textfields for ALL RECORDS. There'll be no optimization on the filter, as the engine will have to check each field whether it 'contains' the request value. That might be rather costly. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • How to Search a Text into a Database objects

    sharepoint database tutorial
    6
    0 Votes
    6 Posts
    0 Views
    Richard DeemingR
    If you have to do this sort of thing regularly, you might want to look at SQL Search[^]. It's free at the moment, although they might decide to charge for future versions. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • 0 Votes
    3 Posts
    0 Views
    M
    Hi - thanks for your reply. The fact table has a composite PK - FactDateID (the date of insertion) and DimRepairID (each repair is unique in the OLTP system). These combined will give a unique reference for a row. My issue is how I solve the issue of displaying the correct data in a cube when I choose a date. For example: RepairID 1 and date of 20140615 is inserted into the fact table. The financial value associated with this is 10. No new row is inserted for the 16th of June, as there was no activity on this repair. However on the 17th of June, the financial value was updated to 20 by a user in the OLTP system and therefore transferred to the DW. A new row of 20140617 with RepairID of 1 and value of 20 is then inserted. Bearing in mind that there will be many RepairIDs in the fact table and some will have changed recently and others not, how do I enable users to pick a date and see what rows were what financial values at a given point in time? Thanks
  • ORM Rant

    csharp database wcf business oop
    8
    0 Votes
    8 Posts
    0 Views
    L
    No worries, I've done it myself ...