Other Added
#1 in Business Subscribe Email Print

You are here: Home > Computers and Technology > Personal Tech > Various Connection Strings to Connect to an Access DB

Tags

  • happen
  • pointed
  • change
  • access driver
  • square brackes
  • could easily

  • Links

  • Natural Health Remedies for Menopause
  • Is Perception Reality?
  • A Thankful Thanksgiving
  • Other Added - Various Connection Strings to Connect to an Access DB

    Redirect Web Visitors By Country Using ASP and COM Technology
    There are times when it is useful to redirect a visitor to different default web page based on the visitor's country of origin. One practical usage is to redirect visitor to web page with the language recognized by the visitor. This article shows y
    he database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have man
    Metal Working Lubricants - A History of Industrial Lubrication
    Lubricants, fluids and coolants regularly used in the metal working industry are highly specialised and designed to perform specific tasks. In addition to metal forming, metal working includes a fairly broad range of tasks – including polishing, c
    If you want to call a database from within an asp page the that is to tell your asp page where your database is. Here are a few samples of database connection strings that could be used to help you connect to your database I have also indicated where the code starts and finishes. I have used [] as the normal < > makes it impossible to see the code in the finished article as the page thinks it is real code so does not display it. If you want to use any of the code remember to change the square brackes [] to <>

    OLE DB Method for SQL

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=sqlservername;UID=username;PWD=password;DATABASE=dbname.mdb " %]
    'code finish

    DSN-Less connection for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:yourdatabase.mdb" %]
    'code finish

    OLE DB Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:yourdatabase.mdb" %]
    'code finish

    File DSN Connection Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "FILEDSN=AccessDSN" %]
    'code finish

    Don't forget when you download an application this info should be included. Remember to RENAME the database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have many

    Noise Cancelling Headphones: Making Travel Bearable
    Noise cancelling headphones are fast becoming the must have item of the year. Both music lovers and travelers alike are beginning to realize the benefits of noise cancelling devices. In fact this new product is taking the audio industry by storm an
    article as the page thinks it is real code so does not display it. If you want to use any of the code remember to change the square brackes [] to <>

    OLE DB Method for SQL

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "PROVIDER=SQLOLEDB;DATA SOURCE=sqlservername;UID=username;PWD=password;DATABASE=dbname.mdb " %]
    'code finish

    DSN-Less connection for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:yourdatabase.mdb" %]
    'code finish

    OLE DB Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:yourdatabase.mdb" %]
    'code finish

    File DSN Connection Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "FILEDSN=AccessDSN" %]
    'code finish

    Don't forget when you download an application this info should be included. Remember to RENAME the database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have man

    More Frequent Repayments Could Reduce the Cost of your Mortgage
    A few experts call this eating the elephant one bite at a time. Creating the switch to fortnightly repayments suggests that your ‘bites’ are small affordable reimbursements that can be achieved and participate to completing something much bigger, i
    e.mdb " %]
    'code finish

    DSN-Less connection for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:yourdatabase.mdb" %]
    'code finish

    OLE DB Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:yourdatabase.mdb" %]
    'code finish

    File DSN Connection Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "FILEDSN=AccessDSN" %]
    'code finish

    Don't forget when you download an application this info should be included. Remember to RENAME the database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have man

    Forex Trading Strategy – Don't Work Hard Work Smart 3 Profit Tips
    Many traders don’t win because they try to hard with their forex strategy, however there is no correlation between the effort you make and the profits you earn.Let’s look how to work less on a forex trading strategy, work smart and make bigg
    PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=c:yourdatabase.mdb" %]
    'code finish

    File DSN Connection Method for Access

    'code start
    [% set cnn = server.createobject("ADODB.Connection") cnn.open "FILEDSN=AccessDSN" %]
    'code finish

    Don't forget when you download an application this info should be included. Remember to RENAME the database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have man

    Work at Home Jobs - Are they all Scams?
    The advent and ease of use of the Internet have brought work at home jobs into a whole new era. Unfortunately, just like in times past, work at home job scams have come right along with legitimate work. If you're looking for work at home jobs onlin
    he database as others can download the application from where you did and see what the default name is if your page is live ie on the web and you have not renamed the database they could easily download your database and add or change information contained in the database. I had this happen a few years ago and all the links pointed to porn sites luckily I did not have many visitors in those days. So remember change the database name and possibly the directory that the database is in.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.otheradded.com/article/176805/otheradded-Various-Connection-Strings-to-Connect-to-an-Access-DB.html">Various Connection Strings to Connect to an Access DB</a>

    BB link (for phorums):
    [url=http://www.otheradded.com/article/176805/otheradded-Various-Connection-Strings-to-Connect-to-an-Access-DB.html]Various Connection Strings to Connect to an Access DB[/url]

    Related Articles:

    8 Resume Editing Tips

    Article Marketing - Perfect for Generating Targeted Traffic in No Time to Brand New Websites

    What Apple Could Learn from Microsoft: Front Row Versus Windows Media Center

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com