Open Database Connectivity

Odbc or open database connectivity is an open wellknown utility programming interface used for getting access to hetrogenous datasources. Im...

Odbc or open database connectivity is an open wellknown utility programming interface used for getting access to hetrogenous datasources.

Imagine you have written several personal home page packages which makes a connection to an oracle database. For some purpose now you've got determined to use mysql as opposed to oracle. Supposing you've got used a proprietary connection to oracle, then it'd take quite a few coding attempt to alter every of the Hypertext Preprocessor applications to make it connect to mysql as it already has join strings to oracle.

Now odbc presents seamless open database connectivity the use of easy apis to an expansion of statistics assets along with mysql, ms-get right of entry to, mssql, oracle etc.,one has to create a odbc connection for the precise datasource. This may be done using the odbc conversation container which is available from the manipulate panel. One requires a odbc driver to be set up thru dynamic link libraries. There are three types of dsns (facts supply names), namely person dsn, gadget dsn and document dsn.

After making sure that the driver required to hook up with a records supply is gift one wishes to feature the facts source via manually including a statistics supply from the odbc conversation box within the manipulate panel. After adding a database one has to configure it. The method to configure a database varies from one database to another. For instance it's miles special for oracle than ms-get admission to as oracle has a layer of tns (transparent community substrate). In the case of oracle the tns carrier name is mandatory to create a odbc connection between consumer and server. Inside the case of microsoft access one has to just specify the network location of the get entry to database and the name of the database. The odbc supervisor accessible from the manage panel will contend with these types of problems whilst attempting to create a dsn call.

Here is an example of a personal home page application connecting to a mysql database thru a dsn named as "testdsn".

$conn=odbc_connect('testdsn','','');

$sq.="pick * from worker";

$cursor =odbc_exec($conn,$sq.)

One might also join a php software to a database using a dsnless connection. The drawback of the use of a dsn based totally join string in a server - customer system is that one requires to configure the dsn or a couple of dsns being used in the server facet scripts( such as php) on patron computer systems that or a couple of client computers. This is because when a client laptop encounters an odbc string in a Hypertext Preprocessor application the dsn string needs to be configured within the nearby patron. This could no longer be viable to do whilst there are quite a few customers using such programs. In such cases one makes use of dsn less connections where the server's ip address /database name, person identification and password are at once referred to in the join string.

COMMENTS

BLOGGER

Comments

Name

Abigail Ratchford,1,Angelina Jolie,1,Business,35,Fashion,4,Jojo Babie,1,Kate Upton,1,Katelyn Runck,1,Kendall Jenner,1,Kristen Strout,1,Megan Fox,1,Model And Actress,4,Social Media Models,4,Technology,25,
ltr
item
The World's Top Fashion And Business Trends With Top Fitness Models: Open Database Connectivity
Open Database Connectivity
The World's Top Fashion And Business Trends With Top Fitness Models
https://madamtalashjan.blogspot.com/2017/06/open-database-connectivity.html
https://madamtalashjan.blogspot.com/
https://madamtalashjan.blogspot.com/
https://madamtalashjan.blogspot.com/2017/06/open-database-connectivity.html
true
7565718786165674587
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy