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
  • 0 Votes
    2 Posts
    0 Views
    W
    Haven't seen that problem but could be related to the fact that the fix is older than your server environment. As a workaround, have you tried enabling MARS? The need to optimize rises from a bad design.My articles[^]
  • How to get Cursor's record count (Transact-SQL) ?

    database tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    M
    Excellent, there is another potentially useful keyword I have never used (or knew about). Never underestimate the power of human stupidity RAH
  • MySQL: Get Tables?

    database csharp mysql tools help
    6
    0 Votes
    6 Posts
    0 Views
    L
    Anytime, glad to be of help :-)
  • Dimensional Modelling?

    database xml question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Snowflake schema[^] List of common misconceptions
  • IF Condition in cursor definition

    database help
    2
    0 Votes
    2 Posts
    0 Views
    M
    You are looking for a dynamic where clause, take a look at come of these responses[^] Most of these will work with a cursor. Never underestimate the power of human stupidity RAH
  • Need Oracle Column Names

    database csharp oracle help
    17
    0 Votes
    17 Posts
    0 Views
    L
    PDTUM wrote: PLEASE accept my apology... no problem. PDTUM wrote: I hope that you will want to respond to me the next time Sure, why not?
  • SQL database

    csharp database visual-studio sysadmin security
    5
    0 Votes
    5 Posts
    0 Views
    G
    Put this somewhere where it will run before doing any database stuff: AppDomain.CurrentDomain.SetData("DataDirectory", System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApplicationData));//LocalApplicationData)); Depending on whether you're installing for "everyone" or for each individual user, choose the CommonApplicationData or LocalApplicationData "SpecialFolder" there at the end. And, of course, that's where the database file has to sit. (which makes debugging from within Visual Studio a pain in the butt.) I thought you had to go to Pittsburgh for that. My Mu[sic] My Films My Windows Programs, etc.
  • select statement group by

    question
    3
    0 Votes
    3 Posts
    0 Views
    C
    Building on Chris's post: If you need only max by state you might try something like: select yourtable.serialnumber, yourtable.name, yourtable.city, yourtable.state from yourtable Inner join ( select Max(serialnumber), state from yourtable group by state) as sub1 on yourtable.serialnumber = sub1.serialnumber (NOT TESTED)
  • SQL Nominal Date Conversion [modified]

    database question
    4
    0 Votes
    4 Posts
    0 Views
    L
    But when I click 'Good Answer' on a forum reply, I get a message saying 'Marked as answer'.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Access: SQL export [SOLVED]

    database csharp php com tools
    8
    0 Votes
    8 Posts
    0 Views
    L
    Luc Pattyn wrote: DAO Ahhhhh!!!! Good old DAO :-)
  • Oracle SP coding style

    sharepoint oracle discussion
    9
    0 Votes
    9 Posts
    0 Views
    M
    That was my opinion, but without the authority of experience I am glad to have it confirmed. That dev now has a refactoring (rewrite) job to do. Luckilly this was the first couple of jobs I have given him. Never underestimate the power of human stupidity RAH
  • OLE DB and return value from stored procedure

    database com question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    14 Posts
    0 Views
    P
    Just one, on SQL Server 6 on WinNT, about ten years ago -- it simply disappeared occasionally. I see no reason to trust them when there are better solutions now.
  • Loop in a Stored procedure

    database sql-server help
    7
    0 Votes
    7 Posts
    0 Views
    S
    Shameel wrote: AFAIK, SQL Server does not support packages, only Oracle does FYI, SSIS (SQL Server Intergration Services) does use the term 'packages' for its code base. Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
  • DTS Package

    database sql-server question
    4
    0 Votes
    4 Posts
    0 Views
    S
    current1999 wrote: I just wonder that I must have SQL 2000 before I can experiment the conversion The answer is no, if you are just converting an existing package then all you need is the target version. Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
  • 0 Votes
    7 Posts
    0 Views
    J
    If it was me I would investigate the requirement itself. But other than that presuming it is possible you might to research it using the term "session" or "user session".
  • Create a trigger

    database help tutorial question announcement
    5
    0 Votes
    5 Posts
    0 Views
    L
    The only way you can change the values of a row being updated is in a BEFORE UPDATE trigger. AFTER UPDATE trigger is triggered "after" the row is updated, and therefore, understandably, the :NEW table can't be modified. "Don't confuse experts with facts" - Eric_V modified on Friday, August 19, 2011 10:34 AM
  • SQL Query From Query Results

    database question
    7
    0 Votes
    7 Posts
    0 Views
    M
    Kyudos wrote: Crappy reasons No worse than some I have heard! Try this, uses join and a sub select. SELECT DISTINCT Components.Description, Temp.Description FROM Assemblies INNER JOIN Components ON Components.ComponentKey = Assemblies.AssemblyKey AND Components.Flags = 1 INNER JOIN (SELECT DISTINCT Assemblies.ItemKey,Components.Description FROM Assemblies INNER JOIN Components on Assemblies.ItemKey = Components.ComponentKey) T ON Assemblies.ItemKey = T.ItemKey Never underestimate the power of human stupidity RAH
  • Cannot start MSSQLSERVER

    help database sql-server sysadmin
    8
    0 Votes
    8 Posts
    0 Views
    B
    Hey, Here is the link to the log with failure : [log] Can not make sense of it. Thanks in advance.