SQL Join does not join

Hi everyone,
I have a little issue with an SQL statement. I have found a problem to my query and it's just because I want to understand that I post...
i would like to transform this query to the same using ANSI syntax (outer joins) but I don't find the solution.
SELECT pa.user_id,
       pa.nom_complet_np,
       pa.organisation,
       pa.directory,
       group_2.i_supergroups_names
FROM pa pa
     INNER JOIN user user ON (pa.user_id = user.user_name)
     LEFT OUTER JOIN group group_r_1 ON (group_r_1.users_names = user.user_name)
     INNER JOIN group group_2 ON (group_2.object_id = group_r_1.object_id
                                AND group_2.i_supergroups_names = 'profile')
WHERE directory = 'MAIN'
  AND user.usertate = 0
ORDER BY user_id;The previous query does not return the correct value.
SELECT pa.user_id,
       pa.nom_complet_np,
       pa.organisation,
       pa.directory,
       (SELECT DISTINCT gr2.i_supergroups_names as group_name
FROM group gr1
     INNER JOIN group gr2 ON (gr2.object_id = gr1.object_id
                                            AND gr2.i_supergroups_names is not NULL)
WHERE gr1.users_names = user.user_name
  AND gr2.i_supergroups_names = 'profile')     
FROM hermcomp_ref.pa pa
     INNER JOIN user user ON (pa.user_id = user.user_name)
WHERE DG = 'MAIN'
  AND user.usertate = 0
ORDER BY user_id;But this one, does. But it's the same one using a SELECT instead of a JOIN... So I'm a little confused and I don't understand! Can anyone tell me where I'm wrong?
Thanks,

user13117585 wrote:
Thanks Sven, but can you tell me what is the differences between the 2 queries I did. They should be the same. No?No.
Didn't you notice that yourself?
user13117585 wrote:
The previous query does not return the correct value.
But this one, does. That proves they are not equivalent.
The query that produces the results you want does the self-join on group first, then the results are incoprporated into the other results as a scalar sub-query in the SELECT clause. Nothing that goes on in the SELECT clause can change the number of rows in the result set.
The query that does not get the results you want does an outer-join with one copy of group, and then does an inner join with the other copy of group. An inner join can change the number of rows in the result set.
Whether you do the inner join or the outer join first does matter, just like it matters whether you do the addition or the multiplication first in
2 + 1 * 0 
By the way, GROUP and USER and not good names for tables. Make up names that are not already keywords in Oracle, or built-in functions. Names that end in "_tbl" (e.g., group_tbl and user_tbl) should be okay.

