Deleted User Master Data with SQL Server Management Studio
Hi All
I've, recently restored an ECC 6.0 backup onto a test system. In an attempt to quickly delete most of the User Master Data from the source system, I deleted the User ID's from the USR02 table using SQL Management Studio.
But within Transaction su01, the User ID's that were deleted that way, still show up in the "F4" search. I can select one of those deleted ID's, but get an informational pop up stating that the user does not exist, if I go to display.
Does anyone know of a quick way to delete these User ID's from the "F4" search pop up?
The only way I've found so far is to select the User ID, recreate it and then delete it from the su01 transaction. This is going to take me hours.
Tried to save time, but caused more of a head ache.
Ken
Thanks Brian
Yes, I have done this in the past as well. Although for this instance, I needed to keep about 20 of the 100 + User ID's that were in the system, and was hoping for an easy way to do it.
In Table USR02, it was easy to pick all, but the 20 and delete. (Sometimes we think we're smarter than we really are I've since spoken to a Security team member and found out about there's a way to do "Mass" changes in transaction su01.
tcode us01 -> Environment -> Mass changes.
Ken
Live - Learn - Laugh
Similar Messages
-
How to recover deleted attached mdf file from sql server management studio
Hi everyone
I've faced very bad problem
I had a mdf file that created in visual studio, and then I had attached this file to sql server management studio and after that, when I wanted to deattach
this file I had a big mistake; and deleted the mdf file; then now this file was deleted from my computer
I test several recovery tools but they can't find deleted mdf file; the volume of the mdf file was more than 2 GB.
Please help me if you canHello,
If you don't have a backup of the database, then it's not really possible to get it back. There are some "Undelete" Tools available for Windows, but when even only one page was overwritten on disk, then it's not possible to recover it.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
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] -
Issues With SQL Server Manager
Hi, sorry new to Azure, and pretty new to SSMS...I apologize if the question has a simple answer, I just can't find the answer anywhere.
I can connect to the Azure database through SSMS with no problems but it will not let me edit existing tables not create new tables except using scripts. The table design mode options are all grayed out. I'm not sure if this is an authority issue on the
DB or something with my version of SSMS:
Microsoft SQL Server Management Studio 10.50.1617.0
Any insight would be appreciated.
Thank youHello,
In addition to the reply above, you can also try to use web- based Management Portal for SQL Database which support designing and editing tables with GUI.
To launch the SQL Database Management Portal, you should be logged into the Windows Azure Management Portal, select the database workspace and then select the SQL Azure server you would like to manage. Click the "Manage" button in the
bottom.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
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 -
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. -
Load grid like SQL Server Management Studio
Hi
we have a windows forms project with grid.
I would like to emulate the behaviour of SQL Server management studio where upon executing the query, the results start filling in instantaneously and the process continues until all results have been fetched. This way the user doesnt have to wait at all.
Kindly advise whats the best way to achieve above.
Many Thanks
AbhishekIn a virtual mode datagridview, you should only read data when necessary. The whole point of generating extra DataGridView.CellValueNeeded events is to give you the option of not pulling all rows, only for currently visible ones (maybe a little more
for caching).
You should at least cache the data of a row when a cell is accessed (it is likely you will query every column of a row). It also a good idea to cache several pages near the requested row, since the user may be scrolling up and down a bit and you may not
want to hit the database for every single row or every even single page. The few pages near the top and the bottom are also hot areas that are good for caching. BackgroundWorker is kinda clumsy for this task, probably better write this in TPL and queue
data populating tasks when the user scroll up or down.
The caching part is your business logic and is not provided by Windows Forms.
Visual C++ MVP -
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... -
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 -
SQL Server Management Studio - Configuring the environment for first time use
Hi
I have recently switched my local 'My Documents' folder location to a network drive that I 'make available off line' to allow on-line/off-line work and synchronisation when I am working in and out of the office.
When I load my SQL Server Management Studio 2005 I frequently get 'Microsoft SQL Server Management Studio is configuring the environment for first time use'.
Management Studio them loads and I can continue without problem.
I am guessing it is trying to make reference to some settings file. Any ideas? I wonder if I can change/move these settings elsewhere to a local drive?
ThanksHi,
There is bug report of this issue:
http://connect.microsoft.com/SQLServer/feedback/details/126364/configuring-enviroment-for-the-first-time-every-time-in-ms-sql-server-management-express
"SQL Server Management Studio Express saves the settings for the user in ...\Documents and Settings\<User Profile>\Local Settings\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
and in ...\Documents and Settings\<user profile>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
if any of these files are not available or unusable, SSMSE will generate new ones."
Hope this helps.
BR,
JoukoK -
BIDS for SQL Server Management Studio
I want to use BIDS and SSI. Can someone assist me with this? I have Sql Server Management Studio 2008 and Visual Studio 2008 -- both installed via web download.
Hi Michael,
To create a package in Business Intelligence Development Studio:
In Business Intelligence Development Studio, open the Integration Services project in which you want to create a package.
In Solution Explorer, right-click the SSIS Packages folder, and then click New SSIS Package.
Optionally, add control flow, data flow tasks, and event handlers to the package.
On the File menu, click Save Selected Items to save the new package.
For more details, please refer to the following documents:
https://msdn.microsoft.com/en-us/library/ms169917(v=sql.100).aspx
https://technet.microsoft.com/en-us/library/ms141711(v=sql.100).aspx
http://www.codeproject.com/Articles/173918/How-to-Create-your-First-SQL-Server-Integration-Se
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
SQL Server Management Studio 2012
Hi Team,
I have installed trial version of SQL Server management Studio 2012 .Initially I was able to connect to SQL Server Management Studio ,then after I have installed Visual Studio 2013 for web (trial version).Two days later ,On trying to open SQL Server Management
Studio ,It shows an error that says "Invalid License Data,Reinstall is required ".
Even on reinstalling with new set of downloaded files ,I could face the same issue .
Kindly give appropriate solution to resolve this issue .
OS:Windows 8 (64 bit )Please see this url:
SQL 2012 - Invalid License Data
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog -
How to change Font Size of Object Explorer in "SQL Server Management Studio"
Dear Team,
"SQL Server Management Studio" is a fantastic IDE for the database.
There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
Can you please accumulate this feature in IDE ASAP?
Many Thanks,
BhaveshIts there
Go to Tools -> Options
Then under Environment you've fonts and colors tab where you can specify a higher font size.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Impossible to open .dtproje file after re-installing SQL Server Management Studio
Hi all,
today, after re-installing SQL Server Management Studio from a package downloaded from MS web site (SQLManagementStudio_x64_FRA.exe), I tried to open a SSIS package file via Visual Studio and I get a message stating that this type of project (.dtproj)
is not supported.
Here are the events that lead to this problem:
We have SQL Server 2005 installed on a server and are planning to migrate to SQL Server 2012.
1 - Earlier this year, to solve a problem that we had with the SSMS client, we installed SSMS 2012 client on my station.
At this point, it worked fine for SSMS and when I tried to access SSIS it converted the packages to SSIS 2012 and it worked fine too.
2 - Yesterday, I tried to access SSMS and I had the message that the test period had expired; at this point I could open a SSIS file.
3 - To solve the problem with SSMS we decided to re-install it. It worked fine for SSMS but now I am not able to open a SSIS file.
Do you have any idea of what the problem is and what should I do to solve it?
It seems that there are some SSIS component missing, how could I get them back?You are welcome Sylviep,
Based on what I see you want to create BI projects (e.g. a SSIS project), thus it will be enough to install SSDT
which is part of the SQL Server installation media. I do not see why you would re-install SQL Server itself.
Arthur My Blog
Maybe you are looking for
-
How do I connect my ipad to port 8081?
I just purchased the Docs Unlimited App and I'm getting a connection error. I need to connect to direct connect port 8081. How do I do it?
-
Can i order from the us online store and get my product in mexico?
can i order from the us online store and get my product in mexico?
-
How can I monitor bitrate in real-time?
I would like to inspect movie segments for max bitrate... not the average movie bitrate but the actual bitrate at any moment. Is there a tool, plugin, or app (player) that can provide this information? Thanks.
-
Problems importing after reformatting
I wasn't sure how to save all of my iTunes music, so before I completely reformatted my laptop, I saved all of my iTunes music on a hard drive. Now that my computer has been wiped out, I re-installed iTunes, and copied and pasted the iTunes library f
-
A total newbie to smartphone (clueless) Where do I begin
So we decided to get smartphones. I need a tutorial along the lines of smartphones for dummies. LOL - I'm confused about text messaging. Apps - How do I put pictures into my phone. I don't want all those contacts in my phone - not sure how they got