Tryin to connect Netbeans with SQL Management Studio

I'm trying to connect SQL Management studio with Netbeans 6.1..
This is what I've done so far..
1.Developing Web Application in Netbeans with Tomcat 6.0.18
2. Have installed the sql-jdbc bridge driver
I get error when I try to create a "New Database Connection to SQL Server 2005" using specified specified driver.
ERROR::: Login Failed for User ''. The USer is not associated with trusted SQL Server Connection.
My SQL Management Studio is not allowing me to have Mixed Mode for Authentication.....
Have been thru many posts and help but i'm unable to work it out...
PLEASE HELP..

SumitM wrote:
I'm trying to connect SQL Management studio with Netbeans 6.1..Why?
This is what I've done so far..
1.Developing Web Application in Netbeans with Tomcat 6.0.18
2. Have installed the sql-jdbc bridge driver
I get error when I try to create a "New Database Connection to SQL Server 2005" using specified specified driver.
ERROR::: Login Failed for User ''. The USer is not associated with trusted SQL Server Connection.
My SQL Management Studio is not allowing me to have Mixed Mode for Authentication.....
Have been thru many posts and help but i'm unable to work it out...
PLEASE HELP..So you mean you are trying to connect to SQL Server.
Right. Well this isn't a SQL Server administration support site. So you need to find one for your SQL Server administration problem.
Also I would recommend you use one of the free type 4 (pure Java) JDBC drivers for connecting to SQL Server rather than the ODBC bridge driver.
Good luck in your searching!

