SQL server management studio - actual instance name ?
Hello,
I work at the environment, where one server has 2 instances. One is productive ,second is used for development. Development instance is sample copy of productive one. Same structure, same tables, views, procedures, only data are valid for actual 3 months
and whole history is only in production.
I dont know to which instance I am connected when typing TSQL queriwes in management studio. Is there any way how to have all the time on my eyes name of instance i am connected on in my query windows ? Or is it possible to set up query windows background
color for specific instance ?
It is confusing, list of DB is same, so mistake will come soon.
Thanks
You might find
this interesting.
You can colour code the status bar at the bottom of your query window depending on which instance it is running. Such as
RED for live and BLUE for backup.
I've used this in the past for training/study.
To set a server status color in Object Explorer
In Object Explorer, select the Connect button and then select Database
Engine….
On the Connect to Server dialog, select Options >>.
Select the Use custom color check box.
To select the color, select the Select… button.
Select either a basic or custom color, then select OK.
Fill in the rest of the connection information, and then select the Connect button.
If this is helpful please mark it so. Also if this solved your problem mark as answer.
Similar Messages
-
I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
: RobbyHi,
According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
establish a connection to the database using C#.
As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
You can use the following T-SQL to attach the database and see if the issue persists.
CREATE DATABASE
databasename
ON (FILENAME = 'filepath _Data.mdf'),
(FILENAME = 'filepath_Log.ldf')
FOR ATTACH;
Thanks.
Tracy Cai
TechNet Community Support -
Unable to Login SQL server management studio:sql server 2005
Hello All,
I am unbale to login SQL server management studio with below scanario:
Server Type:Database Engine
Server Name:XXX
Authntication:Windows Auth
After enter "Connect : button below eeror is displaying
Error:"Canot connetc to XXX server
Additional information:
Attempted to read or write protected memory .This is an often an indication that the other memory is corrupt(System.Data)
Note:Database is connecting R3trans return code 0000
SAP is working fine
Please provide suggestion and inpuits its very urgent
Thanks
NekkalapuHI All,
Issue resolved after rebooting the server.
Thanks
Nekkalapu -
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... -
SQL Server Management Studio and Native Client different behaviour on delete
I have a problem with transaction containing insert and delete to same table and some select/insert/update to some other tables. Problematic table has primary key defined as combination of column1 and column2.
When two different instances using Native Client execute simultaneously this code and make inserts to table then delete part of code causes deadlock. However this doesn't happen when trying this situation in MS SQL Server Management Studio query.
Is there some option that is missing from Native Client connection string which can cause this different behaviour?Hello,
I don't think there is a difference in the behavior. SSMS uses ADO.NET and that Provider base on the Native Client.
The difference will be more that way, when the transaction is commited and so the locks released. I guess your application keeps the transaction (much) longer open; you should commit a transaction as soon as possible to avoid long time locks and so
deadlocks.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How to create a package without BIDS in Microsoft SQL Server Management Studio
I have inherited some SSIS packages that I found I can edit by opening the .dtsx file in my local copy of Microsoft SQL Server management studio. I then get Control Flow tab, Data Flow tab etc. I can add or change or delete any of the control
or data flows. I have found that if I use the same path to the local file where the packages are stored that exists on the server, I can edit the dtsx file on my local machine and copy the dtsx file to the server into the same directory structure and
sucessfully execute the package on the SQL 2008 server.
I have VS 2010 installed. I have read that I have to install VS 2008 to use BIDS from within VS. However, this has not worked out very well. Since I can basically create a new package by deleteing all of the control and data flows from
an existing package, I am in pretty good shape. However, I would just like to know if there is a way to create a new dtsx file from within Microsoft SQL Server management studio. Also one thing I have not been able to change is the event handler
name or package exploration name....it is just an annoyance since it does not cause any problems, just would like to be able to rename it.Hi Fred,
We cannot develop SSIS package in SQL Server Management Studio. If we use SQL Server Import and Export Wizard, we can save it as a package but the package is rather simple.
We use Business Intelligence Development Studio (BIDS) or SQL Server Data Tools (SSDT) to develop SSIS packages. To develop SSIS 2008 packages, we must use BIDS installed by SQL Server 2008, and the BIDS 2008 can only be integrated with Visual Studio 2008.
To develop SSIS 2012 packages, we use the SSDT installed by SQL Server 2012 which uses Visual Studio 2010 shell and can only be integrated with Visual Studio 2010.
Different versions of SSIS package have different package formats/schemas. If you can create SSIS packages project in you Visual Studio 2010, it means that you have installed SSDT already, and the packages you design are SSIS 2012 packages. If you open and
eidt SSIS 2008 packages in you Visual Studio 2010, the packages will be upgraded to SSIS 2012 package format. SSIS 2012 packages cannot be downgraded to SSIS 2008 packages or deployed to SSIS 2008 server.
Regards,
Mike Yin
TechNet Community Support -
Daily backup on Ms sql server management studio (MS sql 2005).
I wander how to perform daily backup on Ms sql server management studio (MS sql 2005).
In sql server Entereprise manager (MS sql 2000) I had no problem to shedule.
But now I do not find this optionHi
Please follow these steps in SQL Server Management Studio in SQL Server 2005 and <b>award points</b>
1. Start SQL Server Management Studio.
2. In the Connect to Server dialog box, click the appropriate values in the Server type list, in the Server name list, and in the Authentication list.
3. Click Connect.
4. In Object Explorer, expand Databases.
5. Right-click the database that you want to back up, click Tasks, and then click Back Up.
6. In the Back Up Database - DatabaseName dialog box, type the name of the backup set in the Name box, and then click Add under Destination.
7. In the Select Backup Destination dialog box, type a path and a file name in the Destinations on disk box, and then click OK.
8. In the Script list, click Script Action to Job.
9. In the New Job dialog box, click Steps under Select a page, and then click Edit if you want to change the job parameters.
Note In the Job Step Properties - 1 dialog box, you can see the backup command.
10. Under Select a page, click Schedules, and then click New.
11. In the New Job Schedule dialog box, type the job name in the Name box, specify the job schedule, and then click OK.
Note If you want to configure alerts or notifications, you can click Alerts or Notifications under Select a page.
12. Click OK two times.
You receive the following message:
The backup of database 'DatabaseName' completed successfully.
Note To verify the backup job, expand SQL Server Agent, and then expand Jobs. When you do this, the SQL Server Agent service must be running. -
Cannot connect to any database either in Azure or Sql Server Management Studio
I'm unable to connect, this page just hangs on azure and from sql server management studio I get the following error - A Network-related or instance-specific error occurred while establishing a connection to SQL Server,
Hello,
Before you can connect to your SQL Database server, you must use the
Windows Azure Platform Management Portal to configure the SQL Database firewall: on the Firewall Rules tab of the SQL database server, add the IP address of your computer into the IP address range.
What's more,Windows Azure SQL Database does not support Windows Authentication. Please use SQL Server authentication in your connection string.
Reference:How to: Configure the Server-Level Firewall Settings (Windows Azure SQL Database)
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
OBIEE 11g installationwith sql server management studio
Hi All,
I am trying to install obiee 11.1.1.6.0 into my machine with window 7 and Microsoft Sql Server(Management studio) as my backend.
When i run the Rcu i get an error saying
Invalid Server name/Port number. Please specify correct Server name/Port number
I have given my system name as the server name also tried giving localhost,local and port nno as 1433 but no luck
can anyone please help me in this?
Many thanks in advance!!!!Do the following:
Check whether your telnet client is active or not .
Go to Control panel -> Programs and features -> Turn Windows Features on or off -> Turn on if checkbox is not selected.
Run telnet command :
telnet host port
If blank screen appears , your SQL Server is connected .If not you see an error message.
If you are not sure about the port number ,
SQL Server Configuration Manager -> Protocols for SQLEXPRESS -> TCP/IP -> Right click TCP/IP , Select Properties and then IP Address tab to look for port number .
(If you find TCP/IP disabled , enable it)
Thanks,
Vidya Bhushan -
Hi!
For some reason Create Sequence command doens't work on my Management Studtio version mentioned above.
Please advise, thanksWhat counts is not the SQL Server Management Studio level, but the release level of the SQL Server you are connected to and the the compatibility of the database you are connected to. Run
Select name, ServerProperty('ProductVersion') As ProductVersion, compatibility_level
From master.sys.databases
Where database_id = DB_ID()
Product Version should show as 11.<something> or higher. compatability_level should show as 110 or higher. If either of those values are lower, then that is your problem.
Tom -
Auto Scheduled run of the Sql server management studio or a auto refreshing query
Hi ALL ,
This is a very different weird requirement but workaround for one of my requirement . Scenario is that sql server enterprise edition is installed on a vm . I create a session with the vm using the remote desktop . I have scheduled a ssis package
on the server and it should run 4 am daily us timing but its failing . If in case a user is connected to the management studio package runs on time . So i have to disconnect from the remote desktop and its not possible for me to login at 4 am every day for
running package.
Requirement : Is it possible that the sql sever management studio automatically turns on at 03:30 am and authenticates in .If that is possible my package won't fail . If this is not possible is it possible that sql script auto refreshes every
30 min's so what i can do i will run the auto refreshing script in the management studio once and will disconnect the remote desktop not the sql server session so my virtually my session on vm will end but vm is always on from the vcenter and there is some
activity on the sql server management studio so even the application won't be closed after a stipulated time frame leading to running of my package on time.
Please helpHi Latheesh NK ,
Below is the error message SSIS one i extracted from the history :
Date 3/8/2014 11:00:00 AM
Log Job History (SSIS package)
Step ID 1
Server xyz\xyz
Job Name SSIS package
Step Name Package
Duration 00:00:01
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: xyz\Administrator. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 11:00:00 AM Error: 2014-03-08
11:00:01.31 Code: 0xC0208449 Source: Data Flow Task 1 Source - Query [95] Description: ADO NET Source has failed to acquire the connection {68D5B1D7-17B1-4F95-9B1D-7615425C4A07} with the
following error message: "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". End Error Error: 2014-03-08 11:00:01.31 Code: 0xC0047017 Source:
Data Flow Task 1 SSIS.Pipeline Description: Source - Query failed validation and returned error code 0xC0208449. End Error Error: 2014-03-08 11:00:01.31 Code: 0xC004700C Source:
Data Flow Task 1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2014-03-08 11:00:01.31 Code: 0xC0024107 Source: Data Flow Task 1
Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:00:00 AM Finished: 11:00:01 AM Elapsed: 0.406 seconds. The package execution
failed. The step failed. -
Import multiple files using sql server management studio
Using sql server management studio I want to do 2 things.
- Import all txt files from a directory as tables into my DB.
- Add an additional field to each new table which contains the table name.
Can anyone help me?There are couple of ways to do it:
File naming conventions : YourFileName_SystemId.txt
You can create one extra column in table or may be name a table with system id. Then after loading the data you can update that column with the system id.
components required:
ForEachLoopContainer - To get file and store file name in a variable
Expression Task (if SSIS 2012 or above) or variable expression or script task to seperate file name from systemId
Data Flow Task - to load data
Execute SQL Task - to update last column or specific table based on precedence constraints
Note: You can also add extra column in data flow via
derived column transformation.
Ex.:
Load file via foreach loop
Split string via seprator
2: Loading different system file in different folder
you can have predefined folder structure ex: SystemId1, SyetemId2 etc and can download respective txt file in their system folder. Then you can easily identity which file belong to which system and then load it to the respective table.
3: Use first row of text file to hold the system value
Use first row to have the system id and then skip row while fetching data.
Note: Then you have to read first row through script task to get the system id.
hope this will help -
Cannot launch SQL Server management studio
Hi people,
I cannot launch the sql server management studio. In the event log, appear the next entry:
Faulting application ssmsee.exe, version 2005.90.2047.0, faulting module msvcr80.dll, version 8.0.50727.4053, fault address 0x0000e7a2.
What can i do for repair this? Uninstall the sql instance? This affect to sap system installed?
Other options?
More thanksHi Ruben,
What is the MS SQL Server version and SP level ? Which windows server is it - 2000/2003/2008 - 32bit/64 bit ?
Is the database/SAP up and running ?
I got to see another old thread for similar problem from you. Is it a regular problem or just something happened recently ? Any configuration changes/any activity related to MS SQL Server or any OS changes done recently ? But as the link suggests in your old thread, may be you can give it a try or try upgrading the sql server to a higher SP level ?
Starting SQL Server Management Studio Express
If you are an SAP customer, I would suggest you to open a customer message if the problem is urgent and in productive/live landscape.
Thanks -
Hi,
I have installed SQL Server 2012 Express edition (name of installation media: en_sql_server_2012_express_edition_with_advanced_services_x64.exe) from MSDN and I have installed the application on my pc with Windows 7 Exterprise.
Everything is working fine except when I am trying to create "New Database Diagram", where I recieve following error message:
TITLE: Microsoft SQL Server Management Studio
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
BUTTONS:
OK
I have tried two times to reinstall SQL Server 2012 Express and I have installed Cumulative Update #3 for SQL Server 2012 and restarted the machine, but I have still the same problem with the same error message.
Installed the following fixes:
1) 2012_RTM_DAC_CU3_2723749_11_0_2332_x64
2) SQLServer2012_RTM_CU3_2723749_11_0_2332_x64
These files was installed successful.
How can I solve the problem?
BR
Jan NilssonHi Jan,
Have you installed Visual Studio in your machine?
The problem seems to be related to installing and uninstalling the VS 2011 RC0 program.
The workaround involves copying the files from another PC with SQL 2008 or 2012 from one machine to another. Just replace this folder:
C:\Program Files (x86)\Common Files\microsoft shared\MSDesigners8
See also the following for further details:
http://social.msdn.microsoft.com/Forums/en-GB/vstsdb/thread/d65c71f5-3887-4f2a-bbd3-e799a4ac6fdc
Best Regards,
Iric
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Find Connection String used by SQL Server Management Studio
I am having problems getting my VS C# .NET application to connect to a SQL Server Database, even though I can connect to it (on the same machine) using SQL Server Management Studio.
Is there any way I can find the connection string that SQL Server Management Studio generates when it connects?Hi,
As you have Visual Studio on your machine, I think we can also use the Visual Database Tools of Visual Studio to generate the connection string.
Please:
1. Create a new data connection to the SQL Server database in the
Server Explorer of Visual Studio
2. After the connection is established, right-click on the connection name and select
Properties. There is an item called Connection String in the
Properties window.
Reference:
How to: Add New Data Connections in Server Explorer/Database Explorer
http://msdn.microsoft.com/en-us/library/3d1wkhas.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Maybe you are looking for
-
hi can anybody tell how to do payment clearing in customer invoice , like f-32, residual , step by step process bcoz i not getting how to do
-
After creating Peopletools 8.52, FSCM 9.0 Demo PSSTATUS table shows 8.48
Hi I am building the new demo environment for Finance. PeopleTools 8.52 FSCM 9.0 on unicode database with Demo option. But running the datamover scripts, PSSTATUS table still shows 8.48. Any Ideas ? Thanks, Sarathy K
-
My phone was working as normal, then all of a sudden when I checked my text messages all the names of my contacts got replaced by their actual phone numbers. When I checked my contacts, it looks like everyone got deleted from my phone, and was replac
-
Antispam Plugin Issue for Lotus Notes w/ Solution
Background: We have a case open with Ironport due to some Spam issues we are currently experiencing and I wanted to use the current version of the plugin instead of the customized one our company has developed into our template. I was trying to insta
-
No matter what I do I can't get iTunes to install!!!
I've had no problem before with installing iTunes, but now every time I try to install it starts then stops and says there were errors during installation and that I should rerun the installer. But every time I run the installer again it says the sam