SQL Server 2005 Management Studio Local Server Connection Error

Sir, as you can see in above image,,, I have installed SQL SERVER 2005 Management Studio Express of 64 bit.
And when i have tried to connect it to local server it shows me above error...... Please guide me how should i fix it?

Check
http://sqlserver-help.com/2011/06/19/help-whats-my-sql-server-name/
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle

Similar Messages

  • Open (.sdf) file with SQL server 2005 Management Studio

    In VS2005, I have created a SQL Mobile database, (.sdf).
    Copied that (.sdf) file to Desktop, and when I try to open with SQL Server 2005 management studio, its showing error "make sure the application for the file type (.sdf) is installed."
    How can I open this file with SQL server?
    Regards
    Abinash

    You must install SP2 if using Management Studio Express (http://www.microsoft.com/downloads/details.aspx?familyid=6053C6F8-82C8-479C-B25B-9ACA13141C9E&displaylang=en)Erik Ejlskov Jensen, MCTS: WM App, MCITP: SQL 2008 Dev - http://erikej.blogspot.com
    Please mark as answer, if this was it.

  • Can't connect to Report Server via Management Studio

    Hi,
    I have a local installation of SQL Server 2005 (Developer Edition) on XP Professional SP2, with Reporting Services, Integration Services, and Analysis Server installed.
    I can connect to Integration Services and Analysis Server via the SQL Server Management Studio, but not to the Report Server. I can access and use the Report Server installation via http://localhost/Reports and http://localhost/ReportServer, and everything checks out on the Reporting Services Configuration tool, so the server appears to be working fine.
    I've uninstalled/re-formatted/reinstalled the services (with all default options, and services running as "Local Service"), but always end up with the following error when connecting to Report Server via Management Studio:
    The request failed with HTTP status 503: Service Unavailable. (Microsoft.SqlServer.Management.UI.RSClient) ------------------------------
    Program Location:
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()
       at Microsoft.SqlServer.Management.UI.RSClient.RSClientConnection.CreateConnection(String connectionString)
       at Microsoft.SqlServer.Management.UI.RSClient.RSConnectionInfo.CreateConnectionObject()
       at Microsoft.SqlServer.Management.UI.RSClient.RSConnectionInfo.RSTypeImpl.GetConnectionObject(UIConnectionInfo ci)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.RSType.GetConnectionObject(UIConnectionInfo ci)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    Any hints would be appreciated...
    Thanks,
    /vijayan

    Here is the report server log:
    <Header>
      <Product>Microsoft SQL Server Reporting Services Version 9.00.2047.00</Product>
      <Locale>en-US</Locale>
      <TimeZone>AUS Eastern Standard Time</TimeZone>
      <Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\ReportServerService__06_22_2006_09_34_56.log</Path>
      <SystemName>COUNTD2</SystemName>
      <OSName>Microsoft Windows NT 5.2.3790 Service Pack 1</OSName>
      <OSVersion>5.2.3790.65536</OSVersion>
    </Header>
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing ConnectionType to '0'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing IsSchedulingService to 'True'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing IsNotificationService to 'True'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing IsEventService to 'True'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing IsWebServiceEnabled to 'True'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing ProcessRecycleOptions to '0'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing WatsonFlags to '1064'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing SecureConnectionLevel to '0'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing DisplayErrorLink to 'True'  as specified in Configuration file.
    ReportingServicesService!library!4!22/06/06-09:34:57:: i INFO: Initializing WebServiceUseFileShareStorage to 'False'  as specified in Configuration file.
    ReportingServicesService!resourceutilities!4!22/06/06-09:34:57:: i INFO: Reporting Services starting SKU: Enterprise
    ReportingServicesService!resourceutilities!4!22/06/06-09:34:57:: i INFO: Evaluation copy: 0 days left
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: Database Cleanup (NT Service) timer enabled: Next Event: 600 seconds.  Cycle: 600 seconds
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: Running Requests Scavenger timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: Running Requests DB timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: Execution Log Entry Expiration timer enabled: Next Event: 59102 seconds.  Cycle: 86400 seconds
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: Memory stats update timer enabled: Next Event: 60 seconds.  Cycle: 60 seconds
    ReportingServicesService!runningjobs!4!22/06/06-09:34:57:: i INFO: SQM timer timer enabled: Next Event: 62702 seconds.  Cycle: 86400 seconds
    ReportingServicesService!library!8!22/06/06-09:34:58:: i INFO: Catalog SQL Server Edition = Enterprise
    ReportingServicesService!crypto!8!22/06/06-09:34:58:: i INFO: Initializing crypto as user: OBJECTIVEWARE\s.count
    ReportingServicesService!crypto!8!22/06/06-09:34:58:: i INFO: Exporting public key
    ReportingServicesService!crypto!8!22/06/06-09:34:58:: i INFO: Performing sku validation
    ReportingServicesService!crypto!8!22/06/06-09:34:58:: i INFO: Importing existing encryption key
    ReportingServicesService!dbpolling!8!06/22/2006-09:34:58:: EventPolling polling service started
    ReportingServicesService!dbpolling!8!06/22/2006-09:34:58:: NotificationPolling polling service started
    ReportingServicesService!dbpolling!8!06/22/2006-09:34:58:: SchedulePolling polling service started
    ReportingServicesService!dbpolling!8!06/22/2006-09:34:58:: UpgradePolling polling service started
    ReportingServicesService!dbpolling!b!22/06/06-09:34:58:: NotificationPolling heartbeat thread started.
    ReportingServicesService!dbpolling!a!22/06/06-09:34:58:: EventPolling heartbeat thread started.
    ReportingServicesService!dbpolling!c!22/06/06-09:34:58:: Polling started
    Here is the IIS log:
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2006-06-21 00:00:21
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2006-06-21 00:00:21 W3SVC1 203.166.122.177 GET /iisstart.htm - 80 - 203.166.122.223 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+InfoPath.1) 200 0 64
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2006-06-21 03:50:53
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2006-06-21 03:50:53 W3SVC1 203.166.122.177 POST /ReportServer/ReportService2005.asmx - 80 - 203.166.122.218 - 200 0 0
    2006-06-21 03:51:15 W3SVC1 203.166.122.177 POST /ReportServer/ReportService2005.asmx - 80 - 203.166.122.218 - 500 0 0
    2006-06-21 03:51:15 W3SVC1 203.166.122.177 POST /ReportServer/ReportService2005.asmx - 80 - 203.166.122.218 - 200 0 0
    2006-06-21 03:51:31 W3SVC1 203.166.122.177 POST /ReportServer/ReportService2005.asmx - 80 - 203.166.122.218 - 500 0 0
    2006-06-21 03:51:31 W3SVC1 203.166.122.177 POST /ReportServer/ReportService2005.asmx - 80 - 203.166.122.218 - 500 0 0
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2006-06-21 07:51:41
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2006-06-21 07:51:41 W3SVC1 203.166.122.177 GET /iisstart.htm - 80 - 203.166.122.223 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+InfoPath.1) 200 0 64
    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2006-06-21 23:38:59
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2006-06-21 23:38:59 W3SVC1 203.166.122.177 GET /Reports - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 301 0 0
    2006-06-21 23:39:16 W3SVC1 203.166.122.177 GET /Reports/Home.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 302 0 0
    2006-06-21 23:39:25 W3SVC1 203.166.122.177 GET /Reports/Pages/Folder.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 500 0 0
    2006-06-21 23:39:25 W3SVC1 203.166.122.177 GET /Reports/js/ReportingServices.js - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:39:25 W3SVC1 203.166.122.177 GET /Reports/styles/ReportingServices.css - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:39:25 W3SVC1 203.166.122.177 GET /Reports/images/blank.gif - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:39:25 W3SVC1 203.166.122.177 GET /Reports/images/48error.jpg - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:40:11 W3SVC1 203.166.122.177 GET /Reports - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 301 0 0
    2006-06-21 23:40:11 W3SVC1 203.166.122.177 GET /Reports/Home.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 302 0 0
    2006-06-21 23:40:13 W3SVC1 203.166.122.177 GET /Reports/Pages/Folder.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 500 0 0
    2006-06-21 23:41:26 W3SVC1 203.166.122.177 GET /Reports/home.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 302 0 0
    2006-06-21 23:41:28 W3SVC1 203.166.122.177 GET /Reports/Pages/Folder.aspx - 80 - 203.166.122.177 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 500 0 0
    2006-06-21 23:43:52 W3SVC1 203.166.122.177 GET /reports - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 301 0 0
    2006-06-21 23:43:52 W3SVC1 203.166.122.177 GET /reports/Home.aspx - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 302 0 0
    2006-06-21 23:43:53 W3SVC1 203.166.122.177 GET /reports/Pages/Folder.aspx - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 500 0 0
    2006-06-21 23:43:54 W3SVC1 203.166.122.177 GET /Reports/js/ReportingServices.js - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:43:54 W3SVC1 203.166.122.177 GET /Reports/styles/ReportingServices.css - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:43:54 W3SVC1 203.166.122.177 GET /Reports/images/blank.gif - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 200 0 64
    2006-06-21 23:43:54 W3SVC1 203.166.122.177 GET /Reports/images/48error.jpg - 80 - 203.166.122.218 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+InfoPath.1;+.NET+CLR+2.0.50727) 200 0 64
    Thanks,
    Roshan.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • While installing the sql server 2008 management studio I am getting the below error.So what do I do?

    Hi,
    While installing the sql server 2008 management studio I am getting the below error.
    unhandled exception has occured in your application.if you click continue,the application will ignore this error and attempt to continue.if you click quit,the aplication will close immediatly.
    An error occured creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings:Could not load file or
    assembly 'system.version=4.0.0.0. culture=neutral, publickey token=b77a5c561934e089' or one of its dependencies.the system cannot find the file supplied.
    (C:\users\harsha\appdata\local\microsoft_corporation\landingpage.exe_strongname_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config
    and finally it is giving the options like continue and quit the installation.
    So what do I do?
    regards,
    harsha.

    Hello,
    Please try deleting the following sub folder to see if this will work:
      C:\users\(my profile)\AppData\Local\Microsoft_Corporation
    If you can't see AppData folder, you could use following steps to show hidden files:
     1. Open an explorer window, hit "ALT-T" choose Folder Options then go to the view tab.
     2. Turn on Show hidden files, folders or drives and
    disable Hide protected Operating System files (recommended).
    SQL Server 2008 setup fails with a Microsoft .NET Framework exception:
     http://blogs.msdn.com/b/vsnetsetup/archive/2009/10/29/sql-server-2008-setup-fails-with-a-microsoft-net-framework-exception.aspx.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Cannot connect to server via management studio

    Hello,
    I've installed Express with Tools 64bit edition. EDIT: it's 2014 version, here's the download link https://msdn.microsoft.com/en-gb/evalcenter/dn434042.aspx?f=255&MSPPError=-2147217396 
    But when I try to connect to the database using the management studio, I get this error:
    Signature for the declaration in a method implementation cannot be found.  Type: 'Microsoft.SqlServer.Management.Smo.SqlSmoObject'.  Assembly: 'Microsoft.SqlServer.Smo, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. (Microsoft.SqlServer.Management.SqlStudio.Explorer)
    Program Location:
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.CheckAndEnableSmoXps(SqlConnection connection, Boolean smoXpsEnabled)
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.CheckDacAndSmo(SqlConnection sqlConnection)
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    I don't get what this error is trying to tell me really. Hopefully someone can explain it so I might fix it. Or any information why I can't seem to connect would be appreciated.
    I've tried connecting to a running server instance, and I've tried connecting to localdb; both gave the same error. The name seems right, as a different error appears when it cannot find the server/bad name.
    I was able to connect with visual studio 2013 and create a new database through that, so this feels a bit like a missing dependency or something in my management studio installation. I ran installation repair, but it didn't find any problems.
    I'm looking to learn SQL so it's possible the setup of the server was not done right, maybe? But I'm not sure if that would affect localdb... guess it's pretty clear that I'm at a loss why it's not working; hopefully someone will be able to help.
    Beginner

    Hello,
    Could you try to apply the following update for SQL Server and apply the latest update for VS 2013?
    https://support.microsoft.com/en-us/kb/3031047/en-us
    Another option may be repairing the installation.
    https://technet.microsoft.com/en-us/library/cc646006(v=sql.120).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server 2012 Management Studio: Creating a Database and a dbo Table. Inserting VALUES into the table. How to insert 8 Values for future use in XQuery?

    Hi all,
    In my SQL Server 2012 Management Studio (SSMS2012), I tried to create a Database (MacLochainnsDB) and a dbo Table (marvel). then I wanted insert 8 VALUES into the Table by using the following code:
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'MacLochlainnsDB')
    DROP DATABASE MacLochlainnsDB
    GO
    CREATE DATABASE MacLochlainnsDB
    GO
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL)
    INSERT INTO marvel
    (avenger_name)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8)
    I got the following error Message:
    Msg 110, Level 15, State 1, Line 5
    There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
    How can I correct this problem?
    Please kindly help and advise.
    Thanks in advance,
    Scott Chang
    P. S.
    The reason I tried to create the Database, dbo Table, and then to insert the VALUES is to learn the following thing:
    You can query the entire node tree with the following xquery statement because it looks for the occurrence of any node with the /* search string:
    DECLARE @x xml;
    SET @x = N'<marvel>
    <avenger_name>Captain America</avenger_name>
    </marvel>';
    SELECT @x.query('/*');
    You can query the avenger_name elements from the marvel_xml table with the following syntax:
    SELECT xml_table.query('/marvel/avenger_name')
    FROM marvel_xml;
    It returns the following set of avenger_name elements:
    <avenger_name>Hulk</avenger_name>
    <avenger_name>Iron Man</avenger_name>
    <avenger_name>Black Widow</avenger_name>
    <avenger_name>Thor</avenger_name>
    <avenger_name>Captain America</avenger_name>
    <avenger_name>Hawkeye</avenger_name>
    <avenger_name>Winter Soldier</avenger_name>
    <avenger_name>Iron Patriot</avenger_name>
    You can query the fourth avenger_name element from the marvel_xml table with the following xquery statement:
    SELECT xml_table.query('/marvel[4]/avenger_name')
    FROM marvel_xml;
    It returns the following avenger_name element:
    <avenger_name>Thor</avenger_name>

    Hi Scott,
    The master database records all the system-level information for a SQL Server system, so best practise would be not to create any user-defined
    object within it.
    To change your default database(master by default) of your login to another, follow the next steps so that next time when connected you don't have to use "USE dbname" to switch database.
    Open SQL Server Management Studio
    --> Go to Object explorer(the left panel by default layout)
    --> Extend "Security"
    --> Extend "Logins"
    --> Right click on your login, click "propertites"
    --> Choose the "Default database" at the bottom of the pop-up window.
    --or simply by T-SQL
    Exec sp_defaultdb @loginame='yourLogin', @defdb='youDB'
    Regarding your question, you can reference the below.
    SELECT * FROM master.sys.all_objects where name ='Marvel'
    --OR
    SELECT OBJECT_ID('master.dbo.Marvel') --if non empty result returns, the object exists
    --usually the OBJECT_ID is used if a if statement as below
    IF OBJECT_ID('master.dbo.Marvel') IS NOT NULL
    PRINT ('TABLE EXISTS') --Or some other logic
    What is the sys.all_objects? See
    here.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Microsoft SQL Server 2012 Management Studio Express silent installation very slow

    Iam doing silent installations often on several Systems.
    I install the Microsoft SQL Server 2012 Management Studio Express with this command:
    "SQLManagementStudio_x64_DEU.exe /ACTION=INSTALL /QUIET /IAcceptSQLServerLicenseTerms="True" /FEATURES=CONN,BC,SSMS /indicateprogress"
    The installation will take almost an hour to finish. 
    I never get error messages or so. The installation afterwards is fine.
    Is there a way to speed up the installation process?
    Thanks!

    Hi Dennis,
    When installing SQL Server Management Studio, it is normal for us taking an hour to finish the installation.
     Personally, if you want to speed up the installation process, I recommend improve your hardware device on your computer, such as CPU, RAM, hard disk and so on.
    Or you can submit an submit the requirement at https://connect.microsoft.com/SQLServer/. 
    If the requirement mentioned by customers for many times, the product team may consider to add or improve this requirement in the future SQL Server version. Thanks for your understanding.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Silent SQL Server 2008 Management Studio install on Win7

    Hi,
    Is there a way to suppress Compatibility warning box while silently installing SQL Server 2008 Management Studio install on Win7?
    Thanks,
    H

    Hi Kugler,
    Even I was facing the same issue. It is because you may pending reboots on the target machine.
    I also used the cmdline as below:
    <PATH of EXE> /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=SSMS,ADV_SSMS /HIDECONSOLE
    Before installation it is better to restart the target machine and start with the installation.

  • SQL Server 2012 Management Studio:Importing XML file to new Table of new Database-XML parsing: unexpected end of input???

    Hi all,
    In the Notepad, I created an xml file (ZenQroducts.xml) :
    <Qroducts>
    <Qroduct>
    <SKU>1</SKU>
    <Desc>Book</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>2</SKU>
    <Desc>DVD</Desc>
    </Qroduct>
    <Qroduct>
    <SKU>3</SKU>
    <Desc>Video</Desc>
    </Qroduct>
    In my SQL Server 2012 Management Studio, I executed the following code:
    --to create a new object Qroducts in a new database OPENXMLtesting
    CREATE DATABASE OPENXMLtesting
    GO
    CREATE TABLE Qroducts(
    sku INT Primary KEY,
    qroduct_desc VARCHAR(30));
    INSERT INTO Qroducts (sku, qroduct_desc)
    SELECT X.qroduct.query('SKU').value('.', 'INT'),
    X.qroduct.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenQroducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct);
    SELECT sku, qroduct_desc
    FROM Qroducts;
    I got the following message:
    Msg 9400, Level 16, State 1, Line 6
    XML parsing: line 13, character 12, unexpected end of input
    I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
    Thanks in advance,
    Scott Chang
     

    Hi Manish, Thanks for your response.
    Yes, it is a duplicate with Qroducts/Qroduct instead of Products/Product. I did it, because I don't know how to remove the existing "Products" database.
    Again, I got the existing "Qroducts" database in this second trial!!??  I am comletely lost in doing "Importing XML file to SQL Table" now!!  I think that I have not touched T-SQL and XML programming, since 2008. I
    did not catch the new features of T-SQL 2008, XML, SQL/XML, XQuery, etc. for long time. Recently, I did not know what DECLARE, @x, SET,...were, and dived into the SQL/XML and XQuery programming. I knew the SQL Basics (SELECT, FROM, WHERE,..), creating
    the names of databases and tables in SQL Server 2008/2012 Management Studio (Express) before. This morning, I found an old T-SQL 2008 Prgrammer's Guide that has the new features of SQL Server 2008 for T-SQL, XML, XQuery, etc. I just starting reading
    it to know what DECLARE, @x, SET,... are. But, I still don't know where the existing databases "Products" and "Qroducts" (created by me) are - they are not in the Databases of SQL Server 2012 Management Studio I am using!!??  Could
    you please kindly point out where the "Products" and "Qroducts" databases are?
    Prashanth responded to my posted question too and he asked to to try his code: DECLARE @xml XML, SELECT @xml =' <Qroducts>.....SELECT product.value.....FROM @XML.nodes.....AS.... I just learned that his code is doing the thing we
    want to do and print the results below the SQL Query. This is not what I need in doing my SQL/XML programming. I am reading/studying the new (2008) features of T-SQL, XQuery 1.0: An XML Query Language (Second Edition), and Microsoft XQuery Language Reference
    (SQL Server 2012 Books Online) closely now. I hope that I can resume the T-SQL, XML Query, SQL/XML, XQuery in my SQL Server 2012 Management Studio soon.
    Please tell me  where the existing databases "Products" and "Qroducts" I created in my previous trials in my SQL Server 2012 Management Studio.  This is what I need to know and to delete them, before I do this kind of "Importing
    XML file to Table of SQL Server 2012 Management Studio"  programming again.
    Please kindly help, advise and respond again.
    Many Thanks,
    Scott Chang

  • SQL Server 2012 Management Studio: Import XML File to SQL Table - XML parsing: illegal qualified name character

    Hi all,
    In my SQL Server 2012 Management Studio, I executed the following code:
    CREATE TABLE Products(
    sku INT Primary KEY,
    product_desc VARCHAR(30));
    INSERT INTO Products (sku, product_desc)
    SELECT X.product.query('SKU').value('.', 'INT'),
    X.product.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenProducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Products/Product') AS X(product);
    SELECT sku, product_desc
    FROM Products;
    I got the following message:
    Msg 9455, Level 16, State 1, Line 5
    XML parsing: line 3, character 12, illegal qualified name character
    I have no ideas why the "product" in the statement "SELECT X.product.query('SKU').value('.','INT')" is not legal qualified name charcter!!!???  Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hi Manish, Thanks for your response.
    Here is a copy of my ZenProducts.xml:
    <Products>
    <Product>
    <SKU>1<</SKU>
    <Desc>Book</Desc>
    </Product>
    <Product>
    <SKU>2<</SKU>
    <Desc>DVD</Desc>
    </Product>
    <Product>
    <SKU>3<</SKU>
    <Desc>Video</Desc>
    </Product>
    I found the wrong "<<" in my xml file and changed it to the right "<" for the statement<SKU>1</sku>. I executed the corrected code and I got the following new message:
    Msg 2714, Level 16, State 6, Line 1
    There is already an object named 'Products' in the database.
    I don't know how to remove the old, existing the 'Products' object in the database and execute the corrected code again. Please kindly help, advise and tell me how to resolve this new problem.
    Many Thanks,
    Scott Chang
    P. S. I played with another project to get the 'Products' object in my database before. Frankly, I don't know where the old 'Products' object and the database are. Please enlighten me in resolving this matter more clearly.
    You welcome Scott, As Olaf mentioned in this post, there was already a table exists , so need to drop your Products table.
    Apart from this, I guess either you did not pasted the full XML file or what, I needed to have the (  </Products>)closing tag in your XML file as follows.
    <Products>
    <Product>
    <SKU>1</SKU>
    <Desc>Book</Desc>
    </Product>
    <Product>
    <SKU>2</SKU>
    <Desc>DVD</Desc>
    </Product>
    <Product>
    <SKU>3</SKU>
    <Desc>Video</Desc>
    </Product>
    </Products>
    You can use following script to drop if your 
    Products table is already existing.
    if exists(select 1 from sys.tables where name ='Products')
    drop table Products
    CREATE TABLE Products(
    sku INT Primary KEY,
    product_desc VARCHAR(30));
    INSERT INTO Products (sku, product_desc)
    SELECT X.product.query('SKU').value('.', 'INT'),
    X.product.query('Desc').value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'H:\ZenProducts.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('Products/Product') AS X(product);
    SELECT sku, product_desc
    FROM Products;
    Let us know if you face any other problem.
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • SQL Server 2012 Management Studio: XML XQuery-query the XML Blob using CTE: How to specify the coorelation name in bulk rowset?

    Hi all,
    I just started doing the XML Xquery programming in my SQL Server 2012 Management Studio. I executed the following code:
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    I got the the following Msg:
    Msg 491, Level 16, State 1, Line 4
    A correlation name must be specified for the bulk rowset in the from clause.
    How can I specify the correction name for the bulk rowset in my project?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hello Scott,
    You have to assign a table alias for the OPENROWSET =>
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) AS MyXML ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL Server 2012 Management Studio Crashed when opening the application

    Hi,
    I had installed SharePoint 2013 with SQL Server 2012 on a single server environment a couple of months ago. Both the tools were working fine. But today morning i found that when opening SQL Server 2012 Management Studio it displays a pop-up message as attached
    below:
    Event Log:
    Faulting application name: Ssms.exe, version: 2011.110.3000.0, time stamp: 0x5081c1cd
    Faulting module name: Ssms.exe, version: 2011.110.3000.0, time stamp: 0x5081c1cd
    Exception code: 0xc0000005
    Fault offset: 0x00004b89
    Faulting process id: 0x2b0c
    Faulting application start time: 0x01cf54780a2efde8
    Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe
    Faulting module path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe
    Report Id: 47e02c36-c06b-11e3-946b-00155d040605
    Faulting package full name: 
    Faulting package-relative application ID: 
    Server Details:
    Windows Server 2012 Standard
    MS SharePoint 2013
    MS SQL Server 2012
    IIS 8.0
    If anyone has faced the same problem or has a workaround, please share!
    Thanks 

    Hello,
    Applying Service Pack 1 for SQL Server 2012 may solve this issue.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error installing sql server 2008 management studio express

    Hello,
    I need to install sql server 2008 management studio express on a sql server 2k8 R2 instance.
    First of all, I've downloaded this one from this link: http://www.microsoft.com/en-us/download/details.aspx?id=7593 (for 32 bits).
    Once I've the downloaded file I run this file and choose the first option (New sql server stand-alone...) in the installation part. Finally, in the installation type I choose the option 'Add features to an existing instance of SQL Server 2008' with the instance
    selected. I push Next and then I get the following error: 'The instance ID is required but it is missing'.
    Can anybody help me?
    Thanks a lot.
    Regards.

    Hello,
    What’s the edition of the SQL Server 2008 R2? If you had installed SQL Server 2008 R2 Developer edition, you should install “SQL Server 2008 Express with Tools” edition or “SQL Server 2008 Express with Advanced Services” edition.
    Please refer to the following article for more information:
    http://www.benlittler.com/2009/06/how-to-install-sql-management-studio-express-2008/
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Not able to attach Adventure works Database to SQL server 2012 Management studio

    Hello
    while i try to attach AdventureWorks2012 database to SQL Server 2012 Management Studio i am getting the following error
    Msg 1813, Level 16, State 2, Line 1
    Could not open new database 'AdventureWorks2012'. CREATE DATABASE is aborted.
    Msg 948, Level 20, State 1, Line 1
    The database 'AdventureWorks2012' cannot be opened because it is version 705. This server supports version 662 and earlier. A downgrade path is not supported.
    Kindly help me in this regard
    Thanks
    Joey

    Hi,
    You can use the following query to achieve the version of SQL Server.
    Select @@version
    As the previous comments, you can either upgrade to SQL Server 2012 or attach the AdventureWorks2008 database in the link which KevinNicholas provided.
    Additional information:
    How to determine the version and edition of SQL Server and its components
    http://support.microsoft.com/kb/321185/en-us
    Upgrade to SQL Server 2012 Using the Installation Wizard (Setup)
    http://technet.microsoft.com/en-us/library/ms144267.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for