Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8585515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:05:06+00:00 2026-06-11T22:05:06+00:00

this post has been edited to reflect the findings thus far between myself and

  • 0

this post has been edited to reflect the findings thus far between myself and iamkrillin, as we have been the only two posters

I have the following VB.NET code connecting correctly, running from my PC

    Dim strConnection As String = "Server=dev.xxxxx.vmc;Database=report1;integrated security=SSPI;" & _ 
                                  "persist security info=False;Trusted_Connection=Yes;"

    Dim ObjDa As SqlDataAdapter = New SqlDataAdapter(pStrQuery, strConnection)

    Try
        Dim dsReturn As DataSet = New DataSet
        ObjDa.Fill(dsReturn)
        ObjDa.Dispose()
        Return dsReturn
    Catch ex As Exception
        Return Nothing
    End Try


I have the following PHP code running from our iSeries

$conn = array( 'host' => 'dev.xxxxx.vmc',
    'username' => 'vmc\adam',
    'password' => 'xxxxxx)',
    'dbname' => 'report1',
    'pdoType' => 'dblib' );

try {
    $db = new Zend_Db_Adapter_Pdo_Mssql($conn);
    $db->getConnection();
} catch (Zend_Db_Adapter_Exception $e) {

}

The getConnection function, is throwing an error:

SQLSTATE[] (null) (severity 0)

And when I look up this error HERE, it appears to be a bug PRE 5.2.10, and we are running 5.2.17. But, some of the other comments say it is still a bug in 5.3.


*edit


It seems that if using a domain account, windows auth must be enabled. However, it is not through our PHP. So I need to set up a database specific user for our PHP connection.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:05:07+00:00Added an answer on June 11, 2026 at 10:05 pm

    In your VB snippet, you are connecting to SQL Server, and in your PHP snippet you are connecting to MySQL. If you need to use SQL Server from PHP, look at this. If you are on a non windows platform you can try FreeTDS. Here is an example of how to get started with it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This post has been updated to reflect more thorough research. I have noticed that
(Note: This post has been edited to show specific use case. See bottom.) I
This post has been heavily edited and updated! The Intent: I am writing an
(This post has been submitted on the Yootheme forums but I don't have as
This is my first post. I know this topic has been discussed before in
I have something like this and it has been created from jQuery .append(html) <div
This post has been 'somewhat' addressed (see links at bottom of post) but not
I understand this has been discussed before but since this post in late 2010
The same question has been asked in this post , but the accepted answer
I found this post useful and important to share, so if anybody has problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.