SSM 7.5 - NW database or PAS

Hey Guys,
Looking for the SSM 7.5 Architecture I got some doubts about the Data Integration. In our project, we are working with NW CE (SQL Server database) + SSM 7.5 . When installed NW, a SQL Server database turn available to play around.
-> Can the SSM 7.5 application read directly (without PAS) the data stored into the SQL Server (NW) database?  If yes, Oracle database are also compatible?
-> It´s required load the data into the PAS database? If yes, can BO Data Service load data into the PAS database (without IDSQL scripts)?
Best Regards,
Bruno Heissler
Edited by: Bruno Heissler on Sep 14, 2011 8:09 PM

Hello Bruno, I had the same question about loading data into PAS model , from a database source (SQL SERVER, ORACLE, etc.)
So I studied some options, even use BO data services to load data, but unfortunatelly after all testing, I had to use IDQL procedures to make the load work from any database source, because you need to load data into de SSM database and then make it available for SSM UI (Scorecards for example).
SSM has an Entry & Aproval option, but this is used only for manual data.   IDQL procedures is the rigth way to load data from a file o database.
use Access Lslink  to do that , below you'll find and easy example.
Hope you're more clear now!!
ACCESS LSLINK
CONNECT   Your_link_iD_TO_DATABASE      (this can be almost any database, including Oracle and SQL server)
select  Your_columns from Your_table
READ
END