Similar Messages

  • AUto-renaming mdf & ldf filenames when restoring a database with SQL Management Studio

    Hi!
    I am using SQL Management Studio 2014 and I am experiencing some problems when restoring a database backup.
    I have a SQL Server 2008R2 & SQL Server 2012 instances.
    On the 2012 instance, when I restore a database and rename it into a new name, the mdf and ldf files get automatically renamed into the new database name : Great, this is the behavior that I expect.
    On the 2008R2 instance, the mdf and ldf files don't automatically get renamed to match the new database name and I have to perform the renaming manually - pretty annoying.
    Has anybody experienced this problem ? If yes, do you know of a fix ?
    Thank you
    Frederic

    Hi,
    You are using an external tool (SSMS GUI interface) which give you some behaviors like default names. this is very simple, just use a simple query to restore the database and dont use the GUI if you dont like its behavior
    (this behavior might change from time to time). You can use the profiler to make sure what is
    the real query that the SSMS sent to the server.
    >> How to: Restore a Database to a New Location and Name (Transact-SQL)
    http://technet.microsoft.com/en-us/library/ms190447(v=sql.105).aspx
    -- use any name that you want in the restore
    RESTORE DATABASE MyNewAdvWorks
    FROM AdventureWorks2008R2_Backup
    WITH RECOVERY,
    MOVE 'AdventureWorks2008R2_Data' TO 'D:\MyData\MyNewAdvWorks_Data.mdf',
    MOVE 'AdventureWorks2008R2_Log' TO 'F:\MyLog\MyNewAdvWorks_Log.ldf'
    GO
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Don't have permission to do anything in SQL Management Studio 2012

    I have installed SQL Server 2012 with SQL Management Studio on Windows 7 Enterprise SP1.  When I log into Studio, it won't let me do anything other than view.  I am using Windows Authentication and am logged in as a domain user with local admin
    rights.  I installed SQL with this same account.  If I try to use SQL Authentication, I can't figure out the default password for "sa".  Any ideas as to how to get access to this so I can create new databases from within Studio?

    I am using express.  Should I try developer instead?  I should mention that I also have whatever version of SQL Server Express came with my Visual Studio 2013 when I installed it.  
    Express should work fine.
    When you install SQL Server, there is a screen where you are supposed to enter a Windows user that is to have sysadmin permissions. There is a button "Add Current User" which is convenient.
    On the same screen you can also specify that you want to have SQL Server authentication enabled, and in this case you must specify the sa password. That is, there is no default password.
    Now, I don't install Express Edition very often, but I seem to recall that the Express install by default skips some of the screens unless you press an "Advanced" button along the way. The screen I'm talking about may be one them. But in
    that case, I would expect the user under which you ran the install to be added as sysadmin.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to connect to SP2010 content database from SQL Management Studio?

    I would like to migrate the SP 2010 Foundation content to 2013 Foundation.
    Both default installations with no external SQL server.
    When trying to connect from SQL Management Studio Express 2008 I get the error below.
    I'm using windows authentication and my domain admin account.
    tried all the steps  from
    this guide.
    What am I doing wrong here?
    Cannot connect to (local).
    ADDITIONAL INFORMATION:
    A network-related or instance-specific error occurred while establishing 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:
    TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)

    Hi,
    According to your description, my understanding is that you could not connect from SQL Management Studio Express 2008.
    Please try to connect to <MACHINENAME>\SQLEXPRESS or .\SQLEXPRESS instead of (local).
    A similar post for your reference:
    http://nali.org/post/96133108434/sql-server-a-network-related-or-instance-specific-error
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • SQL Server Express with SS Management Studio. Which version is lightest/smallest?

    I’m looking to download the smallest/lightest version of SQL Server Express with SS Management Studio. 
    Which option should I choose?
    http://www.microsoft.com/en-us/download/details.aspx?id=29062
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hello,
    What's the main propuse you use SQL Server Express edition? If you just use SQL Server in development. You can try to use SQL Server 2012 Express LocalDB.
    LocalDB is a lightweight version of Express that has all its programmability features.SQL Server Express LocalDB runs in user mode, and you can install it more quickly with fewer prerequisites (a minimal set of files necessary to start the SQL Server Database
    Engine) and no configuration.
    Reference:
    Introducing LocalDB, an improved SQL Express
    SQL Express v LocalDB v SQL Compact Edition
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Connection pooling with SQL Server 2008 and Tomcat 6.0

    Hello Everybody,
    I'm creating a web application using struts 2.0 , tomcat 6.0 and sql server 2008.
    Everything works fine but i'm unable to create connection pooling with sql server 2008.Please help me to solve this issue.
    Code for this is as foolows:
    in my META-INF/context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/spas" docBase="spas"
    debug="5" reloadable="true" crossContext="true">
    <Resource
    name="jdbc/spas_new"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="20"
    maxIdle="10"
    maxWait="-1"
    user="spas_user"
    password="spas123"
    driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
    url="jdbc:sqlserver://HGL-0053\dbo:1433;databaseName=spas_new;responseBuffering=adaptive;"/>
    </Context>
    in my web.xml
    <resource-ref>
    <description>SQL Server Datasource</description>
    <res-ref-name>jdbc/spas_new</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    and in my ConnectionThread.java file i've used:
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Sorry! No Context Exception");
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/spas_new");
    System.out.println("ds:"+ds);
    conn=ds.getConnection();
    Following is the exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Login failed for user ''.)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at login.V_SPAS_ConnectionThread.getConnection(V_SPAS_ConnectionThread.java:87)
    at org.apache.jsp.login.v_005fspas_005flogin_005fpage_jsp._jspService(v_005fspas_005flogin_005fpage_jsp.java:95)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
    at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at login.V_SPAS_SecurityCheckFilter.doFilter(V_SPAS_SecurityCheckFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''.

    Hi Karthikeyan,
    This is not the issue at all. I can open the management studio by the same login id and password and also i can make the database jdbc connection from plain java file.
    It does not give me any problem by them.
    I'm unable to find the actual problem. May be i'm missing something in connection pooling.
    Please help.
    Regards
    Mina

  • SSIS query returns no results - same query in SQL management studio works

    Hello,
    I'm running a very simple join to get a result set:
    SELECT dbo.sap_contracts.svc_id, dbo.sap_contracts.svc_code, dbo.sap_contracts.quantity, dbo.sap_contracts.start_date, dbo.sap_contracts.end_date
    FROM dbo.sap_contracts
    INNER JOIN dbo.contracts
    ON dbo.contracts.contract_id=dbo.sap_contracts.contract_id
    where customer_name='XXXXXXXXX'
    When I run this in SQL management studio it works fine and returns the list of existing "SAP contracts" in the DB (to compare to the customer's contracts actually in SAP).
    In SSIS (SQL 2012) I'm using an Execute SQL task to run this query and putting the full results set into a variable of type "object". I've done very similar things before and it worked fine. With this query in SSIS I get no results at all. Changing
    the variable type to "string" throws an error showing that the type being written to the variable is "DBNull" - so it seems that the query in SSIS returns no records, when in SQL management studio I get the 15 records that should be returned.
    Does anyone have any ideas of what could be wrong?
    Cheers
    Mark

    There are several connections to the DB in tasks before this one, and the task after this is a whole load of C# in a script task doing SOAP communications to the SAP ERP system to compare the result set from this SQL with the contracts in SAP ERP for the
    specific customer.
    Input variables are all correct (I've checked them about 15 times now with breakpoints on just about every task in the whole package) and I'm at the point of having to test everything in an attempt to see exactly what query is being sent to the SQL server
    and anything else I can do to see why nothing comes back. There is a almost complete lack of debugging tools in SSIS which doesn't make life any easier (something I've heard quite a few times in various forums).
    I'm tearing my hair out on this for half a day now and it's not funny any more, so apologies if I come across as a little frustrated.
    Cheers
    Mark

  • SQL Management Studio Installation Problems

    My hard drive crash and I'm forced to use Windows 8 on my laptop for a while. Visual Studio 2012 installed okay but I cannot get the SQL Management Studio to install.
    I have SQL Management Studio 2005 CD's and I've also tried to download and install the 2008 version.
    But no matter what I do I cannot get one to them to install and run. It always tells me I have compatibility problems.
    I'm desperate. I need this to work.
    Can someone please tell me how to get SQL Management Studio 2005 32 or 64 bit to run on on this Window 8 box?
    Or any version of SQL Management Studio to install and run.
    BTW, I've tried running in compatibility mode.

    FIrst of all, please notice that SSMS 2005 will probably not fit windows 8, but I am not sure about this (the SQL
    Server 2005 do not fit). Please check this link before you wasted your time :-)
    https://support.microsoft.com/kb/2681562/en-us?wa=wsignin1.0
    "SQL Server 2005 (the release version and service packs) and earlier versions of SQL Server are not supported on Windows Server 2012 R2, Windows Server 2012, Windows 8.1, or Windows 8. You will receive a warning in the Action Center if Windows 8.1
    or Windows 8 detects an instance of SQL Server 2005."
    You can use any version from 2008 and above.
    * If you are using 2008 express, then you must manually install Service Pack 3, after you install SQL Server 2008 Express Edition. In any case we are not at that point since your issue is with the installation itself :-)
    **** For our case *****
    1. You did not post your errors log till this time :-(
       You only gave us stories, and no facts
    2. If you are using the free edition EXPRESS, then you probably be better with the new version SQL EXPRESS 2014.
    * You are talking about the SSMS which is not the SQL Server, but just a client application. Do you have a server to connect to?
    if not, then you probably wanted to install the SQL Server with the SSMS tool, no?
    You can get the new version (no so new) 2014 here:
    https://www.microsoft.com/en-us/download/details.aspx?id=42299
    There are several files to download there:
    * SQLEXPRADV:  include the SQL Server and all the extra tools (including the server, Express Tools, Reporting Services, and Full Text Search, and more), is my prefered option for all developers and people that learn and use the SQL Server locally.
    * SqlLocalDB:  This is a different version that is much better for developers in most cases which they need to store the database in the application, it came to replace the EXPRESS "user instance". 
    * SQLManagementStudio:  this is only the SSMS without the server!
    * SQLEXPRWT: this is the basic version which include the basic tools
    * SQLEXPR: this is only the server (this is what people install on production in lot of cases, when they do not want any extra tools)
    *** If you have option to use windows 8.1 instead of 8, then you will feel that it is easier. I have to say that I too don't like the windows 8/8.1/2012/2012r2 but the 8.1/2012r2 brought back some of the old features and are better.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Ms Sql Management Studio 2014 Express + Azure

    Hi everyone
    I have SSMS 2014 Express and I use Azure SQL DB with SQL Database Update V12 (preview).
    Now I have the restricted access to my DB from ssms, but there (http://blogs.msdn.com/b/sqlreleaseservices/archive/2014/12/18/sql-server-2014-management-studio-updated-support-for-the-latest-azure-sql-database-update-v12-preview.aspx) talks about the enhanced
    functionality. I can not find this update for ssms. Please help me, where I can get this update?

    I have installed MS SQL Management Studio 2014. After that I have installed CU5 from link in your previous post.
    There was no change. After your last post I have installed
    CU6, but again there was no change.
    Now I have this:
    MS SQL Management Studio about window:
    In Azure:
    I'm sorry for russian language in screenshot, I don't know how to change it to english.
    No error occurs.
    GUI can not do anything with the database
    in Azure. I can only see the list
    of tables, and I can do a sql queries.
    But in the local database in the GUI
    all the features are present
    Hi AndrewG42,
    I notice that you are using the latest version of SQL Azure database (13.0.15). I suspect there’s no update in SSMS 2014 for this version of SQL Azure database.
    In other words, these features (select top 1000 rows, table designer, etc) are only going to be present with SSMS connecting to Azure v12 which version number is 12.0.2000.8. 
    Personally, regarding to above issue, I recommend you submit a feedback at
    http://feedback.azure.com/forums/34192--general-feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • SQL Management studio 2014 error

    While installing Sql management studio, error showing that Could not write value to key\Software. Verify that you have sufficient access to that key, or contact your support personnel . I Have right click on setup file and click on Run as
    a administrator but same error is showing. Kindly give me solution as quick as possible.

    Hi,
    please make sure you provide complete rights as per this support article
    http://support.microsoft.com/kb/913559
    Can you add comment in below connect item, post all logs as well.
    https://connect.microsoft.com/SQLServer/feedback/details/998266/could-not-write-value-to-key-software-verify-that-you-have-sufficient-access-to-that-key-or-contact-your-support-personnel
    I somehow feel its either issue with SQL Server or windows installer. You can locate logs files using below
    This link
    Please zip all log files and mail me complete log file I will upload it in connect. My mail id is in my profile
    Meanwhile please refer to below thread ans see answer given by Michpol
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/41dec503-ce0a-40e1-ae5f-363452890d48/sql-server-management-tools-could-not-write-value-to-key-software-error-code-1406?forum=sqltools
    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

  • SQL 2012 SP2 - Cannot open Maintenance Plans in SQL Management Studio

    Hello...
    We have a number of SQL 2012 SP2 instances running on Server 2012 R2 where we cannot open any Maintenance Plans via the SQL Management Studio.
    At times we've received an error message screen when attempting to open the Plan, but most of the time just nothing happens when you try to open the Plan. 
    I cannot get any of them to display the error now to even provide more information there.
    This happens even after a reboot and/or restarting SQL server.
    Everything else seems to be working and we can examine the individual pieces under the SQL Server Agent -> Jobs, but we cannot open the Maintenance Plan itself.
    We can even create new Plans via the "Maintenance Plan Wizard" but not from "New Maintenance Plan" and once a Plan exists, we can't open it.
    As a test, I tried connecting from a SQL 2008 R2 server and am able to open the plans, so it appears to be a SQL 2012 Management Studio issue rather than the Plans.
    Any thoughts would be appreciated.
    Thank you...

    Hello,
    Once you modify and save a maintenance plan with a greater version of SSMS (let’s say SSMS 2014) you cannot modify it again
    with an earlier version of SSMS again ( SSMS 2012 or earlier). That may be a possibility.
    If you did not modify the maintenance plan with SSMS 2014, then try to repair SQL Server 2012, apply the latest service
    pack (SP2), or try to uninstall only SSMS and reinstall it again.
    If you have Visual Studio installed, please apply the latest update.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to delete the line for 300SAP* in table USR02 in SQL Management studio

    Hello
    I used to delete the line for 300SAP* in table USR02 in SQL Enterprise Manager. After I could log on with “pass”.
    I wander how to delete it in SQL Management studio. When I expand tdatabase it takes so long time and it is uncontrollable

    Hello,
    you have to delete the row by a sql statement.
    Open a new query and run a script like this:
    use <Your SID DB>                 -- e.g. use PRD
    setuser 'your sid in lowercase'  --- e.g. setuser 'prd'
    delete from USR02 where MANDT = '300' and BNAME = 'sap*'
    go
    Run a complete backup before deleting data manually.
    Regards
      Clas

  • How do I load an SSIS package created in Visual Studio 2012 Shell (Integrated) onto SQL Server 2012 using SQL Management Studio 2012

    I am fairly new to this whole process of working with the Microsoft development environment.  Here is what I have to work with:
    an NT server running Microsoft SQL 2012  - Microsoft SQL Server Standard (64-bit)  11.0.2100.60
    and on my laptop (all freebie downloads):
    SQL Server Management Studio 2012            ver 11.0.2100.60
    Visual Studio 2012 Express  for Desktop Development and
    Visual Studio 2012 Shell (Integrated)
    I was able to create an SSIS package in
    2012 Shell (Integrated).  It takes a flat file and imports it into an SQL database table.  It runs successfully from within the
    2012 Shell (Integrated) envrionment.
    But I am having trouble figuring out how to set this up on the 2012 SQL Server.  I see that one of my colleagues created an Integration Services Catalog,
    and using SQL Management Studio I was able to create a folder under that called DigLic.  But when I go to the Projects subfolder of DigLic and attempt to import my SSIS package, I get an error message:
    "To launch the Integration Services Deployment wizard, one of the components: Integration Services, Management Tools - Basic or Business Intelligence Development Studio has to be installed by the SQL Server
    2012 Standard, Enterprise, Developer, or Evaluation Edition.  To install a component, run SQL Server Setup and Select the component name"
    I realize that Express Versions of Visual Studio lack the full feature set of a professional version.  But am I wrong in assuming that owning a server version of SQL Server 2012 gives us license to a professional
    version of SQL Management Studio 2012?  If so, how would I go about getting this software component installed?  And I am not clear if this is something that needs to be installed on our SQL Server or if I simply need a professional version of SSMS
    loaded on my laptop.
    I work for a company that is fairly fractured in its repsonsibilities, so I would need to know exactly what to ask for if I need to track down any licenses that I might need and if I need to have any specific software installed on our SQL server or on my
    laptop.
    All helpt would be greatly appreciated.
    Thanks!

    Arthur,
    Thank you for your reply.  But at this point, one of my points of confusion is what software I have available to me.  I wish I had a useful central help desk to call up and just say, "Hey, load me up with all of the professional version(s) of Visual
    Studio.  But I do not know what we have license to.  And I kind of need to know what the options are, so that I can ask a specific question of our vast buracracy.
    For now, I have downloaded only free versions of Visual Studio client software.  Since my company does have servers running Microsoft SQL Server, I am going to assume that we have proper licensing for those servers.  But does that server license
    allow me to get any professional versions of the PC client software for the various Visual Studio(s) 2012?
    And if I get a professional version of Visual Studio 2012, does that do away with the three different flavors that I have right now?  I have 2012 versions of SQL Server Management Studio, Visual Studio Express, and Visual Studio Shell (Integrated).
    Your feedback is much appreciated.
    Thanks!

  • Different row counts between SQL management studio and Visual Studio

    Hi
    I'm pulling data from a NAV database using a stored procedure containing a Pivot (due to bad table design), the problem is my SQL management studio is returning 53 rows of records yet Visual studio is only returning 5.
    I initially copied the query from management studio into VS to create my dataset, however after returning very few records I used a stored procedure instead.
    Unfortunately the same result occurred, 5 records instead of 53,
    Is there something different between the two systems, perhaps VS doesn't like something in the Pivot?
    Can anyone help?
    Thanks
    Charlie
    CREATE
    PROCEDURE [dbo].[PosReleaseTestPrepared]
    --@Date AS DATETIME
    AS
    BEGIN
    -- -- SET NOCOUNT ON added to prevent extra result sets from
    -- -- interfering with SELECT statements.
    -- SET NOCOUNT ON;
    --    -- Insert statements for procedure here
    DECLARE @cols
    NVARCHAR(MAX),
    @stmt NVARCHAR(MAX)
    SELECT        @cols
    =
    ISNULL(@cols
    +
    +
    + ES.Code
    +
    FROM          
    (SELECT       
    Code
    FROM            dbo.[Branston
    Live$Enquiry Step]
    WHERE        [Enquiry Code]
    =
    'PREPARED')
    AS ES
    SELECT        @stmt
    =
        SELECT *
        FROM
        (SELECT PR.[Entry No_], PR.[Mobile User Code], PR.[Failure Step Code],PR.[Item No_], PR.[Customer No_] ,[Enquiry Step Code],  Value
         FROM dbo.[Branston Live$Positive Release] PR
          LEFT OUTER JOIN dbo.[Branston Live$Positive Release Step] PRS
           ON PR.[Entry No_] = PRS.[Positive Release Entry No_]
         WHERE PR.[Enquiry Code] = ''PREPARED'') PR
         PIVOT
          MAX(VALUE)
          FOR [Enquiry Step Code] in ('
    + @cols
    +
         ) AS P'
    EXEC
    sp_executesql@stmt
    END
    GO

    Hi Satheesh, Latheesh
    I'm using a shared data source in VS, the server and database are definitely pointed to the right location. As is the Stored procedure/SQL query. The table names "PositiveRelease" are bespoke to us and therefore are easy to recognise.
    Below is one of the 5 records from the VS report:
    Mobile   User Code
    Customer   No 
    Item   No 
    Failure Step Code
    Depot   Date
    PP_GY
    102980
    S10586
    DEPOT_DATE
    17/02/14
    Below is the record from the SQL management studio, you can see it is pulling through matching records.
    Mobile User Code
    Customer No_
    Item No_
    Failure Step Code
    DEPOT_DATE
    PP_GY
    102980
        S10586
    DEPOT_DATE
    17/02/2014

Maybe you are looking for