|
I have an Access database with some tables . From a web page (using ADO )the records in a table can be modified or new records can be added .
From a Visual C++ (using also ADO) program I have to monitor these changes .
How can I do this ??
At a new record insertion I tried to read the recordcount from table , but it is increased only after 2-3 seconds after the insertion performed at web page.
Thakx
Jancsi
|
|
|
|
|
Wrote a front end in VC++ to a small Access 2000 database utilising ODBC. When I add a new row to a table and then read through the table again to display the contents on screen the new row is missing. If I read the table a second time the new row is there. I Open and Close the database connection after each action so I don't believe that I am reading the data from cache.
Any idea why the new row is missing when I read throught the table immediately after adding the row?
Michael Martin
Australia
mmartin@netspace.net.au
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Just wondering what I need to add to a VC++ program to allow me to directly access an SQL Server database using Transact SQL. Is there an SQL Server SDK?
Michael Martin
Australia
mmartin@netspace.net.au
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
You could add an ADO class found in CodeProject somewhere and in there you can create strings which consist of your T-SQL then you get a recordset back. you dont need an sql sdk.
I hope thats what you wanted;)
The Wudan Master
|
|
|
|
|
|
You can use the dbengine of sql server or my ado classes
Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
I have yet to meet a C compiler that is more friendly and easier to use than eating soup with a knife.
|
|
|
|
|
Hello All,
This is a pure newbie question on use of Oracle database. I need to design a system
to access Oracle database on a Windows client. We only have Oracle installed on
Windows server.
Can someone help me with the options available, if any?
Do I have to install a client version on the Windows machine?
Will the client version access the database on Unix Machine?
Any another information will be highly appreciated.
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan.
|
|
|
|
|
You should install oracle client on every machine from wich you will connect to Oracle. Location of Oracle (WinNT or Linux) is not important. You just have to configurate tnsnames.ora files on client machines. Usual practice is design single Oracle client driver that will communicate with Oracle and all client applications will communicate with him. So you don't need to install oracle client on all machines, but you need to realize your own transport protocol to communicate client applications and your driver.
Good Luck,
Serge
|
|
|
|
|
Thanks so much for the information. I am also looking at the 9i internet features too. The main problem was that the customer was limiting us to only HTTP access of the database.
Best regards,
Paul.
Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan.
|
|
|
|
|
Hi guys:
I have two question about ADO.Net
1.How or where can I set the "Curser type"?
2.I have datagrid that connect to database with sqlDataAdapter,and sqlConnection.
In VC++ I could set the propety of grid to 'Allow Update' or 'Allow Delete' 'AddNew',
Now in ADO.Net how can set the grid as "Updatable" or "readonly"?
Thanks
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
I don't think you'll find that property, if you use a DataSet it will be always Client Side
<help>
Property Value
true if the grid is in read-only mode; otherwise, false. The default is false.
Remarks
In read-only mode, the grid can be scrolled, nodes can be expanded or collapsed, and so on, However, no additions, edits, or deletes may take place.
The DataGridColumnStyle also has a ReadOnly property that can be set to true to prevent data from being edited, on a column-by-column basis.
The ReadOnly may be set to true if you want to prohibit the user from editing the data directly in the DataGrid. For example, you may want to let users to see all columns in a table, but allow them to edit specific fields only through TextBox controls on a different form.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
thanks
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Please read the message ExecuteSQL -> ? first.
I learned yesterday that ExecuteSQL doesn't return colums, and used the following lines of code to execute a SQL statement:
CRecordset sg;
sg.Open(CRecordset::snapshot, _T("SELECT * FROM Leden ORDER BY Voornaam"));
But when I call the function which will execute this code , I get an error, and it says that I have to call the SQLFetchScroll / SQLExtendedFetch method first, but... how?
|
|
|
|
|
I'm not sure but I think you have to first bind CDatabase to CRecordset:
CDatabase aDB;
aDB.OpenEx(_T("DSN=test"),CDatabase::openReadOnly | CDatabase::noOdbcDialog);
CRecordset aRS(&aDB);
aRS.Open(CRecordset::forwardOnly,"SELECT *from Table1");
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Can somebody give me an explanation of how the SQL server works and compared to say Access...?
This much I know:
SQL is a language used for manipulating, reading, sorting the database. Where is the SQL engine...? Is it part of the Access program...? or part of the metadata in the Database...? Are the SQL commands stored in the DB..>?
SQL Server runs much faster than Access, cuz it's designed to take advantage of Server hardware(Raid disks, 2 processors, etc) where as access is normal window app designed for client computers.
how does an access DB differ than a SQLServer DB..>?
They both can execute the commands right..? Do they share the same file structure...? Is SQL Server a application..?
Can the SQL Server used Access DB through a driver like ODBC...?
These are just some questions i have regarding DB technology.
If i'm in the wrong forum...my appologies...if i'm incorrect about anything...my appologies
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Check this
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
I have that book already actually...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
If you read first day of that book you'll notice that there is good comparsion between SQLServer and Access.SQLSever is faster than Access and better when want to write database in large scale for server and clients.
Let me give you more details:
You want to use this command:"SELECT * FROM anything WHERE something"
your database has 500,000 records,when you execute this command,Access first first return all 500,000 records to the client and then client filter
it,but SQLServer send command to server,server filter records and only return
proper records,you this is really affect on speed.(your process happend on server.)
Also Access databese size has more limitation than SQLServer .
HockeyDude wrote:
Where is the SQL engine...? Is it part of the Access program...?
I'm not sure but I don't think that is correct.
Hope that helps you
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Mazdak wrote:
You want to use this command:"SELECT * FROM anything WHERE something"
your database has 500,000 records,when you execute this command,Access first first return all 500,000 records to the client and then client filter
it,but SQLServer send command to server,server filter records and only return
proper records,you this is really affect on speed.(your process happend on server.)
I remember that much, but do Access and SQL Server has the ability to use the same DB...?
Is the Access file format the same as SQL Server...? probably not right..? So you would need a go between driver wouldn't you...?
ODBC, this was developed to solve this very problem correct..? However it seems ADO is the way to do thing now, so what I really wanted to do was.
Create a DB in Access, cuz it's all I have on my client computer. upload it to a website...but use SQLServer to access and return recordsets...? The Server would require the special SQLServer software (MySql) whatever right..?
But can these (Say i use Perl's DBI) which I think uses ODBC and MySql...??? Can scripts I write in Perl/ASP access Access DB...???
I hope I made myself clear...it's really early morning here and I'm quite tired..
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HockeyDude wrote:
The Server would require the special SQLServer software (MySql) whatever right..?
MySQL has nothing to do with Microsoft SQL Server, I thought you were asking about MS SQL Server?
You can use DBI to use any database with an ODBC driver, including MS Access. You can't use MySQL to handle Access database files.
|
|
|
|
|
Isn't MySql like SQLServer, but freeware...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
MySQL is like MS SQL Server in the same way as Linux is like Windows XP.
|
|
|
|
|
So one is super charged the other is freeeware...i know this...but unless your developing enterprise solutions, couldn't you get away with MySQL...?
SQL Server i've heard is like typical MS product $$$$
For web development...do some web hosting services already supply SqlServer on there Server...? And charge you monthly fees...? Even with this solution i'd need cheaper than that...so i'm thinkiing MySql would be best
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Good morning(or afternoon)!
HockeyDude wrote:
but do Access and SQL Server has the ability to use the same DB...?
no,but SQLServer(MS SQLServer) can import database from Access or any other type,
to SQLServer DB or any other kind like visual foxpro ,even Excel or text file.But it can not use .mdb(Access) file directly,just import and export.
I don't know if it is possible to do this in program with codes.
HockeyDude wrote:
Create a DB in Access, cuz it's all I have on my client computer. upload it to a website...but use SQLServer to access and return recordsets...? The Server would require the special SQLServer software (MySql) whatever right..?
It's not very clear for me,but I think you can't do all these things in one file.(as I said above)
HockeyDude wrote:
Can scripts I write in Perl/ASP access Access DB...???
I've never test it but I don't see any reason that they can't access Access DB.(.mdb file).
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Good enough then.
I'll have to go do some more reading when time permits and maybe come back with more questions.
Til then!!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|