0

I feel like a bonehead asking this question, but I have scoured the net and can't actually find a working connection string to connect Perl to SQL Server. I've checked connectinstrings website and still couldn't find anything clear. Someone here has got to know!

I'd prefer to use DBI, but would use another library if someone else has an alternative.

2
  • tizag.com/perlT/perldbiconnect.php -- Scroll down until you see 'PERL - DBI Connect' Commented Jan 23, 2015 at 1:26
  • The Tiztag Perl tutorial isn't very good (see perl-tutorial.org/rejected/tizag for details). I can't see any obvious errors on this page, but linking to it gives it a credibility that it doesn't deserve. Commented Jan 23, 2015 at 10:35

1 Answer 1

1
DBI->connect("dbi:ODBC:Driver={SQL Server};Server=192.168.1.102;UID=$user;PWD=$pass")

Also see: Connecting Perl to SQL Server

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.