Similar Messages

  • SSM - more than 12 dimensions , cannot import variables into PAS database

    Hi,
    I am trying to configure a pilot implimentation of SSM 7.0. This is really a case of learning while moving forward. Based on the success of the pilot management will decide whether we buy SSM.
    I have import all the Dimensions (characteristics) of an Infocube into a database in PAS.
    Now I am trying to import Variables (key figures)
    Unfortunately I am unable to progress as it keep telling me:
    Schema> IMP VAR * FORCE
    VAR224:
    Variables May Only Have 12 Dimensions
    Any advice on how to progress? We cannot change the Infocubes. How can we get pass this limitation? Hopefully this issue is not a deal buster...

    Hi Adriaan,
    Normally when you are accessing an InfoCube  to load data using the BI Connector in PAS, what you would reference would be a Query, not the InfoCube  directly.  Because of restrictions of the PAS engine, each measure (key figure) can be associated with at most 12 dimensions (characteristics or hierarchies).  As InfoCube  typically contain significant numbers of characteristics and key figures, the only of restricting this is to create a Query and use that as the source for the data in PAS.
    There is a Best Practice published which discusses some suggestions of doing this [which you can see here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/701b8da0-3135-2b10-929d-936e43164b06].  I will also look and see if there is other published documentation or recommendations on this.
    Hope this helps,
    Robert

  • PAS and SSM 10.1 Connection

    Hi SSM Experts,
    I have already installed PAS and Strategy in the server, I also have PAS locally in a virtual machine, I have already configured de lsserver.ini document in the server:
    [192.168.2.212]
    tcp_protocol=winsock
    username=pipadmin
    Password=?
    PROTOCOL=TCP
    SERVICE=PILOT
    CURSOR=LSSCMPTR
    [windows]
    NCSLOG=INFO
    Version=940
    the SAP SM Listener service is started.
    the server is Windows Server 2008 R2 Standard.
    tha DB is SQL Server.
    I have already checked this error in forums and all solutions given for this same error has not worked for me.
    when I try to login to PAS, I get this error:
    COM013: The attempt to connect to the server failed. The call to function connect received the WINSOCK error code -  WSAECONNREFUSED: Connection refused. This usually indicates that the Pilot Analysis server TCP/IP listener is not active on the server machine. Check to make sure the server is ready to accept connections from this Analysis Server client. Also make sure that the port number you are connecting to is the correct port. Consult the WINSOCK documentation or winsock.h file from your WINSOCK vendor for additional details.
    Thanks for your help.

    Hi,
    Did you try PAS locally on the server, is working fine? Regarding the LSServer.ini, those server settings should be present in the LSServer.ini files that exist locally in each PAS client installation. Also regarding those settings, I notice that you are using PIPADMIN as the user account, but normally PIPADMIN is a NetWeaver UME user, to use in the PAS connection, should be a local user account in the server where PAS is installed.
    Pedro

  • SSM - na data available

    Hi,
    I created a new database in PAS and created the model link etc.
    I then mapped a cube sucsessfully to the new database (not importing the data, want to use the caching option)
    But in DataView in PAS and within the scorecard of Strategy Management no data is being shown. IThe connection to the BW system is sucssessfull.
    Am I missing something? I am sure I followed all the steps in 8.3 of the server config guide..

    Hi Adriaan,
    Did you do all these steps through the BI Connector Administrator tool?  I figure that you probably did this, but you are not explicit in the steps that you performed so I wanted to be sure.
    If you did use the BI Connector Administrator, then a trace file should have been created which shows the output of the process of mapping the data from BW into the PAS model.  By default this would be located in the "C:\Program Files (x86)\SAP\SSM\Application Server\Home" folder, and would be called BICTRACE_SCHEMA_<MODELNAME>.  While this file has no extension, it is a text file and can be easily opened using Notepad.
    What I would be interested in is whether any error messages are returned in the log, and whether it appears as though the data is successfully mapped.  If that did work correctly, or at least no errors are obviously present, then there are some more steps which could be tried which I can probably pass along.
    Thanks and regards,
    Robert

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Copy Database Wizard error: Enumerate subsystems failed for JobServer

    Hi, non-SQL person looking for some guidance. I'm trying to copy databases with permissions from a Win2008 server with SQL2008R2 to a Win2012 server with SQL2012. I'm running SSMS on the 2012 instance, and intiating the Copy Wizard from there. I'm getting
    the following error. Thanks.
    TITLE: Copy Database Wizard
    Enumerate subsystems failed for JobServer 'Win2012serverSQL2012'.
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3401.0+((SQL11_SP1_QFE-CU).140109-1303+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Enumerate+subsystems+JobServer&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    The EXECUTE permission was denied on the object 'sp_enum_sqlagent_subsystems', database 'msdb', schema 'dbo'. (Microsoft SQL Server, Error: 229)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3401&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476

    TITLE: Copy Database Wizard
    Create failed for JobStep 'NAME_CDW_2008ServerName_Win2012serverSQL2012'.
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000.0+((KJ_PCU_Main).120628-0827+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+JobStep&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    The @flags parameter is not valid for a job step of type 'SSIS'. (Microsoft SQL Server, Error: 14545)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.00.3401&EvtSrc=MSSQLServer&EvtID=14545&LinkId=20476
    BUTTONS:
    OK
    Hi scogordo,
    From your description, are you using SSMS 2008 R2 to perform the copy action?  I make a test on my computer, and get the same error as yours. To work around this issue, please use SSMS 2012 to copy database from SQL Server 2008 R2 to SQL Server 2012.
    There is a feedback to Microsoft about the issue for your reference.
    https://connect.microsoft.com/SQLServer/feedback/details/810037/copy-database-fails-when-copying-database-from-sql-server-2008-r2-sp2-to-sql-server-2012-sp1 
    Thanks,
    Lydia Zhang

  • Error in standby database

    Hi, I've Two database one for primary(GISC) and one for standby (GISCST) when i start open standby database i appeare erro :
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCLSB\SYSTEM01.DBF'
    I take the copy the datafiles from primary database and Pase them to the Standby database
    and the Enviroment of two database is :
    SPfile for primary(GISC) IS:
    *.compatible='10.2.0.3'
    *.control_files='C:\oracle\product\10.2.0\oradata\gisc\CONTROL01.CTL','C:\oracle\product\10.2.0\oradata\gisc\CONTROL02.CTL','C:\oracle\product\10.2.0\oradata\gisc\CONTROL03.CTL'
    *.db_block_size=8192
    *.db_cache_size=30M#DEMO
    *.db_file_multiblock_read_count=16
    *.DB_FILE_NAME_CONVERT='C:\oracle\product\10.2.0\oradata\gisc','C:\oracle\product\10.2.0\oradata\giscst'
    *.db_name='GISC'
    *.fal_client='gisc'
    *.fal_server='giscst'
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG= (GISC, GISCST)'
    *.LOG_ARCHIVE_DEST_1='LOCATION=C:\oracle\product\10.2.0\flash_recovery_area\ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=GISC'
    *.LOG_ARCHIVE_DEST_2='SERVICE=GISCST VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=GISCST'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_FILE_NAME_CONVERT='C:\oracle\product\10.2.0\oradata\gisc','C:\oracle\product\10.2.0\oradata\giscst'
    *.optimizer_mode='choose'
    *.parallel_threads_per_cpu=4#SMALL
    *.pga_aggregate_target=30M#DEMO
    *.query_rewrite_enabled='true'
    *.query_rewrite_integrity='trusted'
    *.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
    *.shared_pool_size=50M#DEMO
    *.STANDBY_FILE_MANAGEMENT='AUTO'
    *.star_transformation_enabled='true'
    *db_unique_name='gisc'
    *.service_name='gisc'
    *.instance_name='gisc'
    *.LOG_ARCHIVE_FORMAT='log%t_%s_%r.arc'
    listener.ora for primary(GISC):
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.2)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = c:\oracle\product\10.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = gisc)
    (ORACLE_HOME = C:\oracle\product\10.2.0)
    (SID_NAME = GISC)
    (SID_DESC =
    (GLOBAL_DBNAME = GISC_DGMGRL)
    (ORACLE_HOME = C:\oracle\product\10.2.0)
    (SID_NAME = GISC)
    TNSNAME For (GISC):
    GISC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.2)(PORT = 1521))
    (CONNECT_DATA =
    (SID = GISC_DGMGRL)
    GISCST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.3)(PORT = 1521))
    (CONNECT_DATA =
    (SID = GISCST_DGMGRL)
    SPfile for Standby database (GISCST):
    *.compatible='10.2.0.3'
    *.control_files='C:\oracle\product\10.2.0\oradata\giscst\CONTROL01.CTL','C:\oracle\product\10.2.0\oradata\giscst\CONTROL02.CTL','C:\oracle\product\10.2.0\oradata\giscst\CONTROL03.CTL'
    *.db_block_size=8192
    *.db_cache_size=30M#DEMO
    *.db_file_multiblock_read_count=16
    *.DB_FILE_NAME_CONVERT='C:\oracle\product\10.2.0\oradata\gisc','C:\oracle\product\10.2.0\oradata\giscst'
    *.db_name='GISC'
    *.fal_client='giscst'
    *.fal_server='gisc'
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG= (GISC, GISCST)'
    *.LOG_ARCHIVE_DEST_1='LOCATION=C:\oracle\product\10.2.0\flash_recovery_area\ VALID_FOR=(ALL_LOGFILES, ALL_ROLES) DB_UNIQUE_NAME=GISCST'
    *.LOG_ARCHIVE_DEST_2='SERVICE=GISC VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=GISC'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_FILE_NAME_CONVERT='C:\oracle\product\10.2.0\oradata\gisc','C:\oracle\product\10.2.0\oradata\giscst'
    *.optimizer_mode='choose'
    *.parallel_threads_per_cpu=4#SMALL
    *.pga_aggregate_target=30M#DEMO
    *.query_rewrite_enabled='true'
    *.query_rewrite_integrity='trusted'
    *.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
    *.shared_pool_size=50M#DEMO
    *.STANDBY_FILE_MANAGEMENT='AUTO'
    *.star_transformation_enabled='true'
    *db_unique_name='giscst'
    *.service_name='giscst'
    *.instance_name='giscst'
    *.LOG_ARCHIVE_FORMAT='log%t_%s_%r.arc'
    listener.ora for standby (GISCST):
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.3)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = c:\oracle\product\10.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = giscst)
    (ORACLE_HOME = C:\oracle\product\10.2.0)
    (SID_NAME = GISCST)
    (SID_DESC =
    (GLOBAL_DBNAME = GISCST_DGMGRL)
    (ORACLE_HOME = C:\oracle\product\10.2.0)
    (SID_NAME = GISCST)
    TNSNAME for standby (GISCST):
    GISCST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.3)(PORT = 1521))
    (CONNECT_DATA =
    (SID = GISCST_DGMGRL)
    GISC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.2)(PORT = 1521))
    (CONNECT_DATA =
    (SID = GISC_DGMGRL)
    then i do ping to service :
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Administrator>tnsping gisc
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2
    012 09:49:17
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.0.2)(PORT = 1521))) (CONNECT_DATA = (SID = GISC_DGMGRL)))
    OK (0 msec)
    C:\Users\Administrator>tnsping giscst
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2
    012 09:49:40
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.0.3)(PORT = 1521))) (CONNECT_DATA = (SID = GISCST_DGMGRL)))
    OK (10 msec)
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\gis>tnsping gisc
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2
    012 09:52:22
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.0.2)(PORT = 1521))) (CONNECT_DATA = (SID = GISC_DGMGRL)))
    OK (10 msec)
    C:\Users\gis>tnsping giscst
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 12-FEB-2
    012 09:52:30
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.0.3)(PORT = 1521))) (CONNECT_DATA = (SID = GISCST_DGMGRL)))
    OK (0 msec)

    CKPT wrote:
    Hello,
    Do as follows.
    From standby:-
    SQL> alter database recover managed standby database disconnect from session;Later post the content from alert log file.
    Now, Post below Commands from primary & check for any errors in Alert log file of primary
    set lines 100
    set numwidth 15
    column ID format 99
    column "SRLs" format 99
    column active format 99
    col type format a4
    select     ds.dest_id id
    ,     ad.status
    ,     ds.database_mode db_mode
    ,     ad.archiver type
    ,     ds.recovery_mode
    ,     ds.protection_mode
    ,     ds.standby_logfile_count "SRLs"
    ,     ds.standby_logfile_active active
    ,     ds.archived_seq#
    from     v$archive_dest_status     ds
    ,     v$archive_dest          ad
    where     ds.dest_id = ad.dest_id
    and     ad.status != 'INACTIVE'
    order by
         ds.dest_idID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE
    ARCHIVED_SEQ#
    1 VALID MOUNTED-STANDBY ARCH MANAGED MAXIMUM PERFORMANCE 0 0
    0
    2 VALID MOUNTED-STANDBY ARCH MANAGED MAXIMUM PERFORMANCE 0 0
    0
    11 VALID MOUNTED-STANDBY ARCH MANAGED MAXIMUM PERFORMANCE 0 0
    0
    >
    SQL> select error_code,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') ,message,facility from v$dataguard_status;ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    0 15-FEB-2012 13:05:02
    ARC0: Archival started
    Log Transport Services
    0 15-FEB-2012 13:05:02
    ARC1: Archival started
    Log Transport Services
    ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    0 15-FEB-2012 13:05:02
    ARC1: Becoming the 'no FAL' ARCH
    Log Transport Services
    0 15-FEB-2012 13:05:02
    ARC1: Becoming the 'no SRL' ARCH
    ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    Log Transport Services
    0 15-FEB-2012 13:05:02
    ARC0: Becoming the heartbeat ARCH
    Log Transport Services
    0 15-FEB-2012 13:09:57
    ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    Attempt to start background Managed Standby Recovery process
    Log Apply Services
    0 15-FEB-2012 13:09:57
    MRP0: Background Managed Standby Recovery process started
    Log Apply Services
    ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    0 15-FEB-2012 13:10:03
    Managed Standby Recovery not using Real Time Apply
    Log Apply Services
    0 15-FEB-2012 13:10:03
    Media Recovery Waiting for thread 1 sequence 7
    Log Apply Services
    ERROR_CODE TO_CHAR(TIMESTAMP,'D
    MESSAGE
    FACILITY
    9 rows selected.

  • SQL Server 2008 won't recognize copied database

    I copied my mdf and ldf file to the cloud server, and the data path is correct. But the database does not show up in management studio. I have done this before between in house servers running SQL2008.  Could it be ownership, permissions, or that
    the server has another name, or something else.?  It is a big file (130GB) that takes 4 days to upload via RDP so I dont want to create a new database on the cloud and then import my data, I would rather use the existing database file taken from my server

    There might be something missing in your requests, please check below options.
    1. If you are trying to attach databases and you don't see files while attaching in SSMS then Olaf point it correct and please follow that.
    2. If you have just copied the db files on cloud db server and you want to see them in SSMS under Server->User Database Folder, then you need to attach them to see them on SSSMS
    3. You can try backup with zip option if ssms supports or third party zip options, then copy to cloud server and then restore them by giving proper data\log file paths
    4. Also please make sure that you have given you and SQL Server Services full access on SQL Server data\log\binaries folders to see them via SSMS.
    Santosh Singh

  • Reinitialising sql server connection in ssms sql server express

    As a beginner I added several databases to my server in sqlexpress. These are now resident in connect to server in ssms. However I used the normal delete function in windows to delete some of the databases, without realising what would happen. As a result the
    server ./sqlexpress retains references to the deleted databases showing up in ssms connect to server. How do I get rid of those references please. I am using vs2010 and vs 2012 express.
    I have tried connecting to the databases using ssms but since the databases don't exist the connection fails. There's also a question of passwords since i'm using sql asuthentication and these databases were used over a year ago. Quite simply I don't know what
    to try and a search on re-initialization on the web only comes up with install, or re-install and seems to center around 2005 versions of vs

    Can you try detach option? Right click on db name and choose detach
    If that also doesn't work try Take Offline option.
    This has worked for me in the past.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SSMS 2012 crashes when opening new query on instance with Failover Clustering installed (not 2012 R2)

    Hi,
    I'm trying to start a new query in SSMS, but every time I click the "New Query" button on the tool bar or open a new query window by Object Explorer -> right-click -> Script as -> New Query Editor Window, SSMS hangs with (Not Responding)
    and has to be restarted.
    I'm running SSMS 2012 (v11.0.3381.0) on Server 2012 6.2.9200. I'm connecting to the primary node of an AlwaysOn Availability Group, and SSMS is located on the primary node itself.
    I'm aware of KB2908806, which describes the same symptoms, but this only applies to Windows 6.3.x. Is there an equivalent fix for 6.2.x, or another workaround?
    EDIT: To confirm behaviour: "New Query" works intermittantly, Script as ... to -> New Query Editor Window always crashes.

    Hello,
    there are many reasons your SSMS process would "hang", including bad server performance or internal SSMS processes being suspended due to locking.
    When you open a new query window, what your SSMS application does internally is to open a new connection to your instance. You could be experiencing problems in your instance that are causing the logon process to take too long.
    How does the bad performance issue generally happen? Is it only happening by connecting to the instance in SSMS? Does the same problem happen when you attempt to connect through an application, or by any other clients?
    What happens if you try to connect to the instance through a remote computer?
    Check your server's resource monitor for resource usage. Do you see any counters which could indicate performance problems?
    Please post the results of @@Version for your server.
    Can you open Activity Monitor in SSMS? How many sessions are listed? Does it also take a long time when you first log into the instance in SSMS, before opening a new query tab? Is the SSMS hanging for all databases when opening a new query window, or just
    for the ones included in the availability group? Have you tried to connect to your instance by using a DAC connection?
    DAC: http://technet.microsoft.com/en-us/library/ms178068%28v=sql.105%29.aspx
    Do you have any server logon triggers? Are there any traces running other than the default trace? What are your server specifications? How many logical cores does it have? Is it being used in a production environment? Is there any CPU or I/O affinity set
    for the instance? Whats your min/max memory settings? Run DBCC MEMORYSTATUS and post the results here.
    Are there any error messages in the SQL Server errorlog? Is your server dedicated to the SQL Server Instance?
    Run this query and post the results:
    SELECT * FROM SYS.dm_os_process_memory

  • Modelling database question

    Hi there,
    I'm planning to build a project with VS 2013 wich will include a web service and a database. As I'm quite a noob in development I'm looking for some advices on  "elegant way" to do this.
    I actually created a solution that include a web service project and a SQL project and configured pubilsh settings for both project.
    Now I'd like to build my database and I was wondering if I could do it "visually" by drawing a diagram Inside VS2013.
    Regards,
    Mickael, My technet galleries contributions : ConfigMgr driver injector : http://gallery.technet.microsoft.com/ConfigMgr-Driver-Injector-aae7d17d SCCM Collection splitter : http://gallery.technet.microsoft.com/SCCM-Collection-Splitter-e1c82b06 ConfigMgr
    TS Tools : http://gallery.technet.microsoft.com/TSTools-f9b01357

    Hi,
    using SSDT as a designer is quite simple and it also comes with a limited (table / view) designer. Although it might not have the full capabilities of a ER designer like ErWin, you will be able to create a table, select the data types for it, define constraints,
    etc. If yu are more familiar with SQL Server Management Studio (SSMS), you can also create the objects in Maagement Studio and then reverse engineer them back into the project by using the "Schema Compare" option with the database you actually worked on with
    SSMS as a "source database" and the project as the "Target database". This will get you all the schema imported to the project. Let us know if you need more information about this.
    A good starting point would be the following article:
    http://msdn.microsoft.com/en-us/library/hh272686(v=vs.103).aspx
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • Renaming the Physical Filename for Datafiles in SQL Server 2008

    Can anyone tell me how to change the physical filename of the datafiles? There doesn't seem to be any documentation on this, yet its quite easy to change the logical filename.

     There are several ways to make this change, however to rename the physical database files at operating system level you will have to take the database offline
    1. Use SSMS to take the database Offline (right-click on Database, select Tasks, Take Offline), change the name of the files at the OS level and then Bring it Online.
    2. You could Detach the database, rename the files and then Attach the database pointing to the renamed files to do so.
    3. You could Backup the database and then restore, changing the file location during the restore process.
    4. using T SQL
    ALTER DATABASE databaseName SET OFFLINE
    GO
    ALTER DATABASE databaseNAme MODIFY FILE (NAME =db, FILENAME = 'C:\Program
    Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\db.mdf')
    GO
    --if changing log file name
    ALTER DATABASE  databaseNAme MODIFY FILE (NAME = db_log, FILENAME =
    'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\db.ldf')
    GO
    ALTER DATABASE databaseName SET ONLINE
    GO
    for more info http://technet.microsoft.com/en-us/library/ms174269.aspx

  • Installing Sql Server 2012 Enterprise edition on Windows 7

    Hello,
    I have a desktop with 1 TB Hard Disk and 8GB RAM. It has Windows 7 installed. I want this to be used as staging server at my work. I installed the SQL Server 2012 Enterprise edition. While installing I used service accounts as default when prompted
    which I normally do while installing on a desktop. But now I want this to be used as a server where people can access this box as they do on a sql server machine .i.e. connect to server using SSMS and get to databases on the server and also remote
    desktop into this machine. So, Is it fine to install with default service accounts?
    Also how can I connect to this newly installed sql server box from another desktop using SSMS?
    Thank You.

    Hello,
    Installation of  SQL server 2012 Enterprise edition on Client machine(Win 7)  is not supported( you can install ) .See below for Hardware and Software requirements for SQL Server 2012.You cannot claim support from Microsoft and I guess statging
    is also important.
    http://msdn.microsoft.com/en-us/library/ms143506.aspx
    Now to your main question.To connect
    Makes sure Browser service is running
    Make sure you make exception in firewall for SQL Server services and incoming connections
    Make sure you specify correct instance name when connecting from remote
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SSRS report email Scheduling omit zero record

    Is that a way to omit zero record for SSRS report email scheduling?
    That means if zero record happened it shouldn't trigger emailing.

    Hi SAMSUNG TECH,
    Per my understanding that you don't want to send the scheduled email subscription if the report have no data, right?
    I have tested on my local enviroment that you can modify the commend in the job step include some condition to send the email or not.
    Detials information in below for you reference:
    Open SQL Server Management Studio (SSMS) to connect to Database Engine ->expand SQL Server Agent->expand Jobs, double-click the Job.
    you can use query below to find the Subscription you have just created and the “ScheduleID” in the table is equal to the Jobs Name.
    use ReportServer;
    SELECT USR.UserName AS SubscriptionOwner
    ,SCH.ScheduleID
    ,SCH.NextRunTime
    ,SCH.LastRunTime
    ,SCH.EndDate
    ,SCH.EventData
    ,SUB.EventType
    ,SUB.SubscriptionID
    ,SUB.ModifiedDate
    ,SUB.[Description]
    ,SUB.DeliveryExtension
    ,SCH.Name AS ScheduleName
    ,CAT.[Path] AS ReportPath
    ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
    INNER JOIN dbo.Users AS USR
    ON SUB.OwnerID = USR.UserID
    INNER JOIN dbo.[Catalog] AS CAT
    ON SUB.Report_OID = CAT.ItemID
    INNER JOIN dbo.ReportSchedule AS RS
    ON SUB.Report_OID = RS.ReportID
    AND SUB.SubscriptionID = RS.SubscriptionID
    INNER JOIN dbo.Schedule AS SCH
    ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
    ,CAT.[Path]
    2.  Select "Steps" on the left pane on the Job Properties window.
    3.  Click Edit button in the bottom of the window and then change the command
    Existing command is:
    EXEC [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    Change the command as below: (Remember to check the Database Name and table name):
    If exists
    (Select top 1 * from [DBName].TableName )
    EXEC   [ReportServer].dbo.AddEvent @EventType='TimedSubscription',   @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    BEGIN
    END
    Note: Change the @EventType and @EventData to the values in your job,the value of this two fields can be found by execute the query in step1.
    More details information in below articles:
    http://www.jasonyousef.com/2012/02/dont-send-that-empty-ssrs-report.html
    http://blogs.msdn.com/b/bimusings/archive/2005/07/29/445080.aspx
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • Second day of "In Recovery" state

    Hello,
    during insert of 100 billion records my HDD gone out of free space, SSMS crashed. After restarting SSMS I saw my database in state "In Recovery". Today is the second day of the recovery. I have no backups. Data file size is about 6GB, log file
    50GB (!). I have now about 30 GB of free space. I don't see anywhere recovery progress. And probably am not sure recovery is active.  All settings (recovery etc.) are default settings for SQL Server Express 2012.. What can I do? I just want not to lose
    my database and go to the state before this large insert.
    Sergey.

    Hello Sergey,
    The following blog explains that "Too many Virtual log files can cause slow database recovery"
    http://blogs.msdn.com/b/saponsqlserver/archive/2012/02/22/too-many-virtual-log-files-vlfs-can-cause-slow-database-recovery.aspx
    To correct the situation and prevent its recurrence:
    Backup the Transaction Log of the database
    Shrink the Transaction Log as much as possible using DBCC SHRINKFILE
    Ideally do this in a maintenance window
    Multiple SHRINKFILE executions might be called for to substantially shrink it
    Expand the Transaction Log back to its target initial size
    Set the Transaction Log growth size to be in units of 1 GB
    Apply the latest CUs for SQL Server 2008 or 2008 R2
    Regards, Don Rohan [MSFT]
    Thanks Don!
    But probably I should do this after recovery completes.
    To the moment it still in progress but I can not check it's status..
    I see in error log file that sometimes the database  starts up again (see log below). What could be a reason? Does recovery start from scratch on each "db starting up"? 
    2014-01-06 16:38:58.77 spid53      Starting up database 'ket'.
    2014-01-06 17:01:51.02 spid53      Database ket has more than 1000 virtual log files which is excessive. Too many virtual log files can cause long startup and backup times. Consider shrinking the log and using a different growth increment to
    reduce the number of virtual log files.
    2014-01-06 17:32:15.59 Server      Server resumed execution after being idle 321 seconds: user activity awakened the server. This is an informational message only. No user action is required.
    2014-01-06 17:32:29.07 spid53      Starting up database 'ket'.
    2014-01-06 17:55:21.99 spid53      Database ket has more than 1000 virtual log files which is excessive. Too many virtual log files can cause long startup and backup times. Consider shrinking the log and using a different growth increment to
    reduce the number of virtual log files.
    Sergey.

Maybe you are looking for

  • What is the best way to restore my iMac, when I forgot my administrator password?

    I forgot my passwords and the Apple store restored it to factory settings and it was fine. Now I did it again. What can I do besides bring it to the Apple store.

  • Headset issues

    Updated Boot Camp drivers to 3.1. Running Windows 7 Pro 64-bit So I have 2 issues here: 1) When I try to connect a bluetooth headset (Motorola H500) to W7, it connects, but then it says it can not install the driver. I tried downloading the Broadcom

  • Cannot resolve symbol: symbol: method getContentPane()

    ok, here is my code, why am I getting this error?? import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.applet.*; import java.util.*; public class Jsmileface extends Applet implements ActionListener      JButton pressButton =

  • Create a ready to use image for SharePoint 2013 development environment.

    Hi  I have a requirement in which we are required to have an Image of the whole SharePoint 2013 environment, (ideally single server installation/standalone as I believe multi-tier would not be possible, or if possible suggest on that also), with all

  • Color of icons in list of browse sequences

    If you use browse sequences in the HTML Help Viewer, there is a combo box whose drop-down list contains the names of all the browse sequences currently defined. Associated with each name in the list is a rectangular icon that is a solid color. There