PHP and SQL trouble

Hi there,
Im currently creating a login system using php and sql. At the moment i have it that when the user registers their information (i.e username,password) it gets stored in the database. The part that i am having an issue with is that when the user logs in, I want to retrive the relavant data from the database and compare it to what they have entered into the login section. I persume i have to use an sql query something like (SELECT username, password FROM Users) but not sure how to compare it to what the user has entered.
Any help you be greatly appreciated.
Thanks,
Barrie

Hi,
does it mean that you´re not using Dreamweaver, which comes with a Login User server behavior which would do all the heavy lifting and generate a correct query ? Just asking, because you posted in the Dreamweaver Application Development forum

Similar Messages

  • PHP and SQL Server with DW

    Hi,
    I have a problem with DW. I´d like to develop a site
    using PHP and SQL Server. Anyone knows if is there a extension to
    do this kind connection inside DW?
    I´ve tried to use the string that DW generates to
    connect with MySql and change it to connect with SQL Server,
    however it doesn´t work.
    I´ve already found a extension that do this, but it
    doesn´t work with DW CS3.
    Anyone can help me?
    Thank you,
    Luciano Fernandes
    PS: I have a original DW CS3

    "lucianopopo" <[email protected]> wrote in
    message
    news:ff7k9h$euc$[email protected]..
    > Hi,
    >
    > I have a problem with DW. I?d like to develop a site
    using PHP and SQL
    > Server.
    > Anyone knows if is there a extension to do this kind
    connection inside DW?
    >
    > I?ve tried to use the string that DW generates to
    connect with MySql and
    > change it to connect with SQL Server, however it doesn?t
    work.
    > I?ve already found a extension that do this, but it
    doesn?t work with DW
    > CS3.
    >
    > Anyone can help me?
    >
    > Thank you,
    > Luciano Fernandes
    >
    >
    > PS: I have a original DW CS3
    There used to be the PHAkt servermodel supporting multiple
    databases in PHP
    with Dreamweaver,
    unfortunately Adobe dropped the product after acquiring the
    company that
    produced it before the release of CS3, so
    it's not compatible with Dreamweaver CS3.
    Previous versions are available at
    http://openphakt.sourceforge.net,
    you can
    help development of a CS3 compatible version by posting bug
    reports for the
    error messages you encounter.
    Joris van Lier

  • Help with Flex - PHP - and SQL Server

    Good afternoon,
    I have been working on this problem for over a week and am at
    my wit's end. I am trying to create an application that will allow
    me and my fellow statisticians to share code easily. The
    technologies at my disposal are Flex, PHP and SQL Server 2005. The
    web server is IIS. I have downloaded and installed the PHP driver
    for SQL Server 2005 and am able to query the database and generate
    XML. The problem I'm having is that I can't return the XML from PHP
    to Flex.
    If I execute the php code in a web browser and view the
    source, it looks like XML. I can then cut and paste the exact same
    code into an xml file and read it in from the harddisk and the tree
    will populate. Can anyone please help me? I don't have flex builder
    so I it's hard for me to use trace and view what is going on.
    Thanks in advance,
    Eric Graves

    Thanks for the suggestion. I have tried every permutation of
    e4x path notation I can think of. You're right, you're not supposed
    to need the root level as that's supposed to be returned in the
    result. So you should only need to reference first level after the
    root. When I do this and launch the .SWF I get a completely empty
    tree.
    I think the problem lies somewhere in my understanding of
    what format Flex needs returned from a HTTPRequest. It's my
    understanding that it just needs to be XML. As far as I can tell,
    that's what I'm sending it. On the PHP side, does it have to be
    cast a special way? Everything I've seen just shows people using
    ECHO to output the XML data.

  • Http service component working php and sql data

    hello i'm using that componet. i have trouble. now i want in my home page
    i have 2 title from my localhost/phpmyadin. and i want when click title 1 it will link to a detail.mxml  and display content of title 1
    and when click title 2 it will display content of title 2 in detail.xml
    i don't know transmission parameters . Can u help me please. I'm need it

    These links are good for showing how to use Flex + PHP + HTTPService + MySQL:
    http://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databas e
    If this post answers your question or helps, please mark it as such.
    http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-json
    http://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Home made PHP and SQL Calender

    I'm making a PHP calender which will output the contents of a
    database via SQL. At the moment ive got heading (just a quick over
    view of whats happening), event (more detailed info not shown
    during the standard calender view), importance (this will simply be
    a cel colour which I can do very easily without help) and date
    (day, month, year) as my fields. I'm trying to figure a way of
    putting something in each field and getting it to come out on the
    appropriate date on my finished calender.
    It's VERY early stages so SQL development hasn't begun yet, I
    wan't to do this completely by hand (I'm aware theres calender PHP
    scripts already). I was thinking of making a database containing
    each month, day and year and if theres something in the specific
    fields then outputting whatever I've wrote in it, however this will
    make the database HUGE! Whats the simplist and easiest way to do
    this.
    P.S I also want to be able to have multiple entries for one
    date

    "slowpoke115" <[email protected]> wrote in
    message
    news:fa99a0$asi$[email protected]..
    > I'm making a PHP calender which will output the contents
    of a database via
    > SQL.
    > At the moment ive got heading (just a quick over view of
    whats happening),
    > event (more detailed info not shown during the standard
    calender view),
    > importance (this will simply be a cel colour which I can
    do very easily
    > without
    > help) and date (day, month, year) as my fields. I'm
    trying to figure a way
    > of
    > putting something in each field and getting it to come
    out on the
    > appropriate
    > date on my finished calender.
    >
    > It's VERY early stages so SQL development hasn't begun
    yet, I wan't to do
    > this
    > completely by hand (I'm aware theres calender PHP
    scripts already). I was
    > thinking of making a database containing each month, day
    and year and if
    > theres
    > something in the specific fields then outputting
    whatever I've wrote in
    > it,
    > however this will make the database HUGE! Whats the
    simplist and easiest
    > way to
    > do this.
    >
    > P.S I also want to be able to have multiple entries for
    one date
    Did a calendar extension for ASP once, for data storage it
    used a simple sql
    table containing a EventDate and EventTitle column, the
    display logic was
    something like below
    retrieve Events WHERE Date >= first day of month AND Date
    <= last day of
    month
    for each Week in the Month
    begin table row
    for each day in the Week
    begin table cell
    for each event in selected Events
    If(EventDate == day) Print EventTitle
    next event
    end table cell
    next day
    end table row
    next Week
    I hope you get an idea about how to avoid creating a row for
    each and every
    date
    Joris

  • PHP and SQL

    Is it possible to use php to display records from an SQL (not
    MySQL) database hosted on a separate server? I don't need how-to
    details at this point, just whether or not it is possible.
    Thanks

    BrianArena wrote:
    > So is there a difference between Microsoft SQL and
    (non-Microsoft) SQL. The boss didn't mention "Microsoft" SQL, just
    SQL.
    Microsoft SQL Server is just one of many database systems
    that use SQL
    (Structured Query Language), the standard language for
    communication
    with a relational database. SQL is a common standard used by
    MySQL,
    PostgreSQL, Access, Oracle, Microsoft SQL Server, and many
    other
    database systems.
    Unfortunately, although SQL is a standard, each database
    system uses its
    own dialect. The basic commands are the same, but the finer
    details
    differ according to the database system.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • A difficult problem with php code and sql code

    it's good place to visit(Paged Result Sets with PHP and Oracle)
    http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_paged.html
    maybe below part php code could not be used in above address's php code.
    if((isset($l_company) and $l_company != $rows['COMPANY']) or empty($stmt) and empty($total_pages) ) {
    echo "<tr bgcolor='#CCFFCC'>";
    echo "<td colspan= 3 align='center'>".$l_company."</td>";
    echo "<td >".$totalcomany." </td>";
    $totalcomany = 0;
    echo "<td > </td>";
    echo "</tr>";
    $l_company = $rows['COMPANY'];
    because the same company in one page could calculate sum while if
    the same company in two pages could not do that.
    and what do you think of ?
    thanks !

    Hi,
    this is because your sql-statement selects only the rows, you need to build this one page.
    Neither php nor the given result from your query knows about data wich will be part of the result of another page.
    Greetings from Hamburg
    Thorsten Körner

  • I have looked through the video tutorials for CS6 and cant find any help for PHP using SQL.

    Where is a good place that I can go to learn more about using dreamweaver and different languages than html.  Is there a service that adobe offers that I could buy that would take me from rookie all the way to professional with a good easy to use structure such as adobe tv but more advanced and thorough?  I am trying to build a website with a log in page and registration.  I have the HTML part down well enough but need help writing the php scripts and using SQL to store the user info

    I'm moving this to the main Dreamweaver support forum.
    In answer to your question, you need to be aware that the PHP server behaviors in Dreamweaver CS6 use the original MySQL functions that are scheduled to be removed from a future version of PHP. The server behaviors have already been removed from Dreamweaver CC. If you are planning to create a site using PHP and MySQL, do not rely on Dreamweaver's server behaviors. You must use either MySQLi (MySQL Improved) or PDO (PHP Data Objects) instead.
    If you're looking for video tutorials, you might be interested in the courses I have created for lynda.com. As a beginner, a good place to start would be PHP for Web Designers or Introducing PHP (there are several sample videos that you can watch for free on my website). Both courses were recorded on Dreamweaver (PHP for Web Designers on Dreamweaver CS6, Introducing PHP on Dreamweaver CS5.5). PHP for Web Designers shows how to connect to MySQL with MySQLi. You need a subscription to lynda.com to watch the complete courses, but you can get a seven-day free trial by following the links on my website.
    If you don't want to commit to a subscription service, I have also written a book called PHP Solutions, which covers MySQLi and PDO in depth. It also shows how to build a login system. At the moment, the second edition is available, but a revised third edition is due to go on sale in December.
    There are also a lot of free resources on the web that you can find. The important thing to beware of is that a lot of old material relies on the original MySQL functions. Whichever resource you use, make sure it shows how to use MySQLi or PDO.

  • Linked Server error: Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON' between sql server 2005 32 bit and sql server 2012 64 bit

    Hi All,
    Here the linked server is created between sql server 2012 64 bit and sql server 2005 32 bit. I am getting the below error  when i try to access linked server from third server. I have created linked from Instance 1 to Instance 2. When i access it from
    instance 3 i am getting the below error. SPN setting has been done between these 2 servers. Also the option 'Trust the delegate' is enabled for the both the service account. 
    'Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON' 
    Appreciate your quick response. 
    Vikas.M.S

    Hello,
    Please read the following resources:
    http://www.databasejournal.com/features/mssql/article.php/3696506/Setting-Up-Delegation-for-Linked-Servers.htm
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ea26de43-4c6b-4991-86d7-e1578f107c92/linked-server-login-failed-for-user-nt-authorityanonymous-logon?forum=sqldataaccess
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • PHP and Oracle Workflow

    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

    All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

  • PHP and NOT MySQL?

    Can I use ADDT with PHP and a non-MySQL database, like Microsoft SQL
    Server 2005 or Oracle? I've always used MySQL, but have a client who
    requires MS-SQL or Oracle.
    Alec
    Adobe Community Expert

    Hi Alec,
    ADDT is MySQL only -- if I were you, I´d switch back to DW 8 & Kollection 3.7.1 and use
    (in case you still have it somewhere) the PHAkt extension & server model, because this one supports MsSQL and Oracle.
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • PHP and Apex

    I like PHP and I like Apex. Is there any chance to see an interaction between the two? I know that it
    is possible to link PHP with the Apache server which runs Apex but I am asking for the field addressing
    and exchanging the variables between PHP code and PL/SQL code. That would really turn Apex into a
    killer app.
    Mladen Gogala

    Chris, I was thinking about addressing the Apex form fields through PHP. The application in question has to upload some files to Oracle database. The problem is that I need to fetch it first from another machine. That can be easily done with PHP and I would like to be able to address the form fields in Apex from PHP. As for another book, yes, I would like to write one. I've already been putting some ideas on the paper but it is still at the very beginning.

  • Hetrogeneoues connection between Oracle and SQL server

    Hi ,
    I am having Issues in Making Heterogeneous  DB link between Oracle Xe and sql server .
    Here is the scenario-
    My Oracle and ms SQL 2003 are running on same machine(windows 2003) ,
    I have followed this link and reached till 5 but I am not able to tnsping the SQLSERVER DNS entry .
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    Below are my lintener and tnsfiles
    LISTENER.ORA
    ===========================================================================================================================================================
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
           (ENVS = "EXTPROC_DLLS=ONLY:C:\oraclexe\app\oracle\product\11.2.0\server\bin\OraClr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    LISTENERSQL =
    (ADDRESS_LIST=
          (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
          (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    SID_LIST_LISTENERSQL=
      (SID_LIST=
          (SID_DESC =
           (SID_NAME = SQLSRVRDBLNK)
           (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
           (PROGRAM = hsodbc)
    ===========================================================================================================================================================
    TNSNAMES.ORA
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = testenviroment)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSRVRDBLNK  =
      (DESCRIPTION=
    (ADDRESS=  (PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=SQLSRVRDBLNK)
      (HS=OK)
    ========================================================================================================================================================
    Listner Status
    C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN>lsnrctl status LISTENERSQL
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 19-JUL-2013 13:15:59
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
    STATUS of the LISTENER
    Alias                     LISTENERSQL
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date                19-JUL-2013 12:17:39
    Uptime                    0 days 0 hr. 58 min. 24 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listenersql\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "SQLSRVRDBLNK" has 1 instance(s).
      Instance "SQLSRVRDBLNK", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    =========================================================================================================================================================
    Now If I try to Tnsping SQL heterogeneous connection , i get
    C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN>tnsping SQLSRVRDBLNK
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 19-JUL-2013 13:17:47
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION=
    TNS-12533: TNS:illegal ADDRESS parameters
    Need Help , please suggest
    Thanks,
    Manish

    Hi ,
    Thanks for the update I have changed the Listener as suggested , now my Listener File is
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
           (SID_NAME = SQLSRVRDBLNK)
           (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
           (PROGRAM = hsodbc)
           (ENVS = "EXTPROC_DLLS=ONLY:C:\oraclexe\app\oracle\product\11.2.0\server\bin\OraClr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST=
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.146)(PORT = 1521))
          (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
          (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522)))
    ========================================================================================================================
    and tns entry 
    SQLSRVRDBLNK  =
      (DESCRIPTION=
    (ADDRESS=  (PROTOCOL= TCP)(HOST=192.168.60.146)(PORT=1522))
    (CONNECT_DATA=(SID=SQLSRVRDBLNK)
      (HS=OK)
    ========================================================================================================================
    Restarted the listener
    C:\Documents and Settings\Administrator>lsnrctl start LISTENER
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 20-JUL-2013 12:27:38
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.146)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date                20-JUL-2013 12:27:44
    Uptime                    0 days 0 hr. 0 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.146)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "SQLSRVRDBLNK" has 1 instance(s).
      Instance "SQLSRVRDBLNK", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    ========================================================================================================================
    Still Getting the same Error
    C:\Documents and Settings\Administrator>tnsping SQLSRVRDBLNK
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 20-JUL-2013 12:27:52
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION=
    TNS-12533: TNS:illegal ADDRESS parameters
    C:\Documents and Settings\Administrator>
    ========================================================================================================================
    Do we need to change any thing in sqlnet.ora file for heterogeneous connection?
    Thanks ,
    Manish

  • How to use PHP with SQL?

    how to use sql in php and output a new ERP table contains every order_number, every order_quantity and so on then ouput sum of company and then sum of area
    and so on.
    now i only know a little how to use sql in php and you can give some examples of this?

    This sounds like a nice little homework exercise.
    Check the PHP FAQs for Oracle/PHP help
    http://www.oracle.com/technology/tech/php/htdocs/php_faq.html
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html
    For SQL help, check http://asktom.oracle.com/
    -- cj

  • How to create database link between oracle and SQL Server

    Hello Everyone,
    Here i have Oracle Database 9i and SQL Server 2005 databases.
    I have some tables in sql server db and i want to access from Oracle.
    How to create a database link between these two servers
    Thanks,

    Thanks for Everyone,
    I was struggle with this almost 10 days....
    I created Database link from Oracle to SQL Server
    Now it is fine.........
    Here i am giving my servers configuration and proceedure how i created the db link...@
    Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
    Machine (1)
    DB Version : Oracle 9.2.0.7.0
    Operating System : HP-UX Itanuim 64 11.23
    IP : 192.168.0.31
    Host : abcdbt
    Machine (2)
    Version : SQL Server 2005
    Operating System : Windows server 2003 x86
    IP : 192.168.0.175
    Host : SQLDEV1
    User/PW : sa/abc@123! (Connect to database)
    Database : SQLTEST (exsisting)
    Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
    Prerequisites in Machine (2):
    a)     Oracle 10g software
    b)     User account to access SQL Server database (sa/abc@123!)
    c)     Existing SQL Server Database (SQLTEST)
    d) Tables (testing purpose) (T)
    Steps:
    1)     Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
    2)     Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
    Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
    You can follow this link also.....
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    I created DSN as
    DSN name : SQLTEST
    User : SA/abc@123! (Existing user account)
    Host : 192.168.0.175 (machine 2)
    Already I have 1 database in SQL Server with the name SQLTEST
    You can create DSN with different name also (not same as db name also)
    3)     Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
    Create init<DSN NAME> file
    Ex: initSQLTEST
    Copy inithsodbc to initSQLTEST
    And edit
    initSQLTEST file
    HS_FDS_CONNECT_INFO = SQLTEST    <DSN NAME>*
    HS_FDS_TRACE_LEVEL = OFF*
    save the file....@
    4)     Configure Listener.ora *(Machine 2)*
    LISTENER_NEW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    SID_LIST_LISTENER_NEW =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc))
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc) )
    :> lsnrctl start LISTENER_NEW
    5)     Configure tnsname.ora *(Machine 2)*
    SQLTEST11 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SQLTEST))
    (HS=OK)
    :> tnsping SQLTEST11
    If No errors then conti….
    6)     Configure a file *(Machine 1)*
    Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
    Create a file
    $ vi TEST_abcdbt_ifile.ora
    something=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
    (CONNECT_DATA=
    (SID=SQLTEST))
    (HS=OK)
    $ tnsping something
    $ sqlplus system/manager
    Your connected to Oracle database *(machine 1)*
    create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
    select * from t@xyz;10 rows selected.
    Thanks,
    Edited by: ram5424 on Feb 10, 2010 7:24 PM

Maybe you are looking for

  • How can I see the selected tags in the tag bar clearly

    How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)

  • My song list is out of order (iPhone 5)

    So, yesterday I noticed my iPhone 5 songs were scrambed alphabetically.  I don't know what caused it besides my changing of a setting in Music, "Group by Album Artist", which shouldn't have affected it.  I see two possible solutions: 1. Syncing it to

  • How do i get the contact name to show in my messages

    I updated to the new Iphone 4 IOS 5 software and now when i get a message from anyone with iMessage it shows their number rather than their name and I want to know how to change it so I see their name and not their number.

  • How To Store XML Fragments Using Functions Such As XMLElement

    Hi Not sure what I am missing. I wish to store XML fragments in variables so can pass around and concatenate with other fragments to make final XML document. Even before attempting to concatenate XML fragments, I am struggling to store any XML fragme

  • Making an entire website out of Flash

    Hi I'm new at Flash CS3 and I'm trying to make an entire website out of Flash. This is the basic concept of what I am trying to do http://www.davidmurrayweddings.com/home.php. This person's website is kind of like what I want to do with the menu butt