functionexec sp_configure ' show advanced options ', 1Reconfigureexec sp_configure ' Ad Hoc distributed Queries ', 1Reconfigure--Allow ace.oledb.12 to be used in the processEXEC master.dbo.sp_MSset_oledb_prop n ' microsoft.ace.oledb.12.0 ', n ' allowinprocess ', 1--Allow dynamic parametersEXEC master.dbo.sp_MSset_oledb_prop n ' microsoft.ace.oledb.12.0 ', n ' dynamicparameters ', 1--Import temporary tablesEXEC (' INSERT into Jihua (id,[lot number],right (' ' + @filepath + ', charindex (' ' \ ',
Tags:. com performance User Tap Sof run view verification directlyDue to the requirements of the data Warehouse and data mining courses and the integration of many data analysis tools in the SQL Server database, there are many advantages to the Data Warehouse deployment, OTAP data analysis and so on. Simply write the installation and configuration of the SQL
Often on the Internet to see the students have tried to find the SQL Server database versions, see other people's help stickers on the unconscious want to help them, but one to help and not too realistic, after all, personal Energy Limited, since we have the demand, So the author is willing to share and dedication of the spirit to help everyone to collect the SQL
schema (environment in the code above) is used, so the third parameter of the sp_addextendedproperty stored procedure should be schema rather than user. Query related data found that the above SQL statement is based on the corresponding. xdb file generated by PowerDesigner, as the SQL code template for the column comment information, the corresponding XDB template file is stored in the PowerDesigner instal
information, see Considerations for switching from the full or bulk-logged recovery model. In SQL SERVER 2008, BACKUP log with truncate_only is no longer supported, and to shrink the database log, you first need to truncate the file by setting the database recovery mode to simple. The statements are as follows: --BACKUP log TestDB with no_log
UseTestDB; GO
--Truncate The log by changing the database rec
In the process of installing SQL Server 2012 on a Windows Server 2012 server, an error was reported, an installation failed,In the process of installing SQL
/639838_1402281273P94x.png "height=" 455 "/>Deployment reference: http://technet.microsoft.com/zh-cn/library/ff878716 (v=sql.110). aspx2. More flexible Failover strategy (failureconditionlevel)In a SQL Server failover cluster instance, only one node can have a cluster resource group at a given time. The system supports client requests through this failover cluste
Tags: sql Server; read-only; specific tablesCreate a read-only account and only read certain tables.Now let's share the steps of the operation.The premise of this operation is that the database is relatively large, there are many data tables, you need to select their own read-only data tables.The operation of the new account should not be unfamiliar, to everyone is not discussed.In the left User Mapping tab
although the result of our previous query was orderly, the new table generated after the run was not sorted by Subprenum and the order was chaotic.It was discovered that this was due to the limitations of SQL Server itself and that if there was a special need to require the data in the staging table to be ordered, the problem could be solved by "creating a clustered Index". For details, please refer to the
Original: SQL Server 2012 AlwaysOn--a problem caused by a hardware upgrade
This is a case of last week: The problem caused by the upgrade of the existing hardware, but also triggered a more serious bug, is disastrous, but fortunately, in a chain of problems arise, there is no manual error (this is often the highest risk in dealing with the failure, affec
Tags: database log repository truncate recovery data alter DIV modeMEDIA Database nameALTER DATABASE media set RECOVERY easy with no_wait
ALTER DATABASE Media set RECOVERY simple--simplified mode
DBCC SHR Inkfile (N ' Media_log ', one, truncateonly) --11 is size 11M
ALTER DATABASE MEDIA SET RECOVERY full with NO_WAIT
alter DATABASE MEDIA SET RECOVERY Full--Revert to complete mode
Ext.: http://blog.csdn.net/hehe520347/article/details/48497229How to truncate logs for
--Cross join produces a Cartesian value (x*y) SELECT * from Student crosses Join dbo. ClassInfo--Another way of writing select * from Student, ClassInfo--INNER join (Inner can omit) select *from Student JOIN dbo. ClassInfo on dbo. Student.class = dbo. classinfo.id;--Inner Join SELECT *from Student Inner join dbo. ClassInfo on dbo. Student.class = dbo. Classinfo.id; --on condition, usually the primary foreign key, but not limited to the primary foreign key--on condition, which allows multiple, a
(Col1int, Col2Char(5), Col3Char(3), Col4Char(2)) with(data_compression=ROW)--Create a Table assigning Page CompressionCreate Tablegreatforpagecompression (Col1int, Col2Char(5), Col3Char(3), Col4Char(2)) with(data_compression=PAGE)/*Keep in mind ALTER TABLE and alter INDEX can is used to implement compression when those obects already exist.*/3. Availability of databases/*Change various database option and refresh the MGMT*/--2.1 Setup:add A Table and a couple of rows. UseTinyDB;GOCreate Table
Recently encountered in the work, SQL Server 2012 can not put the core of the CPU all the problem, believe that many people have encountered this problem, so today this section first to say how this problem arises.First introduce the environment of the serverWindows R2 Enterprise Edition (X64) + Microsoft SQL
Label:Original: SQL Server 2012 exception Issue (i)--failover cluster + mirroring environment causes job execution to failFirst of all, thank you. My colleagues first found this issue, thanks: Xiangfei, Zhi-Gang, Hye-youngRecently found a strange problem in the production environment;Environment: WINDOWS 2012+sqlserver
service.If you still can't start MSDTC normally, consult MSDN (http://msdn.microsoft.com/zh-cn/library/aa561924%28BTS.10%29.aspx) for help.Four, the distributed queryAt this point, the result of our query in any instance is consistent and exactly what we want.[SQL]View PlainCopy
/*************** instance ap4\net2013 (SQL Server 2008) *********/
/*********
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.