Connecting to MsSql from a mac

Hello, I'm using PHP 5.4 and pdo_dblib to connect to a mssql db, but it keeps giving me a connection error:
SQLSTATE[] (null) (severity 0)
my settings are the following:
resources.db.adapter = pdo_mssql
resources.db.isDefaultAdapter = true
resources.db.params.host = host
resources.db.params.port = 1433
resources.db.params.username = user
resources.db.params.password = pwd
resources.db.params.dbname = name
resources.db.params.pdoType = dblib
i'm using zend framework 1.12
The code to connect to the db is the following:
        try{
            $db = $this->getInvokeArg('bootstrap')->getResource('db');
            $db->getConnection();
            echo "Database object created.";
        } catch(Zend_Db_Exception $e){
            echo $e->getMessage();

Hi,
Your question falls into the paid support category which requires a more in-depth level of support. Please visit the below link to see the various paid support options that are
available to better meet your needs.
http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone 
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Jun Zh - MSFT
Microsoft Online Community Support

Similar Messages

  • Cant connect w/video from my mac ichat to PC users AIM.

    When in ichat and trying to connect a video chat from my mac to a PC user using AIM, I get a communication error. On my end it often says they declined while on their end it says Timed Out. Mac to Mac seems to work just fine.
    Any Suggestions?

    Hi,
    See this Users Tip for the best info we have on this
    http://discussions.apple.com/thread.jspa?threadID=1968438
    It still does not guarantee success but is a collection of all the things that used to work.
    It does seem to have become more difficult since AIM on a PC got to version 6.5
    10:24 PM Thursday; July 29, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Cannot connect to PC from my MAC

    I've been really frusterated with this for the past few months.
    I've been trying to get my powerbook to connect to my pc for the longest time. but it just won't work!
    I used the tutorial here:
    http://forums.macrumors.com/showthread.php?t=54704
    and follow all the instructions.
    i get as far as the enter username password and workgroup. when i enter this in it always gives me an error regarding my username or password being incorrect, however i dont see how they are.
    the oddest thing is if im on my PC, if I type in my IP address of my mac (i get it from the system preferences windows sharing pane) its fine, and I can transfer files from my mac with ease, its just when doing it the other way around that I run into problems.
    If anyone can help me I would be eternally greatful! I've posted in the powerbook forum before but no one was able to help.
    I running Win XP with SP2. the firewall is off. im on a wireless network. could any of this pose a problem?
    please get back to me asap. thanks in advanced!

    turns out it was a problem with windows all along.
    To resolve this problem: on the remote computer, select Administrative Tools>Local Security Settings>Local Policies>User Rights Assignment, right-click on Access this computer from the network>Properties>Add Users or Groups, add everyone or any users you want to be able to access the computer from the network.
    thanks for everyone who tried to help. you were more useful then you could imagine.
    i knew it couldn't be my mac that was being the problem. stupid windows.

  • Connect two users from one Mac/PC to one Time Capsule.

    Hi all,
    after spending the last 1.5 hours on Google and this Community, I have found tons of possible solutions but none worked for me. Here's my setup:
    Time Capsule (2 months old) with FW 7.6.1
    TC is attached to router/modem box. As I'm using the DHCP server in my "internet" box, I have the TC connect in bridged mode.
    TC has file sharing active, secured with accounts.
    I'm using AirPort Utility 6.1 to set the TC up.
    I have two clients (for now) that I want to connect to the time, a MPB (OSX Lion) and a Windows 7 Desktop. Generally, connecting to the TC with MBP works without any problems:.
    The only problem I have with the Mac is that there doesn't seem to be a solution to connect to two accounts at the same time from one machine.
    Now here's my real problem. When trying to access TC with my Windows PC, I couldn't get it to work with just mounting a network drive. I installed Airport Utility for Windows and with this I can connect to TC, but only the account that is currently connected on the MBP.
    To summarize:
    Is there a way to connect multiple accounts at the same time, both on Windows and on OSX?
    Thanks in advance and let me know if more information is needed.
    Georg

    Waiting any Idea,
    CREATE USER data_history IDENTIFIED BY test;
    CREATE USER data_current IDENTIFIED BY test;
    CREATE USER middle_layer IDENTIFIED BY test;
    CREATE TABLE data_history.sales_order_head_h;
    CREATE TABLE data_current.sales_order_head;
    CREATE ROLE historical_data_reader;
    CREATE ROLE historical_data_loader;
    CREATE VIEW data_history.sales_order_head AS
    SELECT * FROM data_current.sales_order_head
    UNION ALL
    SELECT * FROM data_history.sales_order_head_h;
    GRANT SELECT ON data_history.sales_order_head
    TO historical_data_reader;
    GRANT INSERT, UPDATE, DELETE ON data_current.sales_order_head
    TO historical_data_loader;
    GRANT historical_data_reader TO middle_layer;
    GRANT historical_data_loader TO middle_layer;
    connect to middle_layer;
    sql> select * from sales_order_head;
    not working
    sql> insert into sales_order_head;
    not working too.
    hope you can help.
    regards,

  • Connect to MSSQL from OWB Linux.

    Hi,
    This is almost an embarrasing question to ask because I should be able to find this information but Alas! such is life.
    So here goes, I want to be able to connect from my OWB 10gR2 on Linux to Microsoft SQL Server on some windows box. I went into MY_PROJECT->Databases->Non-Oracle->SQL Server and hit create.
    I got details for a location that I filled as follows -
    User Name: username
    Password: password
    Host: Host\Instance
    Port: 1433
    Service Name: Instance
    Use Global Name: unchecked
    Schema: username
    When I test this, I get -
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from OWB_1087
    Am I missing something? Do I need to do something else? I saw this posting -
    Connect to MS SQL server from OWB on Linux platform
    but it seems dated.
    I don't know if there are easier ways to connect from OWB Linux to MSSQL Windows in the newer versions. Any help is greatly appreciated.
    Thanks.

    I recommend watching this viewlet: http://www.oracle.com/technology/products/warehouse/htdocs/sql_server_source_all/sql_server_source_all_viewlet_swf.html
    It shows how to setup connections to SQL Server. However, there is one major change. The viewlet shows how to do this on Windows and you need to do this on Linux. The only step that changes is step 1: setting up the ODBC driver. You will need to find a Linux ODBC driver and driver manager for SQL Server and get that setup. After that you can use the viewlet to setup the Heterogeneous Services.
    Bryan

  • 2 Mac Systems on 1 TC and don't see External HD connected to TC from both Mac Systems?

    I cannot see my new external hard drive from both of my MAC systems - iMac and Macbook Pro.  The iMac see's the hard drive within Airport Utility but I cannot get the laptop to see the hard drive because I want to be able to make transfers to the external hard drive without much confusion.
    I do not want the external hard to back up to my TC but only use it on my network.

    Alright... so now
    I see my other computer "iMac" in the Finders Window of the laptop
    It makes me connect to the system which is always has in the past.
    I opened the External HD up for sharing within the File Sharing under systems properties.
    If I wanted to move something from my, Say "Desktop" into the external hard drive will I continually need to log onto the iMac and move the file to the hard drive which is now available.
    I figured that the External HD would just constantly show under shared devices on my laptop at all times considering it's a shared device.
    Still not certain that I have all aspects correct.  I've even went under the "side window" of the share devices and made certain that EX HD's are checked for viewing.

  • Im trying to set up a connection to localhost from my mac but keep getting an error message: Firefox can't establish a connection to the server at localhost.

    Hi
    I'm new to working with Mamp, Dreamweaver and WordPress and am trying to work using the Firefox browser. unfortunately i keep getting the error message Firefox can't establish a connection to the server at localhost. when i type the URL http://localhost/explore_ca/blog/wp-admin I cant use Dreamweaver with WP without this is there a reason for this and how do i get around it?

    1- Is your MAMP working '''whithout errors'''(does it show you errors while executing or running and enabling)?
    2- Have you tested other browsers? Is your problem still occuring?
    3- Are you using '''proxy '''or '''VPN '''(or setted a proxy server or VPN server on your Computer)?

  • Is there a bluetooth adapter for my Samsung printer that lets me connect by bluetooth from my Mac to the printer

    I have a MacBook with OSX 10.9.5.  It prints fine to my Samsung ML2525W printer via direct USB cable.  I'd like to be able to print using bluetooth.  Is there a bluetooth adapter I can attach to my printer to send documents to the printer via Bluetooth on my computer?  The bluetooth on the laptop and my MacMini work fine for sending files between the 2 computers, just not to the printer.  I do NOT have a wireless network but rather use a Verizon Mifi Mobile Hotspot for all my Internet access from both computers, iPad, iPhone.

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"? Ones with a green checkmark are solved.

  • I have a macbook pro with a mini display port out and would like to know how to connect the video from my mac to a TV with old RCA input video, or a TV with S-video imput. How can I do this, and do I need a video converter?

    I have a MacBook Pro that I want to hook up the Mini Display Port video out to a TV with RCA video imput, or a TV with S-video iimput.
    How do I do this, and do I need a video converter?
    Dennis

    there's an adaptor for mini dvi to s-video
    a well known auction site would yield results if apple don't stock it

  • Can't connect to MSSQL database

    Hi,
    I'm very new to J2EE. I've been trying to get my JSPs to access my MSSQL database. I'm using JBoss as the application server.
    Here's what I've done:
    1. Downloaded and installed the MSSQL 2000 JDBC driver.
    2. Edited the \server\default\deploy\mssql-ds.xml file:
    <datasources>
    <local-tx-datasource>
    <jndi-name>MSSQLDS</jndi-name>
    <connection-url>jdbc:microsoft:sqlserver://server1:1433;DatabaseName=Test;User=sa;Password=passwd;SelectMethod=Cursor</connection-url>
    <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
    <DatabaseName>Test</DatabaseName>
    <user-name>sa</user-name>
    <password>passwd</password>
    <min-pool-size>100</min-pool-size>
    <max-pool-size>1000</max-pool-size>
    <blocking-timeout-millis>5000</blocking-timeout-millis>
    </local-tx-datasource>
    </datasources>
    3. I edited the "C:\jboss\bin\run.bat" file and inserted into the second line:
    "set CLASSPATH=c:\mssql_jdbc_driver\lib\mbase.jar;c:\mssql_jdbc_driver\lib\msutil.jar;c:\mssql_jdbc_driver\lib\mssqlserver.jar;"
    where C:\mssql_jdbc_driver is the folder where my *.jar files are located.
    4. I created a .jsp page like this:
    -----Start test.jsp -----------
    <%
    try {
    String sDBDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String sConnStr = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=multiplex;User=sa;Password=secret;";
    Class.forName(sDBDriver);
    java.sql.Connection conn = java.sql.DriverManager.getConnection(sConnStr);
    java.sql.Statement stmt = conn.createStatement();
    java.sql.ResultSet rs = stmt.executeQuery("select 'Multiplex' As Name");
    while (rs.next()) { %>
    <%= rs.getString("Name") %><br>
    <%}
    catch (ClassNotFoundException cnfe)
    System.err.println("Unable to load MSSQL database driver!");
    System.err.println("ClassNotFoundException: " + cnfe.getMessage());
    %>
    ------End test.jsp -----------------------
    5. But then when I run test.jsp, I get a ClassNotFoundException saying its not able to load the MSSQL driver.
    Have I missed out some configuration step? I've been searching all avenues of support for 3 days but still can't get it working. Can someone help, please?
    Thanks!

    Thanks for your replies.
    The database should be "Test", sorry.
    I find the JBoss documentation isn't very beginner-friendly. And I can't get a reply from the JBoss forums. Does anyone who has worked with JBoss know where I should define the CLASSPATH for the MSSQL jar files?
    Actually if someone could point me to step-by-step instructions on how to set up a database connection to MSSQL from JBoss in a Windows environment, I would be very very grateful...

  • Accessing my work Mac from my Mac at home . . .

    Hello folks,
    I know this might be pretty basic to many of you, but I'm still a bit unsure of myself and my knowledge of Mac networking or remote access. I'm wanting to setup my Mac at work so that I can connect to it from my Mac at home. I use a Cable modem at both work and home, and it is active 24/7.
    What I'm looking for (or hoping for) is a link to a good manual or outline on how I can achieve this. If anyone has one, please let me know. Or if it's much simplier than that even, please feel free to give me some pointers here as well.
    Thanks in advance, these forums have always been a tremendous source of help. It's nice to be a part of a community that actually works together like the Mac community. Thanks again.
    Chris Zimmerman
    PowerPC G4   Mac OS X (10.4.6)  

    Wow, thanks Darren, I had no clue it was quite that . . . simple. I'll have to give this a go tonight.
    Regarding my setup Patman, it's like this...at the office, we have PC's and Macs setup to share a cable modem for internet access. We have a Cable Modem which hooks directly into a Linksys Cable Router...that router hooks into an Asante Hub...all the PC's are linked directly into this hub...one line runs to my office where my Macs are setup...here I have a DLink Ethernet Switch that all 3 of my Macs (as well as 1 printer) hook into.
    This might not be the optimal way to do things, but it's how we are setup atm. Does this give you the information you need Patman? Let me know if there's anything more I can tell you. Thanks.
    Chris

  • How can i airplay from my mac connected through ethernet to an aple tv 2 on wifi

    Hi everyone..
    im having troubles using Airplay on my mac.. i connect my mac to the internet and home network using an ethernet connection to my router (non apple branded router) .. my apple tv 2  is connected to my home wifi network from the same router.. when i first set up my apple tv.. i was able to see the Airplay icon on itunes and it would let me Airplay media from my mac to my apple tv.. however.. it disconnects after a little while.. same thing with viewing my itunes library from apple tv.. i was able to detect my shared library from the apple tv.. i was able to play some media but then it disconnected after some time.. but now.. the Airplay icon doesnt show up in itunes anymore.. and i cant see my shared library from my apple tv neither.. ive looked around for a solution and followed the tip to turn the ipv6 off.. it worked for some time but now the problem is back..
    i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet..
    Mac OS X Lion 10.7.4
    Apple TV 2 software version 4.4.4
    Thanks in advance

    thisguy. wrote:
    ......i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet.........
    I wouldn't say that was the obvious answer at all, my Mac is connected by ethernet and 6 of my 7 Apple TV's are connected by wifi, I haven't had any of your problems. The problem is most likely on your network.
    Intermittent problems
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.
    Consistent Problems
    A frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is the service being blocked on the network. Make sure your network isn't hidden, has a unique name, that MAC address authentication is disabled, security is set to use WPA 2 Personal and that there is only one router/device acting as a DHCP server and providing NAT services.
    Make sure your router/computer allows access over the following ports
    Port
    Type
    Protocol
    Used By
    80
    TCP
    HTTP
    AirPlay
    443
    TCP
    HTTPS
    AirPlay
    554
    TCP/UDP
    RTSP
    AirPlay
    3689
    TCP
    DAAP
    iTunes/AirPlay
    5297
    TCP
    Bonjour
    5289
    TCP/UDP
    Bonjour
    5353
    TCP/UDP
    MDNS
    Bonjour/AirPlay
    49159
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    49163
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    Refer to your router manual/manufacturer for any settings that are specific to that model.
    Another frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is security software, in many cases configuring it correctly, disabling it or even uninstalling it can help, but in some cases the security software can cause problems that simply reconfiguring, disabling or uninstalling cannot reverse.
    If you are consistently unable to activate AirPlay, have tried all the steps in this article and have security software installed on your system, you might benefit from contacting its provider or participating in any online forums they run to discuss the matter with them.

  • About an hour ago, I purchased Real Racing 2 from the Mac App Store for $12.99, but since then it has not downloaded one bit, even though I have a stable wifi connection. The money has already been taken from my account as well. What should I do?

    About an hour ago, I purchased Real Racing 2 from the Mac App Store for $12.99, but since then it has not downloaded one bit, even though I have a stable wifi connection. The money has already been taken from my account as well. What should I do?

    Just to make sure, open Mac App Store and click Purchases. Can you pause the download and restart it?

  • How can I connect to a windows server from a mac book pro

    How can I connect to a windows server from a mac book pre?

    I have a Dell Power Edge T110 ii in the office that has files and software I need to access when away from the office, when I am on the road I use a mac book pro and an iPad.
    I am sorry if I am being a bit vague but this is all new to me, I have tried 3 IT guys but they can not find a way.
    Any help is greatly appeciated.

  • Firefox no longer connects to internet on my mac, and windows machines, after v18. I've tried several solutions from Mozilla support and nothing works. Firefox

    Firefox no longer connects to internet on my mac, and windows machines, after v18. I've tried several solutions from Mozilla support and nothing works. Firefox can't even connect to Mozilla for updates. Firefox just sits on the default search page and attempts to connect to websites by typing URLs, or by clicking on the links on the default search page don't work.

    You could try the following:
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version)
    * Remove Firefox from your program's list of trusted or recognized programs, then add it back. For detailed instructions, see Configure firewalls so that Firefox can access the Internet.
    Let us know if this fixed your problem!

Maybe you are looking for

  • Pdf object postMessage not working in FF 22

    Hi, After updating my FF to 22, i seen pdf object postMessage function does not working. We used adbove livecycle intraactive pdf forms to collect the data from the user. When user click the save button from the pdf, postMessage function called, but

  • Function in where clause being executed in subquery

    Oracle version 9.2.0.8 I have a query of the form select cola       ,colb       ,expensive_function(colb) as colc   from t where cola between 1 and 100This query returns 100 rows very fast. When I try to specify a where clause that uses the result of

  • 3D greyed out in photoshop cc

    Hi, I'm having a problem with the 3d options, I've looked on previous discussion where the issue was based on changing from CMYK to RGB, but this doesn't solve my issue. System Info :- Adobe Photoshop Version: 14.1.2 (14.1.2 20130923.r.427 2013/09/23

  • Script: get file name

    Hi, i'm developing a script for fireworks mx. How can i get the open document file name? Thanks

  • RSXMB_ACTIVATE_ICF_SERVICES for non-XI systems?  Anyone have code?

    Anyone have code that can take a list of SICF services and activate them, similiar to how RSXMB_ACTIVATE_ICF_SERVICES activates all the necessary services for XI? For instance OSS Note 517484 lists a lot of services that need to activated manually, a