SQLserver Management Studio is missing

Gurus:
I have just installed an SQLserver2005SP2. I have followed the guide exactly.
However, the "SQLserver Management Studio" is missing from the menu
"start->microsoft sql server 2005".
Could you tell how to make them appearing?
Thanks a lot! Pnts will be given. Regards!

Did you select client Components during installation? If you didn't it has mess up. Follow the below link that will help you to correct the installation.
http://geekswithblogs.net/bitburner/archive/2008/06/13/122840.aspx
Rgds,
SK

Similar Messages

  • Sqlserver management studio

    do we require license to install sql server management studio tool on sql server2012

    do we require license to install sql server management studio tool on sql server2012
    Please dont post duplicate thread.Please refer to original thread for solution.Moderators plz merege the threads
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/80e42ed6-b480-40ab-be14-8f334c755f17/licensing-issues-does-sqlserver-management-studio-require-license-in-2012-or-not?forum=sqltools
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Licensing issues. does sqlserver management studio require license in 2012 or not?

    does sql server management studio 2012 require license or not?

    does sql server management studio 2012 require license or not?
    No SSMS does not require license.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Installing SQLServer Management Studio 2012 - Windows 8.1

    I've tried several download sources trying to get a DB instance installed (works fine), however, getting an executable SSMS eludes me.  Saw lots of explanations of how to install it; they don't end up producing a tool I can run.  Anyone with
    either a link that will work, or the caveat I need to follow to get functional SSMS on Windows 8.1 would be appreciated.

    First please give information about what version of SQL Server SSMS you are trying to install. Again you did not give any information about error ? Unless you give complete information it would be difficult for us to provide you correct answer.
    Please edit your question and add more information
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Missing Microsoft.SqlServer.Management.Sdk.Sf.dllc

    I've tried to establish a database connection from Visual Studio Express 2013 to a local SQL Server Express 2014. The Server is visible and the connection test successful, but when I try to finish the connection, an error pops up saying that assembly Microsoft.SqlServer.Management.Sdk.Sf
    were not there.
    OS is Win 7/64 bits, VS and SQL Server installed just recently on a new PC (the SQL Server installtion also created a SQL Server 2008 folder plus content). I found two instances of Microsoft.SqlServer.Management.Sdk.Sf, but in the (x86) folders of SQL Server.
    I searched for solutions and found that one should install Microsoft® SQL Server® 2014 Shared Management Objects and
    Microsoft® System CLR Types for Microsoft SQL Server® 2014 (both 64) from here:
    from here: http://www.microsoft.com/en-ph/download/confirmation.aspx?id=42295
    I did that, but the 64bit versions still don't show up (I searched the whole HD, in case the installation had put them at weired locations). I appreciate every advice on how to solve the problem.
    Thanks a lot.
    Christian

    Free Download Microsoft.SqlServer.Management.Sdk.Sfc.dll to your computer.
    Copy the file to the install directory of the program that missing the dll file.
    If that doesn't work. you have to move the dll file to the system directory.
    (Windows 95/98/Me) - <kbd>C:\Windows\System</kbd>
    (Windows NT/2000) - <kbd>C:\WINNT\System32</kbd>
    (Windows XP, Vista, Windows 7) - <kbd>C:\Windows\System32</kbd>
    If you use a 64-bit version of Windows, The System Directory in <kbd>C:\Windows\SysWOW64\</kbd>
    Reboot computer.
    Otherwise 
    As the error message indicated, "Microsoft.SqlServer.Management.Sdk.Sfc.dll" cannot be found where it should be, or is
    simply missed.
    The file is typically at the directory: %ProgramFiles%\Microsoft SQL Server\100\SDK\Assemblies.
    You may need to repair the installation of SQL Server on the machine.

  • Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 on Visual Studio Ultimate 2014 Update 4

    I am getting the infamous  "Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0." The set up of my system is Visual Studio 2013 Ultimate update 4 and my SQL server is 12.0.2000 Express. I am also using SQL
     management studio 2014. I read other comments and blogs, and reinstalled the SQL Express 12.0.2000, but no luck yet. 

    Hi payam49er,
    >>I am
    getting the infamous "Could not load file or assembly Microsoft.SqlServer.management.sdk.
    sfc version 11.0.0.0."
    Based on your error, could you please tell me what you do operation and then you get the error message?
    Could you please tell me if you add a data connection from Server Explorer Window in Visual studio 2013 Ultimate update
    4 and then you get the error message?
    If yes, to check if the issue is related to the VS IDE issue, I suggest you can execute the following commands to check if it can
    help you add  data connection in VS2013 Ultimate Update 4.
    (1)I suggest you can run your VS in safe mode by executing Devenv.exe /SafeMode to add a data connect again.
    (2)I suggest you can use the Devenv.exe /ResetSettings to restores the IDE's default settings, optionally resets to the specified
    VSSettings file.
    (3)You can execute the Devenv.exe /ResetAddin to remove commands and command UI associated with the specified Add-in.
    In addition, if you used the SQL Server Express to connect the data in VS, you need to specify the server name
    as MyComputerName\SQLEXPRESS. If you used the SQL Server to connect the data in VS. Please you try to specify the server name as MyComputerName\InstanceName here to check the result.
    If still no help, according the error, it indicates that the problem is that the system cannot locate the right assembly (SQL
    Server SDK). So I think you may get better response and solutions if you consult on SQL Server forums.
    Thank you for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Microsoft.SqlServer.Management.IntegrationServices dll is missing

    Hi,
    I need to load a package programatically that is deployed to the SSIS catalog with the project deployment model. All the doc points to doing this using Microsoft.SqlServer.Management.IntegrationServices namespace; file: Microsoft.SqlServer.Management.IntegrationServices.dll.
    I cannot find this file. I have installed SqlServer developer version. Integration Services, SqlServer Data Tools, Client Tools SDK and Management Tools are selected and show installed.
    The Microsoft.SqlServer.Management.IntegrationServices.dll is not in the gac or anywhere on my machine.
    What I want to do is documented here: http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.integrationservices.aspx.
    Can you tell me what I need install to have this dll available?
    Thanks,
    Suzanne

    When an error is routed, the column number (lineage id) is available, but the column name is not. The lineage id is not helpful. I guess before 2012, the lineageid was available in the package xml and could be gotten that way. I found numerous examples from
    folks, but with 2012, the lineageids changed to text.
    So, what I am doing in a script task is retrieving the lineageids and column names (along with the executable task name) and storing them in a variable that is then available to the errors. (Also getting the error description, but that is easy).
    What is the recommended method of getting the column name when there is an error?
    I found some form of this code somewhere and added to it. It is working when I can load the package, which is what I am trying to do with the IntegrationServices.dll
    pkg = application.LoadPackage(pkgPath, null);
     Executables pExecs = pkg.Executables;
                StringBuilder sb = new StringBuilder();
                string d1 = ";";
                string d = ":";
    foreach (Executable pExec in pExecs)
                    TaskHost taskHost = (TaskHost)pExec;
                    string taskhostName = taskHost.Name;
                    //Test if the task is a data flow
                    if (taskHost.InnerObject is Microsoft.SqlServer.Dts.Pipeline.Wrapper.MainPipe)
                        //Cast the Executable as a data flow
                        MainPipe pipe = (MainPipe)taskHost.InnerObject;
                        // Loop over each object in the dataflow
                        foreach (IDTSComponentMetaData100 comp in pipe.ComponentMetaDataCollection)
                            foreach (IDTSOutputColumn100 column in comp.OutputCollection[0].OutputColumnCollection)
                                sb.Append(string.Concat(taskhostName, d, column.LineageID.ToString(), d, column.Name, d1));
    Dts.Variables["User::colList"].Value = sb.ToString();
    So, this is in a script task that runs before any of the DFTs. The error paths all have access to the colList variable via a script component. It gets split, loaded to a class list and queried with linq based on the lineageid of the column that errored.
    If you have something better, I would be glad to know about it. My requirements is to provide the column name and error description when there is an error.
    I DO NOT have the Microsoft.Sqlserver.Management.IntegrationServices.dll on my box. I have searched from the c:. As I said in the previous post, sorted by name, I see
    Microsoft.SqlServer.Management.CollectorTasks
    Microsoft.Sqlserver.Management.IntegrationServices should be the next folder. It isn't there!!
    The next thing I see is Microsoft.SqlServer.MSMQTask.
    I do see 4 Microsoft.SqlServer.IntegrationServices. folders, but the Management.IntegrationServices isn't there.
    Thanks for your help,
    Suzanne

  • Missing Microsoft.SqlServer.Management.IntegrationServices.dll

    Hi. I've been reading about "Microsoft.SqlServer.Management.IntegrationServices.dll" and would like to use it as a
    reference in a C# program.
    I cannot seem to find a copy of this dll in C:\Windows\Assembly, nor in C:\Program Files (Any)\Microsoft SQL Server.
    I tried performing a new install -- to no avail -- for the sole purpose of finding this dll. (I chose Database Engine, Client Tools, Integration Services, Client Tooks SDK, Management Tools, and SQL Client Connectivity SDK.)
    How can I acquire a copy of this .dll?

    Hi JFoushee,
    Thanks for share your solution to deal with this issue, this will be benefit for other community members who have similar problem with you.
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • Not able to access database from a remote machine using SQL Server Management Studio

    Hi,
    I have a DB_BOX with SQL Server 2008 R2 installed. I can access the databases on the local machine using SQL Server Management Studio but it is not accessible from other machines, though the machines are in same domain.
    I have remote enabled on SQL Server box, TCP enabled, firewall off. I checked with IP Address too, all SQL Server services are running.
    The SQL Server log shows the message
    The requested service has been stopped or disabled and is unavailable at this time. The connection has been closed.
    I get the below message in SSMS from remote machine.
    Details of error message are
    ===================================
    Cannot connect to DB_BOX.
    ===================================
    A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476
    Server Name: DB_BOX
    Error Number: 64
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

    Sorry, missed the message from the errorlog in the original post. You shouldn't have included that big .Net dump that hid the important facts. :-)
    My first Google attempt on that message (which I have never seen before) suggests that the TCP Enpoint is stopped, so try this:
    ALTER ENDPOINT [TSQL Default TCP]
    STATE=STARTED;
    Erland Sommarskog, SQL Server MVP, [email protected]
    This solves the problem. Thanks...

  • Package 'Microsoft SQL Management Studio Package' failed to load in Windows 7 OS/Sql Server 2008 R2

    I encountered this error while setting up a new machine. I have VS 2008 with SP1, VS2010 installed. I tried to re-install Sql Maangement Studio 2008 R2 and Sql Server 2008 R2 but to no avail. However, I were able to isolate this to missing dlls.
    It is looking for this dll. I don't see it installed on the system. Anyone can tell me why?
    microsoft.sqlserver.management.multiservermgmtui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
    Thanks, Scott Ma. Schlumberger IT & Software Community Leader/MS SME for Entity Framework and Windows Azure Platform.

    Hello,
    Please try to repair the SQL Server 2008 R2 installation:
    http://msdn.microsoft.com/en-us/library/cc646006.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Sql management studio login error

    ***When i tried to login to the MS SQL management studio with <sid>adm user am geeting the error
    The error text as below.
    TITLE: Microsoft SQL Server Management Studio
    Value cannot be null.
    Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)
    BUTTONS:
    OK
    Thanks

    Hi,
    Could you please check if there any directory named like 1,2,3 etc in
    C:\Users\<username>\AppData\Local\Temp\
    This error sometime occurs due to missing temporary file which is created every time at startup of ssms.exe file.
    If you can find any log file which says missing file name then you just create the missing directory in given location. The file will be created automatically next time.
    Thanks.

  • 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

  • Management Studio crashing on local SQL Server console

    Unable to start the SQL Server Management Studio on the SQL Server 2012 running on Windows Server 2012 and 2012 R2
    We have a number of SQL Servers deployed and in the last month all instances of the SSMS have stopped working with the following error message
    Problem signature:
      Problem Event Name:                        APPCRASH
      Application Name:                            
    Ssms.exe
      Application Version:                           2011.110.3000.0
      Application Timestamp:                     5081c1cd
      Fault Module Name:                          ntdll.dll
      Fault Module Version:                        6.3.9600.17476
      Fault Module Timestamp:                  54516af9
      Exception Code:                                 
    c000007b
      Exception Offset:                               
    000a36e5
      OS Version:                                         
    6.3.9600.2.0.0.272.7
      Locale ID:                                            
    1033
      Additional Information 1:                  1abe
      Additional Information 2:                  1abee00edb3fc1158f9ad6f44f0f6be8
      Additional Information 3:                  1abe
      Additional Information 4:                  1abee00edb3fc1158f9ad6f44f0f6be8
    We have done the following to resolve this without success:
    Run a repair from the installation package
    Uninstalled SSMS and reinstalled
    Copied in another ntdll.dll

    This what is generated in the log when trying to start the application:
    Date,Source,Severity,Message,Category,Event,User,Computer
    01/16/2015 09:39:58,Windows Error Reporting,Information,Fault bucket <c/> type 0<nl/>Event Name: APPCRASH<nl/>Response: Not available<nl/>Cab Id: 0<nl/><nl/>Problem signature:<nl/>P1: Ssms.exe<nl/>P2: 2011.110.3000.0<nl/>P3:
    5081c1cd<nl/>P4: ntdll.dll<nl/>P5: 6.2.9200.17046<nl/>P6: 53b485c4<nl/>P7: c000007b<nl/>P8: 00078c9e<nl/>P9: <nl/>P10: <nl/><nl/>Attached files:<nl/><nl/>These files may be available here:<nl/>C:\Users\felgersma\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Ssms.exe_89a64aa0912742cdc59239b0e49f3eea1441adb7_93419cf8<nl/><nl/>Analysis
    symbol: <nl/>Rechecking for solution: 0<nl/>Report Id: af322b86-9da6-11e4-9418-ac162d73da9f<nl/>Report Status: 2048<nl/>Hashed bucket:,(0),1001,,cvcnt42
    01/16/2015 09:39:56,Application Error,Error,Windows cannot access the file  for one of the following reasons: there is a problem with the network connection<c/> the disk that the file is stored on<c/> or the storage drivers installed on this
    computer; or the disk is missing. Windows closed the program SQL Server Management Studio because of this error.<nl/><nl/>Program: SQL Server Management Studio<nl/>File: <nl/><nl/>The error value is listed in the Additional Data
    section.<nl/>User Action<nl/>1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.<nl/>2. If the file still cannot be accessed and<nl/>
    - It is on the network<c/> your network administrator should verify that there is not a problem with the network and that the server can be contacted.<nl/>
    - It is on a removable disk<c/> for example<c/> a floppy disk or CD-ROM<c/> verify that the disk is fully inserted into the computer.<nl/>3. Check and repair the file system by running CHKDSK. To run CHKDSK<c/> click Start<c/>
    click Run<c/> type CMD<c/> and then click OK. At the command prompt<c/> type CHKDSK /F<c/> and then press ENTER.<nl/>4. If the problem persists<c/> restore the file from a backup copy.<nl/>5. Determine whether other
    files on the same disk can be opened. If not<c/> the disk might be damaged. If it is a hard disk<c/> contact your administrator or computer hardware vendor for further assistance.<nl/><nl/>Additional Data<nl/>Error value: 00000000<nl/>Disk
    type: 0,(100),1005,,cvcnt42
    01/16/2015 09:39:56,Application Error,Error,Faulting application name: Ssms.exe<c/> version: 2011.110.3000.0<c/> time stamp: 0x5081c1cd<nl/>Faulting module name: ntdll.dll<c/> version: 6.2.9200.17046<c/> time stamp: 0x53b485c4<nl/>Exception
    code: 0xc000007b<nl/>Fault offset: 0x00078c9e<nl/>Faulting process id: 0x2384<nl/>Faulting application start time: 0x01d031b36fa19f2f<nl/>Faulting application path: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Ssms.exe<nl/>Faulting
    module path: C:\Windows\SYSTEM32\ntdll.dll<nl/>Report Id: af322b86-9da6-11e4-9418-ac162d73da9f<nl/>Faulting package full name: <nl/>Faulting package-relative application ID:,(100),1000,,cvcnt42
    01/16/2015 09:35:02,Windows Error Reporting,Information,Fault bucket <c/> type 0<nl/>Event Name: APPCRASH<nl/>Response: Not available<nl/>Cab Id: 0<nl/><nl/>Problem signature:<nl/>P1: Ssms.exe<nl/>P2: 2011.110.3000.0<nl/>P3:
    5081c1cd<nl/>P4: ntdll.dll<nl/>P5: 6.2.9200.17046<nl/>P6: 53b485c4<nl/>P7: c000007b<nl/>P8: 00078c9e<nl/>P9: <nl/>P10: <nl/><nl/>Attached files:<nl/><nl/>These files may be available here:<nl/>C:\Users\felgersma\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Ssms.exe_89a64aa0912742cdc59239b0e49f3eea1441adb7_9d291751<nl/><nl/>Analysis
    symbol: <nl/>Rechecking for solution: 0<nl/>Report Id: fb97f994-9da5-11e4-9418-ac162d73da9f<nl/>Report Status: 2048<nl/>Hashed bucket:,(0),1001,,cvcnt42

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • 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]

Maybe you are looking for

  • How to get the currrent month and year from a new date object

    If I create a new Date object as "d", java.util.Date d = new java.util.Date();how can I format the date to get the current Month as 'Jan' and the current year as '2008'. So if I have something like d.getMonth() gets the current month as 'Oct' and d.g

  • EyeTV: Mac does not start automatically

    Mac does not start automatically for EyeTV recordings. I reinstalled EyeTV but it did not help. Any help appreciated. iMac i5, 2,7Ghz, OS X 10.7.4 Kind reagards, Torsten

  • Network Shares stopped showing up in Finder

    Hello, My MBP has been working perfectly for over a year. Two or three days ogo it looks like the computer stopped seeing all network shares. Almost like nothing that should be seen with Bonjour is showing up. Printers, Time machine backup server (QN

  • Cpu Scheduling

    Please help me .I will highly appreciate it. I need to make a cpu simulation program . Details: I need to iplement a round robin CPU sheduling algorithm.in order to simulate the algorithm for different values of time quantun , I need to declare a var

  • Magic lantern, the Canon 7D firmware 2.0.5?

    Hello, Anyone know if there is already informing the magic lantern, the Canon 7D firmware 2.0.5?