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
  • MS Access ADO problem

    help database question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    3 Posts
    6 Views
    A
    I have tried that also, but it didn't solve the problem. I have also tried CComPtr<_Connection> m_pConnection; . . . m_pConnection.CopyTo(*pdbReturnValue); but it also failed to return the correct connection pointer.
  • About ADO Connection ?

    question
    9
    0 Votes
    9 Posts
    11 Views
    M
    Hello again, Carlos Antollini ! Tanks for your helps. Regards!!!!;) Mehrdad.
  • ADO Named Parameters in ADO 2.6

    database sql-server sysadmin question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Oracle 8i question ...

    database game-dev question html oracle
    3
    0 Votes
    3 Posts
    6 Views
    R
    use the free version of toad (oracle equivalent to Enterprise Manager) from www.toadsoft.com Top Oracle tool
  • MSDASQL & SyBase...

    csharp database com help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • ODBC and CRecordSet::Update

    help announcement
    2
    0 Votes
    2 Posts
    4 Views
    R
    You need to call AddNew or Edit Methods before you call Update. Your code currently has them commented out.
  • I can't find IT

    3
    0 Votes
    3 Posts
    3 Views
    B
    From now I will always use "Try and catch" even with small and simple ADO connections, i found the problem. Thanks Rashid This was very useful: catch( _com_error &e){ _bstr_t bstrSource(e.Source()); _bstr_t bs = _bstr_t(" Error: ") + _bstr_t(e.Error()) + _bstr_t(" Msg: ") + _bstr_t(e.ErrorMessage()) + _bstr_t(" Description: ") + _bstr_t(e.Description()); MessageBox(0,bs,bstrSource, MB_OK);
  • How to use ORDER by clause

    database help tutorial
    3
    0 Votes
    3 Posts
    5 Views
    C
    Thanks for the response, Carlos. I'm using Oracle 8I and had tried to use that but continually got errors from the parser. Once I put the brace characters around the query with the unions, it worked like a champ. None of my books even gave an example such as yours. You helped me out a lot. Thanks again. Chris
  • SQL query troubles: SELECT [TOP x STARTING AT n]

    question database com
    4
    0 Votes
    4 Posts
    7 Views
    D
    I had guessed as much :(. Why oh why did the original designers of SQL not think people would need that functionality? It's common sense if you just want to retrieve, say, 20 rows from a fifty million row table, that you would rather not return the first 49,999,980 only to ignore them. David Wulff dwulff@battleaxesoftware.com
  • Creating SQL Database Thru Code

    database sql-server sysadmin question
    2
    0 Votes
    2 Posts
    3 Views
    A
    I have done this a couple of times. Go in to the SQL Server admin, and script yopur database. Then you get a SQL file with a lot of SQL "Queries" in. After each query there is a "GO" statement. Just take each of those queries, without the GO part, and execute them from your installer. There's a lot of articles here on CodeProject about how to connect to a database and execute SQL Queries. - Anders Money talks, but all mine ever says is "Goodbye!"
  • SQL Server 2000 and Windows 98

    database sysadmin question c++ sql-server
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Looking for Info

    c++ question
    9
    0 Votes
    9 Posts
    16 Views
    L
    Hi I think what you want to do is almost the same as what the RDS.DataFactory can do for you. If you need to extend the functionality - you can create your own based on the DataFactory. Search for RDS in the MSDN
  • ADO vs ODBC

    question visual-studio com
    3
    0 Votes
    3 Posts
    6 Views
    R
    You also have the choice of using OLE DB Consumers, the prefered way in Visual C++ when using OLE DB.
  • ADO & OLEDB, Which runs faster with VC?

    database question business discussion
    8
    0 Votes
    8 Posts
    11 Views
    M
    Sorry to correct you, but in the new ADO 2.7 docs are a lot examples in VC++ using the import statement
  • ADO Refresh Method Problems (beginner)

    help c++ database question learning
    2
    0 Votes
    2 Posts
    4 Views
    M
    Parameters is a collection, so you have to use. In VB the Item property is the default property of the parameters collection. But in C++ there are no default properties. BTW I don't thing defaulting everthing as done in VB does the programmer do an favour. Defaulting rules can change, because there are defined by the type lib you are coding againts. So if you happen to have a newer type lib installed where the default props have changed, you will run into trouble. So I have the attitude to never depend on default probs and methods in any language I use (VB, C++, VB script) pCommand->Parameters->Item[_T("@pkMbtID")]->Value = _T'160' And is your parameter really a string or is it a number ? The Value is a _variant_t, so you can stuff in a number, if that's what you really want.
  • .Net not compatible to Studio6?

    csharp debugging tutorial question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • What database should I use?

    database sql-server com sysadmin help
    5
    0 Votes
    5 Posts
    8 Views
    L
    My descriptive powers of the written word have failed me again, I'm a moron. What I was trying to say was - When creating a database from within Access itself I couldn't just name the tables and fields they contained anything I wanted, a wizard kept getting in my road and pissed me off so much I went to SQL Server which was overkill. I will pul my head in, try all this again and learn to express my question better next time. Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone
  • 0 Votes
    3 Posts
    6 Views
    S
    Perhaps calling the IIdle::Idle would remove the locks? The Jet OLE DB docs makes it clear that we should call this methods frequently. Cheers Steen. "To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"