473,382 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to fix "Data source name not found" error when connecting to MS SQL in Perl?

147 100+
Hi,

In ODBC, i given data source name and the test connection is also successful.


But i don't know, why i am facing this error
[Thu Feb 10 12:35:09 2011] [error] [client 127.0.0.1] DBI connect('wwwdsn','webid',...) failed: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL-IM002) at C:/Program Files/Apache Group/Apache2/cgi-bin/auth/studpass.cgi line 20, referer: http://localhost/student.html
[Thu Feb 10 12:35:09 2011] [error] [client 127.0.0.1] Can not connect: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL-IM002), referer: http://localhost/student.html
Feb 10 '11 #1
4 6685
numberwhun
3,509 Expert Mod 2GB
When you are using a database, you need to ensure that the correct DBD driver is installed and that you reference it in your code. This is probably the one you want.

As for the data source, you should probably examine the DBI documentation and ensure you are referencing everything correctly. If it cannot find the data source then you possibly referenced something incorrectly.

Regards,

Jeff
Feb 10 '11 #2
santhanalakshmi
147 100+
Hi,
I can't get from this documentation. Please give me some other solution.Thanks
Feb 10 '11 #3
numberwhun
3,509 Expert Mod 2GB
You cannot get what from the documentation? You have to install the CPAN module that I gave you the link to. Without it, you cannot use DBI on an ODBC database. The documentation won't tell you how to install it, just use it.

Regards,

Jeff
Feb 10 '11 #4
numberwhun
3,509 Expert Mod 2GB
You cannot get what from the documentation? You have to install the CPAN module that I gave you the link to. Without it, you cannot use DBI on an ODBC database. The documentation won't tell you how to install it, just use it.

Regards,

Jeff
Feb 10 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Pat Deegan | last post by:
Greetings, I've been having issues while debugging programs. The problems only appear when using the '-d' switch and I get the impression it has to do with UTF8 and regex matching but I don't...
4
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to...
5
by: Michael | last post by:
Hello, I am just starting out with DB2 and have come across some problems with the perl DB2 DBI driver that I'd like to discuss and perhaps find answers for. First is that the driver seems to be...
4
by: Ignoramus6539 | last post by:
There were some strange requests to my server asking for config.php file (which I do not have in the requested location). I did some investigation. Seems to be a virus written in perl,...
2
by: vimalgp | last post by:
how to connect perl with mysql if I am using localhost as server
1
by: incd | last post by:
Hello, I started out learning Perl today, but strict mode is just *weird* and not usefull? Why should I use it? What makes $Username different than the other variables? I was wondering, why I...
1
by: megaman1 | last post by:
I’m trying to connect with perl DBD::Oracle on Windows to Oracle DB (Linux). I compiled the Oracle.dll using the commands “perl Makefile.pl” “nmake” and “nmake install”, but when I try to connect...
0
by: Rebles | last post by:
I'm writing a PERL script to access and insert rows into a Microsoft SQL. i'm using MS SQL Server Management Studio Express (2005) to architect tables and queries. I've inserted two records into...
1
by: Rebles | last post by:
Hi, I just posted this in the MS SQL Section, but maybe my problem is rooted in Perl, so it's more appropriate to post here instead (sorry for the double post) I'm writing a PERL script to...
11
by: bthalapathi | last post by:
I have written a script to connect the mysql db #!/usr/bin/perl -w use DBI; #definition of variables $db="MYTEST"; $host="localhost"; $user="root"; $password="rootpass";
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.