|
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
|
|
|
|
|
HockeyDude wrote:
Can scripts I write in Perl/ASP access Access DB...???
I found it,you can
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Using ODBC...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
why not?it's one of basic drivers
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
What OS your script engine hosted? Windows or Unix?
E.g. you use IIS (Windows) as web server. You can use COM objects and work with ADO.
Regards.
|
|
|
|
|
Some other things that you may not be aware of is the ability for SQL Server to run stored procedures, that is essentially a compiled version of your favorite "Select * from Here" statement stored right on the server. Stored Procedures are really a beautiful thing if you have never used them before. They allow you to create "dynamic" tables and do joins between them. SQL Server also exposes you to the robust environment of T-SQL, it is designed to scale better when needed. Access is a great tool, don't get me wrong, however SQL Server allows so much more to the developer.
Hope some of this helps.
Nick Parker
|
|
|
|
|
Nick Parker wrote:
SQL Server to run stored procedures,
That i was aware of.
Nick Parker wrote:
They allow you to create "dynamic" tables and do joins between them.
That I didn't know..
Nick Parker wrote:
however SQL Server allows so much more to the developer.
You get what you pay for...pay for being the key...i can't afford SQLServer
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Nick Parker wrote:
They allow you to create "dynamic" tables and do joins between
I think that is possible in Access too.
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|