Similar Messages

  • Connection failed: SQLState:'01000' SQL Server Error:67 [Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). Connection failed: SQLState:'08001' SQL Server Error:17 [Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist o

    Help,
    setup a new sql server 2012 on a windows 2012r2 server to replace old sql server 2005 on an old windows server 2003 machine.  When i test the ODBC connection locally on the server it works fine, however when i try to connect via windows 7 client machine
    i get the following error:
    Connection failed:
    SQLState:'01000'
    SQL Server Error:67
    [Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
    (Connect()).
    Connection failed:
    SQLState:'08001'
    SQL Server Error:17
    [Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied
    I think it must be a permissions thing, I've turned off the firewall for now and still no difference, 've also made sure remote connection is enabled.  I can connect to the other sql server in studio manager on the new machine however, i can't go do
    the same in the old server, says:
    cannot connect to hbfsqlpro1\hbfsqlpro1
    Additonal information a network related or instance specifc error occured while establising a connection to SQL server.  The server was not found or was not accessible.  Verify that the instance name is correct and that SQL server is configured to
    allow remote connections. (provider:SQL Network Interfaces, error 26 - error locationg server/instance specified) (Microsoft SQL server)
    the instance is def correct, as that is what i use to connect locally on the new machine and what it comes up on the studio manager on the new machine.  STarting to pull my hair out somewhat, i'm sure it's something really simple! 

    Hello,
    You are trying to connect to a named instance. Make sure the SQL Server Browser service is started on the SQL Server computer.
    Make sure TCP/IP is enabled.
    http://msdn.microsoft.com/en-us/library/ms191294(v=sql.110).aspx
    Try to disable Windows Firewall or security software on both, SQL Server instance and client computer.
    Test basic connectivity too. Try to ping from the client computer to the SQL Server computer.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Query - The number of columns specified in "SQL Query" does not match t

    I am creating new UDM for tablespace alert, below is my query,however its failing with error
    SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
    I selected Metric type is number
    SQL Query Format : Two columns
    Query:
    SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
    used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    Any clues why i am getting error.

    SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
    2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
    3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
    4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
    TABLESPACE_NAME USED_PCT
    MGMT_TABLESPACE .82
    SYSAUX 1.52
    UNDOTBS1 .32
    RMAN .02
    CORRUPT_TS 10.63
    USERS 0
    SYSTEM 2.26
    MGMT_ECM_DEPOT_TS .04
    MGMT_AD4J_TS 0

  • Can't Create a Data Source - Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi there,
    I am having a serious issue with The Power BI Data Management Gateway which I am hoping that someone can help me with.
    Basically I am setting a connection between a Power BI demo site and a SQL 2012 Database based on Azure. The Data Management Gateway and is up and running, and Power BI has managed to connect to it successfuly.
    By following the tutorials at
    here I was able to successful create my Data Connection Gateway with a self-signed certificate.
    However, when trying to create the data source I come into problems. The Data Source Manager manages to successfully resolve the hostname, as per the screenshot below:
    Bear in mind that I exposed the require ports in Azure as endpoints and I managed to modify my hosts file on my local machine so I could access the SQL server hosted in Azure using its internal name -- otherwise I would not be able to get this far.
    However the creation of the data source also fails when trying to created it whilst logged in the SQL server in question:
    The Data Source Manager returns the error when using the Microsoft OLE DB Provider for SQL Server:
    Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
    I tried using the SQL Server Native Client 11.0 instead but I also get an error. This time the error is:
    Failed to test connection. Login timeout expiredA network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.Named Pipes Provider: Could not open a connection to SQL Server [53]. 
    Some considerations
    If I provide an invalid username/password, the Data Source Manager does say that the username and password is incorrect.
    Firewall is turned off in the SQL Server (either way, this error also happens if I try top use the Data Source Manager whilst logged in the SQL Server itself).
    SQL Profiler does not show any attempt of connection.
    The SQL server instance in question is the default one.
    The error happens regardless if I select the option to encrypt connection or not.
    In SQL Configuration manager I can see that all protocols are enabled (TCP/IP, Named Pipes and Shared Memory.
    The Event Viewer does not provide any further errors than the one I have copied in this post.
    I'm at a loss here. Could someone please advise what might I be doing wrong?
    Regards,
    P.

    Here is what I had to do to solve this issue:
    Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
    domain isn't trusted.
    What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?)

  • TestStand Open SQL Statement does not support SQL's ORDER BY clause???

    TestStand 1.0.3
    Windows 2000 SP1
    SQL Server 2000 Personal
    You've got to be kidding me...
    It appears that the built-in TestStand Open SQL Step does NOT support the
    "ORDER BY" clause in the SELECT statement, even though the documentation
    says it does. Is this true?
    I have an Open SQL Statement query:
    "SELECT * FROM [MyTable] WHERE ([Batch ID]=1234)"
    it works fine, returning a correct record count 120 records. If I change
    the Open SQL Statement query simply by adding an ORDER BY clause, such as:
    "SELECT * FROM [MyTable] WHERE ([Batch ID]=1234) ORDER BY [MyField] ASC"
    it returns a record count of zero. I know that "MyField" exists in the
    MyTable table and contains valid data. The
    second query works fine in SQL
    Server Enterprise Manager.
    Am I missing something? Is it true that the TestStand Open SQL Step does
    NOT support the "ORDER BY" clause? If not, what &#$!ing good is it and why
    does the manual state it is supported? Is there any other way using just
    the TestStand steps to order a database recordset on one or more fields?
    Any help would be appreciated.
    Grrrrr....
    Bob Rafuse
    Etec Inc.

    > Bob -
    > The database step types do not do anything special to the SQL command
    > that you give it. The step just passes the command to the ADO
    > provider. I tried a simple query using the step types with the
    > following command,
    >
    > "SELECT UUT_RESULT.* FROM UUT_RESULT WHERE ([UUT_SERIAL_NUMBER] =
    > 12345) ORDER BY [EXECUTION_TIME] ASC"
    >
    > and this return the expected results and the record count parameter
    > was as expected. I tried this on TS 1.0.2 and TS 2.0 with MS Access
    > 2000 and MS SQL Server 7.0. I do not have MS SQL Server 2000 at this
    > time.
    >
    > It would be surprised if the step types are messing something up.
    I've been doing some experimenting over the past couple of days. Simple,
    one-table queries seem to handle the ORDER BY clause fine. Th
    ings seem to
    get messed up when I try multi-table queries with ORDER BY clause with the
    TestStand database steps. I get no errors but the returned record counts
    are always 0 with the ORDER BY and positive without the ORDER BY. The exact
    same queries work fine in Visual Basic/ADO and the SQL Server Query
    Analyzer.
    > Questions:
    > 1. Have you verified whether the data is actually returned even though
    > the record count is zero?
    Hmmm... yes data IS getting returned (at least on the two instances I just
    checked), but the record count is always zero. I was not proceeding with
    processing if the record count was 0.
    Still... I don't know how to loop through the recordset without knowing how
    many records there are an not eventually generate an error by passing EOF.
    Is there another way using the TestStand database steps to determine a) the
    number of records in the recordset or b) when I'm at EOF?
    > 2. Are you using any advanced options on the Opend SQL Statement step
    > type, specifically
    the cursor type set to forward only? Forward only
    > cursors do not allow for record counts.
    Everything on the Advanced tab of the Open SQL Statement step is set to "Use
    Default".
    Bob.

  • [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

    Hi, I've seen questions about this error posted elsewhere but I'm not sure if the same issues applied.
    I'm trying to connect to SQL Server from a VBA macro in excel. I've managed to do this with the code below where my query is return to cells in my active worksheet but for another query I want to run the data to be return is too large for Excel to handle
    and so I'd like to save it as a .csv file but using the second example of my code I get the message "[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied". Since I have access to this database from the first example
    of the code, I assume my conn.ConnectionString line of code is letting me down.
    Can anyone help me please?
    'Code to return data to worksheet'
    Sub macro2()
    With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array(Array( _
            "ODBC;DSN=SQLRA - OPENBET;UID=user1;Trusted_Connection=Yes;APP=Microsoft Office 2013;WSID=pdfdf3001;DATABASE=open;Network=DBMSS" _
            ), Array("OCN;Address=SQLRA_DB,55455;ApplicationIntent=READONLY;")), _
            Destination:=Range("$BG$1")).QueryTable
            .CommandText = Array( _
            "select  A.ev_oc_id, B.ev_mkt_id, A.ev_id, D.start_Time, Upper(Replace(A.[desc],'|','')) , A.result, COALESCE(A.sp_num, A.lp_num) , ", _
            "COALESCE(A.sp_Den, A.lp_Den) from open.reporting.tevoc A, open.reporting.tevmkt B, open.reporting.tevocgrp C, open.reporting.tev D ", _
            "where  A.ev_mkt_id = B.ev_mkt_id and B.ev_oc_grp_id = C.ev_oc_grp_id and D.ev_id = A.ev_id and Upper(Replace(D.[desc],'|','')) = 'home' and upper(B.name) = '|today|' and D.ev_type_id in (264, 289) and D.ev_class_id = 49
    and D.start>= '" & Year & "-" & Month & "-" & Day & "'" _
            .RowNumbers = False
            .FillAdjacentFormulas = False
            .PreserveFormatting = True
            .RefreshOnFileOpen = True
            .BackgroundQuery = True
            .RefreshStyle = xlInsertDeleteCells
            .SavePassword = False
            .SaveData = True
            .AdjustColumnWidth = True
            .RefreshPeriod = 0
            .PreserveColumnInfo = True
            .ListObject.DisplayName = "Table_Query_from_SQLRA___OPEN_1"
            .Refresh BackgroundQuery:=False
        End With
    End Sub
    'Code that produces error'
    Sub macro1()
    Dim conn As ADODB.Connection
    Set conn = New ADODB.Connection
    Dim testSQL As String
    Dim qd As DAO.QueryDef
    Dim openbetdb As Database
        conn.ConnectionString = "driver={SQL Server}; server= sqlra_db;uid=user1;APP=Microsoft Office 2013;WSID=pdfdf3001;database=openbet"
        conn.Open
        testSQL = "SELECT * FROM open.reporting.TevType where ev_class_id = 49 and ev_type_id in(289,330,518,13492);"
        Set qd = Db.CreateQueryDef("tmpExport", testSQL)
        DoCmd.TransferText acExportDelim, , "tmpExport", "C:\\export.csv"
    End Sub

    Hello,
    Are you connect to remote SQL Server? If so,
    please make sure the target SQL Server is running and is listening on appropriate protocols. Please take a look at the following article about general steps to troubleshoot
    SQL connectivity issues:
    http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Oracle SQL Developer does not browse Sybase's objects

    I had installed and configured jtds-1.2.5.jar in Oracle SQL Developer for Sysbase connection. Oracle SQL Developer does not browse any objects. Why? Can you please provide a solution?

    Hi,
    Can you provide some more information into what you are experiencing.
    What version of SQL Developer are you using?
    Did you install the jtds jar under the
    Tools > Preferences > Database > Third Party JDBC Driver
    Is the Sybase tab available in the new connection dialog?
    Did you select the default database in the connection dialog?
    Can you run a query against the Sybase database from the SQL Developer worksheet?
    Note that JTDS 1.2 is the only supported version. There maybe issues with other versions.
    Regards,
    Dermot.
    SQL Developer Team

  • SQL Developer does not support Oracle 8i

    Hi,
    I was waiting a tool from Oracle like SQL Developer for a long time, finally it came, but I am a little disapointed, so Why SQL Developer does not support Oracle 8i? Other free tools like SQUIRREL can do it. I also have worked in previous projects using PL/SQL Developer and it works fine...Why a native Oracle tool can not do it?
    I am in a project where we have to upgrade the Oracle database to a newer version, but I cannot have access to the old one...
    I know there are some threads in this forum, and some people can work with 8i with no issues. Can anyone who works with SQL Developer and Oracle 8i please tell me how to do it?
    Thanks,
    --Javier
    Edited by: javierlarota on Dec 9, 2009 5:40 AM
    Edited by: javierlarota on Dec 9, 2009 5:41 AM

    That's what I thought, the issue is more commercial ($$$) than technical. Anyway...I downloaded the version 1.1 but now I am getting an ORA-02248: invalid option for ALTER SESSION error. 00604. 00000 "error occurred at recursive SQL level %s".
    Thanks,
    --Javier                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    I using SQL 2000 on Server 2012 in named instance. when i connect locally, it's ok, but when try to connect from network it generates error [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    Hi Sayed Abdul Latif,
    As other post, SQL Server 2000 was out of support since April,2013. You can try to install SQL Server 2005 or later version. In addition, since the issue regards SQL Server Data Access. I will help you post the question in the related forums. It is appropriate
    and more experts will assist you.
    According to your description, you can only connect to SQL Server locally, I recommend you check if the TCP/IP and Named Pipes are enabled in SQL Server Configuration Manager. And the SQL Server is set to allow remote connection. Then restart the SQL Service
    and check if you can connect to SQL Server remotely.
    Additionally, we also need to verify if the SQL Server named instance is in a cluster, and connect to it by using the "servername\instancename" syntax, then you receive the above error message. If yes, you have to hardcode the TCP port or the Named Pipe
    of the SQL Server named instance. For more information, you can review the following article.http://support.microsoft.com/kb/888228/en-us
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Sql server does not exist or access is denied.

    Hi,
    i am trying to connect a dadabase to the server from client pc. and i take the sql error  [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied to the client pc.
    i using .udl file and ia trying to connect with sql authentication.
    please advice.

    the clients computers are in the workgroup network.
    Hi Antonia,
    Please ensure you specify the correct server name, and check SQL Serer instance was started.
    A good article about UDL connect to SQL DB for your reference, please see:
    Quick Database Connectivity Testing:
    http://sqlblog.com/blogs/andy_leonard/archive/2011/08/26/quick-database-connectivity-testing.aspx
    In addition, this issue also might be caused by the windows fire setting. Please also take a look at the following article regarding configure the Windows Firewall to allow SQL Server Access:
    http://technet.microsoft.com/en-us/library/cc646023(v=sql.110).aspx
    Reards,
    Elvis Long
    TechNet Community Support

  • Logon Error:[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist

    Hi,
    Getting following error while trying to connect MySQL server to the MDM Import manager.
    logon Error:[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied
      i have supplied the following paramter values.
    Type : SQL server
    Remote System : MDM
    DBMS server : localhost 
    Database Name : testing
    user: < MySQL user name>
    password : < MySQL password>
    pls let me know how can i solve this problem.
    thanks

    Refer the blog
    /people/rupesh.kumar4/blog/2008/08/20/how-to-integrate-mdm-with-mysql-server-50
    thanks
    Rupesh

  • SQL Server does not exist or access denied - periodic error

    Hi There,
    For the last week or so, I have been getting periodic errors on my sites powered by MSSQL databases. The error message is as follows:
    Microsoft OLE DB Provider for SQL Server error '80004005'
    [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
    Usually, a quick refresh, and everything works fine again.
    My host doesn't know what has caused the issue, but has dug up this microsoft link: http://support.microsoft.com/kb/907264
    Most of that tech speak is beyond me! I use Dreamweaver - does anybody know if the standard dreamweaver connections or cursors contravene the advice on that page, and if so how to fix it?
    If not, does anybody know where to look to solve this issue?
    Thanks,
    Dan 

    I had this same problem and on a hunch I deleted the brackets
    so that the connection string instead of being,
    "Persist Security Info=False;Data
    Source=[THESERVER\SQLEXPRESS];Initial Catalog=[AdventureWorks];User
    ID=[ATEST];Password=[kjdkjdkjd]"
    is now,
    "Persist Security Info=False;Data
    Source=THESERVER\SQLEXPRESS;Initial Catalog=AdventureWorks;User
    ID=ATEST;Password=kjdkjdkjd"
    This was in Dreamweaver 8.

  • OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi,
    I have one client and one server.  In both hosts I created an OS-user named User1.
    The user have been given various role under the prefix SQLServer2005.
    The default instance of SQL Server and instance (background-process) of
    Analysis Service are also run under User1.
    I connected via Management Studio to Analysis Service directly in the
    server.  I set the permission to access Analysis Service to Everyone. 
    This means everyone should be able to use Analysis Service.  I have set
    ODBC data source to the server.  Testing was successful.
    I created a project to create a cube.  The tables are fairly small (total 300 MB, biggest one 290).
    On project setting (created at client) I set the server host as
    deployment target. I managed to deploy project when all I have are Data
    Source and Data Source Views.
    But on deployment I always failed.   The errors remain the same, begins with
    OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.; 08001.
    I have tried 4 combinations of Impersonation :
    (A) Use a specific username and password
      * in which I supply User1 and the password of User1
    (B) Use the service account
    (C) Use the credentials of the current user
    (D) Default
    Why is this? The server does certainly exist.  I think the error message is wrong.
    I have seen 3 posting that seems related.  One of them say the solution is giving the right impersonation, but gave no detail.  About the privilege, User1 are granted the role of
    SQLServer2005MSOLAP.  What is the solution?
    Thank you,
    Bernaridho

    I just had this problem and solved it by creating an alias in SQL Server Configuration Manager, as below:
    Scenario: My SQL server is accessible from the internet under my.domain.com, and from itself at ServerName. But the local network can't see itself through the router at my.domain.com, so the deployed project is unable to process the cube, since that would
    require Analysis Services to be able to see the SQL Server at my.domain.com, which it can't do.
    So I changed the server in my project from my.domain.com to ServerName, and I created a local alias to ServerName in SQL Server Configuration Manager, under SQL Native Client 11.0 Configuration, Aliases. In my case, I pointed it to localhost port 1333, and
    used SSH -L 1333:my.domain.com:1433, but I could have pointed the alias directly to the server, just as well. (Verifying... yes, that worked too, so you can forget SSH if you have no interest in it.)

  • An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider,

    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider,
    error: 40 - Could not open a connection to SQL Server)

    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named
    Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Hello,
    Make sure your SQL Server service is started.
    Make sure TCP\IP and names pipes protocol is enabled
    Make sure you have made an exception in firewall for SQL Server connection
    Make sure SQL Server browser service is enabled
    Make sure you connect with correct name hostname\instance name for named instance,MSSQLSERVER for default instance and Hotname\SQLEXPRESS for express edition.
    Please make sure you use port no when connecting to SQL server listeing on different port (hostname\instance ,portno)
    http://blogs.msdn.com/sql_protocols/archive/2006/09/30/SQL-Server-2005-Remote-Connectivity-Issue-TroubleShooting.aspx
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL file does not open in Mac with SQL Developer

    Hi,
    I have my .sql extension files in mac associated with SQL Developer, but when I open the file SQL Developer does not start; nothing happens.
    I checked all the associations and it seems correct.
    Any suggestion?
    Thanks,
    A.Tarquino
    Edited by: aftarquino on Oct 5, 2010 3:48 PM
    Anyone???

    Hi Mike,
    I can provide solution if you can tell me the registry value(HKEY_CLASSES_ROOT\sqlwb.sql.9.0\Shell\Open\Command). I believe there is an extra %1 which is causing this.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog: http://blogs.msdn.com/blakhani
    Team Blog: http://blogs.msdn.com/sqlserverfaq
    Let me see if I can get my IT guys to temporarily grant me registry access.  As I said above, it's locked down, but maybe if I ask
    reeeeally nicely :-)  I will keep you posted.  Thanks!
    EDIT: The IT gods have smiled on me.  The value for the key above is "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe" /dde
    Not sure if that helps, but there you go.  Thanks! 
    Mike Loux
    Certified Practicing Geek
    mike dot loux at gmail dot com
    Replying to myself in case in-place edits don't trigger a "somebody updated this thread" email.  :-)
    Mike Loux
    Certified Practicing Geek
    mike dot loux at gmail dot com
    Hey Mike,
    Actually edit didnot trigger the email :)
    Change that to
    "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe" %1 /dde
    (add %1 and that should fix this forever)
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog: http://blogs.msdn.com/blakhani
    Team Blog: http://blogs.msdn.com/sqlserverfaq

  • PL/SQL Procedure does not return at end of routine

    Hi All,
    I am in the midst of migrating data for a client. To migrate the data I have written a PL/SQL Block which based on the logic has several loops in the same. As I got the new application DB design I introduced more code to capture the data for the new tables.
    The problem now is that after having finalised all the code when I run the script it does not come out and after some time I get ORA 3113 and Host def undefined error.
    The data is huge . The main table contains about 17000 records but other child tables can reach up 400000 records.
    I am running this in my Dev database.

    Hi All,
    I am in the midst of migrating data for a client. To
    migrate the data I have written a PL/SQL Block which
    based on the logic has several loops in the same. As
    I got the new application DB design I introduced more
    code to capture the data for the new tables. Use less PL/SQL more SQL. Or at least BULK Binds.
    >
    The problem now is that after having finalised all
    the code when I run the script it does not come out
    and after some time I get ORA 3113 and Host def
    undefined error. Do you get the same error with less data, like 2 rows only? Maybe you just hit a network timeout. Ora-3113 could be everything really.
    >
    The data is huge . The main table contains about
    17000 records but other child tables can reach up
    400000 records. Not huge. More than a school/homework project. Big would be like 1 Mill+, huge more like 50 Mill.
    >
    I am running this in my Dev database.Message was edited by:
    Sven W.

Maybe you are looking for

  • PO creation Date and Invoice creation Date

    Hi, Can any one help me regarding which table I can look for PO creation date and Invoice creation date. I require these fields for my reporting requirement. Thanks in advance, Arvind.

  • How to setup the article master and link up with the image file of that art

    I nteed help to setup the article master to display article image. Can someone guide me with the details? Thanks

  • Brighten Sticky Notes in Acrobat X?

    Sorry if this has already been posted, but I couldn't find it. I have Acrobat 9 on my desktop, and Acrobat X on a shared server, and use sticky notes to help mark sections of documents. These sticky notes are color-coded. Sticky notes in Acrobat 9 ar

  • Oh Lord, I have a Powerbook 520c!!

    While tossing out old electronic stuff, I discovered that I still have a PowerBook 520c, complete with that wild 4-prong power adapter.  Heavy little sucker!  I have no idea what is on it, but I'm sure it still works.  It looks pretty cherry to be ho

  • Share your site

    if you have a .mac account - OR - you are posting your iWeb site on your own server - let us know the url so we can have a look at REAL WORLD examples. good would also be if you discribe how "easy" it was to create the site, or how difficult, what yo