Database Files Name Change Auto in SQL Server 2012
I am working on SQL Server 2012 and I am restoring diff db's backup with different db names. But, all the time I need to change their db files names manually its not being changed. In sql server 2008 r2 files name auto changed as per db name. Please
guide me for auto change.
SQL Server Management Studio (SSMS) for SQL Server 2012 doesn't do that, as you have noticed. Nothing we can do about that, if we insist of using SSMS 2012.
SSMS 2014, however, does change filenames for us, in an even more intelligent manner than did SSMS 2008!
Tibor Karaszi, SQL Server MVP |
web | blog
Similar Messages
-
Windows 7 Home Premium, SP1
64-bit
I just installed SQL Server 2012 express - Express with Advanced Services (contains the database engine, Express Tools, Reporting Services, and Full Text Search),
file name - SQLEXPRADV_x64_ENU.
Opening SQL Server Management Studio causes the error -
"Could not load the file or assembly 'Microsoft.VisualStudio.OLE.Interop,
Version=7.1.40304.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified."
Do I need to install another file? Did I download the wrong version?
Any suggestions? Thanks for any help.Hello,
The issue may occure when the installation of your SQL Server is not a complete or a successful one. Did you try to repair or reinstall the SQL Server Express? You can also try to install
Service Pack 1 for SQL Server 2012
to check if the issue presists.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
SQL Server 2012 Express SP1 will not install on Windows Server 2012 Essentials R2
I have been attempting to install SQL Server 2012 with SP1 Express Edition for about a two weeks and have been unsuccessful. My organization recently purchased a new Dell PowerEdge T320 Server (64 Bit) with Intel Xeon Proc.-E5-2420; 2.2Ghz, 32 Gb RAM,
1 Tb RAID 5 H/D, and Windows Server 2012 R2 Essentials (preinstalled). The server will be configured as an on premises server. We are running a small church management application that requires SQL Server 2012 SP1 Express. Per the direction
of our application vendor, we downloaded the SQL Server 2012 SP1 Express file (SQLEXPRADV_x64_ENU.exe) from the Microsoft SQL Server Website. We ran the file "As Administrator" and the SQL Server 2012 Setup program began.
We selected New SQL Server Stand-Alone Installation, successfully installed the needed Product Updates, and accepted the MS SQL Server 2013 Express License terms.
When the Feature Selection Page appeared we checked only the "Data Base Eng Services". The
Instance Configuration Page was displayed and we inserted a "Named Instance= Shelby",then pressed next. On the
Server Configuration Page the only change was setting the "sql server browser = automatic". The Database Engine Configuration Page appeared
and we inserted the following settings:1] Server Configuration Tab; a) mixed mode, b)inserted SQL Server Admin pswd, c) added current user as administrator: 2] Data Directories Tab; default/no changes: 3] User Instanced Tab; default/no
changes: and 4] Filestream Tab; default/no changes. Next the
Reporting Services Configuration Page came up and the reporting services native mode was set to
"install and configure". The Error Reporting Page appeared and was left as the
"default". The SQL Server 2012 Setup program proceeded to Installation Progress Page and started to install. Just before the install program ended it displayed a message saying that there
were errors and the Database Eng Services did not succeed. I uninstalled SQL Server 2012 SP1 Express three (3) times, ran Windows Update after every uninstall, attempted to install the Database Engine and got the same results. Are there any patches or
special procedures for correctly installing SQL Server 2012 SP1 Express on my hardware configuration or Windows Server 2012 Essentials R2? Any insight would be greatly appreciated.Can you post the setup Summary and detail logs, which will help to figure out the problem? The details about the location can be found at https://msdn.microsoft.com/en-us/library/ms143702(v=sql.110).aspx
Satish Kartan www.sqlfood.com -
Data types not compatible with Sql Server 2012
HI All,
I need to know what are data types which were present in sql server 2005 but are not in sql server 2012.
Regards
RahulHi vaibhav
Thanks for help. Actually my requirement is that I have one database on sql server 2005 version. I am planning to migrate it to sql server 2012 version. I want to publish a list of all objects across all databases which cannot be replicated to sql server
2012.How can I do this. Are there any data types which were in sql 2005 version but are depreciated in sql server 2012
Regards
Rahul
yes there are
but why not look at here for breaking changes
http://msdn.microsoft.com/en-us/library/ms143179(v=sql.110).aspx
The deprecated features would still work though new development using them is discouraged
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 -
Hi all,
In the Notepad, I created an xml file (ZenQroducts.xml) :
<Qroducts>
<Qroduct>
<SKU>1</SKU>
<Desc>Book</Desc>
</Qroduct>
<Qroduct>
<SKU>2</SKU>
<Desc>DVD</Desc>
</Qroduct>
<Qroduct>
<SKU>3</SKU>
<Desc>Video</Desc>
</Qroduct>
In my SQL Server 2012 Management Studio, I executed the following code:
--to create a new object Qroducts in a new database OPENXMLtesting
CREATE DATABASE OPENXMLtesting
GO
CREATE TABLE Qroducts(
sku INT Primary KEY,
qroduct_desc VARCHAR(30));
INSERT INTO Qroducts (sku, qroduct_desc)
SELECT X.qroduct.query('SKU').value('.', 'INT'),
X.qroduct.query('Desc').value('.', 'VARCHAR(30)')
FROM (
SELECT CAST(x AS XML)
FROM OPENROWSET(
BULK 'H:\ZenQroducts.xml',
SINGLE_BLOB) AS T(x)
) AS T(x)
CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct);
SELECT sku, qroduct_desc
FROM Qroducts;
I got the following message:
Msg 9400, Level 16, State 1, Line 6
XML parsing: line 13, character 12, unexpected end of input
I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
Thanks in advance,
Scott Chang
Hi Manish, Thanks for your response.
Yes, it is a duplicate with Qroducts/Qroduct instead of Products/Product. I did it, because I don't know how to remove the existing "Products" database.
Again, I got the existing "Qroducts" database in this second trial!!?? I am comletely lost in doing "Importing XML file to SQL Table" now!! I think that I have not touched T-SQL and XML programming, since 2008. I
did not catch the new features of T-SQL 2008, XML, SQL/XML, XQuery, etc. for long time. Recently, I did not know what DECLARE, @x, SET,...were, and dived into the SQL/XML and XQuery programming. I knew the SQL Basics (SELECT, FROM, WHERE,..), creating
the names of databases and tables in SQL Server 2008/2012 Management Studio (Express) before. This morning, I found an old T-SQL 2008 Prgrammer's Guide that has the new features of SQL Server 2008 for T-SQL, XML, XQuery, etc. I just starting reading
it to know what DECLARE, @x, SET,... are. But, I still don't know where the existing databases "Products" and "Qroducts" (created by me) are - they are not in the Databases of SQL Server 2012 Management Studio I am using!!?? Could
you please kindly point out where the "Products" and "Qroducts" databases are?
Prashanth responded to my posted question too and he asked to to try his code: DECLARE @xml XML, SELECT @xml =' <Qroducts>.....SELECT product.value.....FROM @XML.nodes.....AS.... I just learned that his code is doing the thing we
want to do and print the results below the SQL Query. This is not what I need in doing my SQL/XML programming. I am reading/studying the new (2008) features of T-SQL, XQuery 1.0: An XML Query Language (Second Edition), and Microsoft XQuery Language Reference
(SQL Server 2012 Books Online) closely now. I hope that I can resume the T-SQL, XML Query, SQL/XML, XQuery in my SQL Server 2012 Management Studio soon.
Please tell me where the existing databases "Products" and "Qroducts" I created in my previous trials in my SQL Server 2012 Management Studio. This is what I need to know and to delete them, before I do this kind of "Importing
XML file to Table of SQL Server 2012 Management Studio" programming again.
Please kindly help, advise and respond again.
Many Thanks,
Scott Chang -
Hi all,
In my SQL Server 2012 Management Studio, I executed the following code:
CREATE TABLE Products(
sku INT Primary KEY,
product_desc VARCHAR(30));
INSERT INTO Products (sku, product_desc)
SELECT X.product.query('SKU').value('.', 'INT'),
X.product.query('Desc').value('.', 'VARCHAR(30)')
FROM (
SELECT CAST(x AS XML)
FROM OPENROWSET(
BULK 'H:\ZenProducts.xml',
SINGLE_BLOB) AS T(x)
) AS T(x)
CROSS APPLY x.nodes('Products/Product') AS X(product);
SELECT sku, product_desc
FROM Products;
I got the following message:
Msg 9455, Level 16, State 1, Line 5
XML parsing: line 3, character 12, illegal qualified name character
I have no ideas why the "product" in the statement "SELECT X.product.query('SKU').value('.','INT')" is not legal qualified name charcter!!!??? Please kindly help, advise and respond.
Thanks in advance,
Scott ChangHi Manish, Thanks for your response.
Here is a copy of my ZenProducts.xml:
<Products>
<Product>
<SKU>1<</SKU>
<Desc>Book</Desc>
</Product>
<Product>
<SKU>2<</SKU>
<Desc>DVD</Desc>
</Product>
<Product>
<SKU>3<</SKU>
<Desc>Video</Desc>
</Product>
I found the wrong "<<" in my xml file and changed it to the right "<" for the statement<SKU>1</sku>. I executed the corrected code and I got the following new message:
Msg 2714, Level 16, State 6, Line 1
There is already an object named 'Products' in the database.
I don't know how to remove the old, existing the 'Products' object in the database and execute the corrected code again. Please kindly help, advise and tell me how to resolve this new problem.
Many Thanks,
Scott Chang
P. S. I played with another project to get the 'Products' object in my database before. Frankly, I don't know where the old 'Products' object and the database are. Please enlighten me in resolving this matter more clearly.
You welcome Scott, As Olaf mentioned in this post, there was already a table exists , so need to drop your Products table.
Apart from this, I guess either you did not pasted the full XML file or what, I needed to have the ( </Products>)closing tag in your XML file as follows.
<Products>
<Product>
<SKU>1</SKU>
<Desc>Book</Desc>
</Product>
<Product>
<SKU>2</SKU>
<Desc>DVD</Desc>
</Product>
<Product>
<SKU>3</SKU>
<Desc>Video</Desc>
</Product>
</Products>
You can use following script to drop if your
Products table is already existing.
if exists(select 1 from sys.tables where name ='Products')
drop table Products
CREATE TABLE Products(
sku INT Primary KEY,
product_desc VARCHAR(30));
INSERT INTO Products (sku, product_desc)
SELECT X.product.query('SKU').value('.', 'INT'),
X.product.query('Desc').value('.', 'VARCHAR(30)')
FROM (
SELECT CAST(x AS XML)
FROM OPENROWSET(
BULK 'H:\ZenProducts.xml',
SINGLE_BLOB) AS T(x)
) AS T(x)
CROSS APPLY x.nodes('Products/Product') AS X(product);
SELECT sku, product_desc
FROM Products;
Let us know if you face any other problem.
Thanks
Manish
Please click Mark as Answer if my post solved your problem and click
Vote as Helpful if this post was useful. -
Hi All,
I just downloaded AdventureWorks2012_Data.mdf file from
http://msftdbprodsamples.codeplex.com/releases/view/55330 to my C:/ Downloads folder. I don't know how to install this AdventureWorks2012_Data.mdf file to the Databases (in Object Explorer) of the \SQLEXPRESS of my SQL Server 2012 Management
Studio. Please kindly help, advise and respond.
Thanks in advance,
Scott ChangHi Olaf Helper, Thanks for your response.
As you and https//msdn.microsoft.com/en-us/library/ms190209.aspx instructed, I tried to attach the AdventureWorks2012_Data.mdf file (Using SQL Server Management Studio) to my Databses. After I did Steps 1 & 2, (in Step 3) I clicked on
Add, and tried to locate the AdventureWorks2012_Data.mdf file in my C:/Users/e1enxshc/Downloads folder: this mdf file was not there in the "Select the file" box!!!??? I am pretty sure that mdf file has been downloaded into that "Downloads"
folder. I am lost completely. Please kindly help, advise me what it is going wrong in my "Attach" the mdf file to my Databases of SQLEXPRESS, and respond.
Thanks,
Scott Chang
===============================================
Hi Prashanth,
I cannot find/locate the
http://serverintellect.com/sqlserver/sql-database-attach/ in my internet websites to do the "Attach" task I need badly. Please tell me where I can find/locate/access that website>
Thanks,
Scott Chang
====================================================
P.S. I moved the AdventureWorks2012_Data.mdf file to my C:\Temp folder and did the "Add" again. It located the mdf file. I added the AdventureWorks as the name of Database in SQLEXPRESS, then I clicked Add. I got the following fatalerror:
Failed to retrieve data for this request. (Micosoft....)
ADDITIONAL INFORMATION: mICROSOFT sql sERVER, eRROR:5123).
wHY DOES IT NOT WORK EITHER? -
Hi all,
I used the following code to create a new Database (ScottChangDB) and a new Table (marvel) in my SQL Server 2012 Management Studio (SSMS2012) successfully:
-- ScottChangDB.sql saved in C://Documents/SQL Server XQuery_MacLochlainns Weblog_code
-- 14 April 2015 09:15 AM
USE master
IF EXISTS
(SELECT 1
FROM sys.databases
WHERE name = 'ScottChangDB')
DROP DATABASE ScottChangDB
GO
CREATE DATABASE ScottChangDB
GO
USE ScottChangDB
CREATE TABLE [dbo].[marvel] (
[avenger_name] [char] (30) NULL, [ID] INT NULL)
INSERT INTO marvel
(avenger_name,ID)
VALUES
('Hulk', 1),
('Iron Man', 2),
('Black Widow', 3),
('Thor', 4),
('Captain America', 5),
('Hawkeye', 6),
('Winter Soldier', 7),
('Iron Patriot', 8);
SELECT avenger_name FROM marvel ORDER BY ID For XML PATH('')
DECLARE @x XML
SELECT @x=(SELECT avenger_name FROM marvel ORDER BY ID FOR XML PATH('Marvel'))--,ROOT('root'))
SELECT
person.value('Marvel[4]', 'varchar(100)') AS NAME
FROM @x.nodes('.') AS Tbl(person)
ORDER BY NAME DESC
--Or if you want the completed element
SELECT @x.query('/Marvel[4]/avenger_name')
DROP TABLE [marvel]
Now I am trying to create my first XML Schema Collection to do the Validation on the Field Name (Column Title) of the "marvel" Table. I have studied Chapter 4 XML SCHEMA COLLECTIONS of the book "Pro SQL Server 2008 XML" written by
Michael Coles (published by Apress) and some beginning pages of XQuery Language Reference, SQL Server 2012 Books ONline (published by Microsoft). I mimicked Coles' Listing 04-05 and I wanted to execute the following first-drafted sql in
my SSMS2012:
-- Reference [Scott Chang modified Listing04-05.sql of Pro SQL Server 2008 XML by Michael Coles (Apress)]
-- [shcColes04-05.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress]
-- [executed: 2 April 2015 15:04 PM]
-- shcXMLschemaTableValidate1.sql in ScottChangDB of SQL Server 2012 Management Studio (SSMS2012)
-- saved in C:\Documents\XQuery-SQLServer2012
tried to run: 15 April 2015 ??? AM
USE ScottChangDB;
GO
CREATE XML SCHEMA COLLECTION dbo. ComplexTestSchemaCollection_all
AS
N'<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="marvel">
<xsd:complexType>
<xsd:all>
<xsd:element name="avenger_name" />
<xsd:element name="ID" />
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>';
GO
DECLARE @x XML (dbo. ComplexTestSchemaCollection_all);
SET @x = N'<?xml version="1.0"?>
<marvel>
<avenger_name>Thor</name>
<ID>4</ID>
</marvel>';
SELECT @x;
GO
DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_all;
GO
I feel that drafted sql is very shaky and it needs the SQL Server XML experts to modify to make it work for me. Please kindly help, exam the coding of my shcXMLTableValidate1.sql and modify it to work.
Thanks in advance,
Scott ChangHi Scott,
2) Yes, FOR XML PATH clause converts relational data to XML format with a specific structure for the "marvel" Table. Regarding validate all the avenger_names, please see below
sample.
DECLARE @x XML
SELECT @x=(SELECT ID ,avenger_name FROM marvel FOR XML PATH('Marvel'))
SELECT @x
SELECT
n.value('avenger_name[1]','VARCHAR(99)') avenger_name,
n.value('ID[1]','INT') ID
FROM @x.nodes('//Marvel') Tab(n)
WHERE n.value('ID[1]','INT') = 1 -- specify the ID here
--FOR XML PATH('Marvel') --uncommented this line if you want the result as element type
3)i.check the xml schema content
--find xml schema collection
SELECT ss.name,xsc.name collection_name FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
select * from sys.schemas
--check the schema content,use the name,collection_name from the above query
SELECT xml_schema_namespace(N'name',N'collection_name')
3)ii. View can be viewed as virtual table. Use a view to list the XML schema content.
CREATE VIEW XSDContentView
AS
SELECT ss.name,xsc.name collection_name,cat.content
FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
CROSS APPLY(
SELECT xml_schema_namespace(ss.name,xsc.name) AS content
) AS cat
WHERE xsc.name<>'sys'
GO
SELECT * FROM XSDContentView
By the way, it would be appreciated if you can spread your questions into posts. For any question, feel free to let me know.
Eric Zhang
TechNet Community Support -
SSRS 2012, SQL Server 2012. Problem with changing database
Hi all!
I have a problem with changing database for SSRS.
I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
connection (it's successed) and push Next again. Then I see this error message:
Error
The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
OK
I'm confused, cause I have compatible versions of programs and THIS error.
Please, help me.
Thanks.Hi Kirill,
From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
http://technet.microsoft.com/en-us/library/cc645993.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
SQL Server 2012 installation and to default user database files to a particular path
Hi, I am working on SQL Server 2012 installation on one of our test boxes and I would like to configure the sql server install binaries and all the system databases but for tempdb to be in my C and tempdb on a different drive and once all this is set up,
whenever a developer creates a new database without specifying the path for the mdf & ldf files. They should be defaulted to a path like "D:/Data file" & "D:/Log file" for instance instead of being created on the C drive.
Thanks in advance.........
IoneHi,
You can of course set default location of database through management Studio please refer below link. Once you change default location even if you do not specify location it would take default one.
http://sqlandme.com/2013/03/18/sql-server-changing-default-database-location-for-server/
I would advise you not to keep files on C drive let it be dedicated system drive also its quite possible that SQL server service account would not have privilege on C drive so after you move tempdb SQL server would not come online as tempdb files cannot
be created . Tempdb is always recreated after SQL Server starts so you just need to change location once using Alter database command
See example mentioned in below link for how to do that
http://msdn.microsoft.com/en-us/library/ms345408%28SQL.90%29.aspx
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 Articles -
How to change backend databases sql server 2008 R2 to Sql server 2012 datacenter
Hi
i have current sharepoint 2010 form has backend database is sql server 2008 R2 on windows server 2008 R2 Enterprise
and this form has
1 application server
1 Search server (index server)
1 wfe server ( all web applications are running)
1 databse server
here how i change this form back end to new windows server 2012 and sql server 2012 datacenter
adilInformation on SQL Aliases (using cliconfg.exe):
http://sqlandme.com/2011/05/05/create-sql-server-alias-cliconfg-exe/
You need to migrate content back into the database prior to migration:
http://technet.microsoft.com/en-us/library/ff628255(v=office.14).aspx
http://technet.microsoft.com/en-us/library/ff628257(v=office.14).aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to change the excel file name which is in Application server...
hi friends,
my requirement is getting failed, when i'm trying to change the file name which is in Application server using the FM: SXPG_COMMAND_EXECUTE.
when i execute above FM, i can see all my required details in SM69 like:
COMMAND NAME: ZSPOOL_TEST1
OS: Windows NT
TYPE: Customer
OS COMMAND: cmd rename Y:\OBRZ.PDF OBRZ38582.PDF
once the above FM is executed, i'm getting SY-SUBRC = 2 (exception: COMMAND_NOT_FOUND).
so, can any one guide me how to resolve this issue or is there any other way to rename the file which is in AS?
thanks in advance...Hi ,
First you can tranfer the AS server file to a new application server file.
Then you delete the original file .
To do that you can write code as follows --
DATA : w_file(8) TYPE c VALUE 'FILE_NAM', " your present AS file name
w_new(8) TYPE c VALUE 'NEW_FILE',
fs_itab(255) TYPE c,
t_itab LIKE TABLE OF fs_itab.
OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
DO.
READ DATASET w_file INTO fs_itab. " Reading value from the AS file to field string
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND fs_itab TO t_itab. " Populating internal table form the file value
ENDIF.
ENDDO.
OPEN DATASET w_new FOR INPUT IN BINARY MODE. " creating a new file if that does not exist
LOOP AT t_itab INTO fs_itab.
TRANSFER fs_itab TO w_new. " Transfering to file
ENDLOOP.
CLOSE DATASET w_file..
DELETE DATASET w_file. " Dleting the old file
CLOSE DATASET w_new. " Closing the final file
Regards
Pinaki -
After
sql server 2012 installation, I attached my production db. Because of some reasons, i
changed sql engine account from network service user to system user by means of sql server configuration manager.
Now , there isn’t
a problem at sql server running system. But
I have doubts that
this can produce problems later. Because sql server database engine account must have privileges that listed below;
Log on as a service (SeServiceLogonRight)
Replace a process-level token (SeAssignPrimaryTokenPrivilege)
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process
(SeIncreaseQuotaPrivilege)
Permission to start SQL Writer
Permission to read the Event Log service
Permission to read the Remote Procedure Call service
While sql server installation, setup gives these
privileges to network service user automatically, but changing user by means of sql confugarition manager does not give these
privileges.
Now, system user has privileges listed below. And sql server has been running for 1,5 months without any problems.
Log on as a service (SeServiceLogonRight)
Bypass traverse checking
(SeChangeNotifyPrivilege) (Everyone user has his privileges. So i think that system user has this privilege also)
What problems can occur because of this situation? Shall i give other privileges to system user and restart sql server or not? And how can i give these privileges to system user listed below;
Replace a process-level token (
this can be set from user rights assignments)
Adjust memory quotas for a process
(this can be set from user rights assignments)
Permission to start SQL Writer (
? - give advice )
Permission to read the Event Log service (
? - give advice )
Permission to read the Remote Procedure Call service (
? - give advice )Our server is windows server 2008 r2 enterprise edition. I have looked the bunch of permissions in user rights menu that is in local security policy settings gui.
And i have seen those permissions below were not granted to system user;
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process
(SeIncreaseQuotaPrivilege)
So, briefly you say, don't panic ? -
SQL Server 2012 restoring database from backup file
Hi All,
1. I was restoring the database from PROD box to DEV box with the deferent name.
For Ex: Both PROD and DEV boxes are having "A" database. Now I am refreshing database"A" from PROD bot to DEV box with name "B". Now while restoring in SQL server 2012 I used GUI and took database name as "A" by default.
by mistake I executed the request. before completing I notice that "A" database in DEV Box went to restoring mode.
Now, in middle I stopped the query but still I am seeing database "A" is in restoring state.
Please guide me is there any way to bring database online with current data?
2. Why sql server 2012 takes tail log backup of the existing database while restoring database with different name?Hi,
check this link for the same issue and solutions:
http://stackoverflow.com/questions/520967/sql-server-database-stuck-in-restoring-state
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Errors while Changing the Database to Mutli User Mode from Single user mode in SQL Server 2012
Hi,
Good Afternoon :). Need your help in resolving one of the issue with SQL Server 2012.
Today, we kept one of the database in the Single User mode and wanted to bring back to Multi User mode. But we are getting the below error. There are no user sessions connected to this database which are blocking each other. I see multiple
SYSTEM sessions are in blocked state. The blocking is not cleared even affter restarting the SQL services.
Verified the SQL Server Errorlog and couldnt get much useful information to troubleshoot the issue.
pasted the information from the sys.sysprocesses as well for your kind reference.
Msg 1205, Level 13, State 68, Line 1
Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
spid
kpid
blocked
waittype
waittime
dbid
login_time
status
cmd
18
1004
36
0x0005
144
5
4/9/2014 13:13
background
TASK MANAGER
35
1796
36
0x0005
35
5
4/9/2014 13:34
background
TASK MANAGER
36
2464
37
0x0005
363
5
4/9/2014 13:34
background
TASK MANAGER
37
5100
36
0x0005
254
5
4/9/2014 13:04
background
TASK MANAGERClearly 36 and 37 are causing deadlock.
see
https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
http://www.mssqltips.com/sqlservertip/1036/finding-and-troubleshooting-sql-server-deadlocks/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
How many iCloud accounts can you create on Mac?
I use different emails for different purposes (subscriptions, shopping, forums, iTunes, etc.). With that in mind, I created 3 iCloud email accounts on my iPad and upon trying to register a 4th one I was told that this device is no longer eligible to
-
Ole Word Automation, Remove Table Borders
Hi All, I have created a new word document with a table of 3 rows and 3 columns using the ole. I want to remove vertical lines. The borders property enable only shows or disables the borders. I want to remove any border I want. I recorded a macro at
-
Web worker on cloud service - some questions
Hi all; Ok, I'm trying to get a web worker implemented (following this) working off of a message queue and have a couple of questions: So I get a message, perform my operation on it (in my case an update to Sql Azure), and then delete the message. Wh
-
How to make data base link from oracle 11g r2 to microsoft sql 2008 express
I need to make data base link from oracle 11g r2 to microsoft sql 2008 express to make replication between then please help me ! I didn't know what is the user and password in the command which create database link
-
Next stage of the clean up has started.
sarah31 wrote:alot of posts have been placed in the wrong areas lately.... That's true.... old topics are now moved and the next stage of clean up will begin. For everyone's information, all old topics obviously wrongly placed have been moved. Some o