Perl and MSSQL connection : DBI:ODBC

Posted on 2011-10-17
Last Modified: 2012-08-13
I am using OTRS ticketing services , currently it is run on mysql database .
I am trying to shift it to MSSQL database , all the configuration is done but when I load the main page ( I get the following error : [Microsoft][ODBC SQL Server Driver][DBMSLPCN]SQL Server does not exist or access denied.

The connection string used is : $Self->{'DatabaseDSN'} = "DBI:ODBC:driver={SQL Server};Server=$Self->{DatabaseHost},1433;database=$Self->{Database}";
$Self->{'Database::Type'} = 'mssql';

Is it somethin to do with DBI:ODBC driver ? how do i install it?
Question by:winman_soft
    LVL 39

    Expert Comment

    I think you don't have a ODDBC driver and data source installed/configured for OTRS to work with SQL Server and please see more details at link below "Install OTRS using SQL Server 2008"

    Accepted Solution

    thank u.. It is workin now!!
    I had to install DBI package using " ppm install DBI " command and give the correct port number.

    Author Closing Comment


    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
    Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now