TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Get this Tag RSS feed
Translate this page
Powered by
Microsoft® Translator
Popular Tags
Active Directory
AD
AD DS
adfs
ASP.NET
azure
BizTalk
BizTalk Server
BizTalk Server 2010
C#
Candidate for deletion
certification
cloud
core docs
de-DE
EAA
Ed Price
Ed's Stub Pages
en-US
ESA
es-ES
Excel
Exchange
Exchange 2010
fa-IR
Fernando Lugao Veltem
FIM
FIM 2010
FIM Resources
FIM-HELP
forefront
forums
fr-FR
Gokan Ozcifci
has code
has comment
has comments
has image
has Images
has Other Languages
has See Also
Has Table
Has TOC
Horizon_Net
How To
Hyper-V
id-ID
IIS
Italian Wiki Articles
it-IT
ja-JP
Jordano Mazzoni
Link Collection
Luciano Lima
Luigi Bruno
Lync Server 2010
MIISILMFIM MACAULAY
Multi Language Wiki Articles
needs work
operations manager
Pirated Content
Portal
Português Brasil
PowerShell
pt-BR
security
SharePoint
SharePoint 2010
SharePoint 2013
SharePoint Pirate
Small Basic
solucionando problemas
SQL Server
SQL Server 2012
stub
System Center
System Center 2012
TechNet Guru
TechNet Wiki
TechNet Wiki Featured Article
tonyso
Translated into Japanese
troubleshooting
tr-TR
vídeo
Video
Virtualization
VMM
Wiki
Windows
Windows 7
Windows 8
Windows Azure
Windows Server
Windows Server 2003
Windows Server 2008
Windows Server 2008 R2
Windows Server 2012
yottun8
اکتیو دایرکتوری
Browse by Tags
>
TechNet Articles
>
All Tags
>
T-SQL
Tagged Content List
Wiki Page:
Recorrer las filas de una tabla mediante Transac-SQL (es-ES)
Ed Price - MSFT
Basado en este articulo Se trata de un pequeño script escrito en Transac-SQL para que a partir de los campos obtenidos en una tabla recorrerlo uno por uno y del texto de cada fila guardar en otra tabla cierto valor: Suponiendo que tengamos que de esta tabla mas especificamente...
on
9 Jul 2013
Wiki Page:
SQL Server Result Set In An HTML Email
Johnny Bell Jnr
The Problem Picture the situation: you have a collection of data that you've been working on to summarise. You've finally found a way of displaying the data in an effective format, but you've overlooked one essential task: how are you going to relay this information back to the audience...
on
8 Jul 2013
Wiki Page:
T-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
Richard Mueller
Table of Contents RIGHT and LEFT CHARINDEX SUBSTRING USING THEM TOGETHER This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away and questions...
on
8 Jul 2013
Wiki Page:
EOMONTH() Function Usage in SQL Server 2012 and On
Naomi N
The EOMONTH() function is new in SQL Server 2012. BOL link: http://technet.microsoft.com/en-us/library/hh213020.aspx In the previous version (SQL Server 2008), a popular albeit obscure way to get the end of the month: SELECT CONVERT ( DATE , dateadd(mm, datediff(mm,0, current_timestamp...
on
7 Jul 2013
Wiki Page:
Different Methods to get nth maximum salary in a given table
balakrishna141
There are many methods to get N-th Maximum salary in a table.Here are few methods. CREATE TABLE EMP ( EMPNO INT NOT NULL , ENAME VARCHAR (10), JOB VARCHAR (9), MGR INT , HIREDATE DATE , SAL INT , COMM INT , DEPTNO INT ) INSERT ...
on
2 Jul 2013
Wiki Page:
Presentation Transcript: Introducing SQL Server 2012 Transact-SQL Improvements
Richard Mueller
SQL11UPD03-TSCRIPT-01 This wiki is a transcript of a previously recorded video. Related content assets: Presentation: Introducing SQL Server 2012 Transact-SQL Improvements ( SQL11UPD03-DECK-01 ) Video: Introducing SQL Server 2012 Transact-SQL Improvements ( SQL11UPD03-REC-01 ) Table...
on
26 Jun 2013
Wiki Page:
T-SQL: Table Sizes in SQL Server
Naomi N
--one table sp_spaceused 'TABLE_NAME' --all tables EXEC sp_MSforeachtable 'EXEC sp_spaceused ''?''' --OR IF OBJECT_ID ( 'tempdb..#TableSize' ) IS NOT NULL DROP TABLE #TableSize CREATE TABLE #TableSize ( SEQ INT IDENTITY...
on
20 Jun 2013
Wiki Page:
Windows Azure SQL Database Firewall (en-US)
Richard Mueller
To help protect your data, the Windows Azure SQL Database firewall prevents all access to your SQL Database server until you specify which computers have permission. The firewall grants access based on the originating IP address of each request. The SQL Database firewall can be managed via Windows...
on
11 Jun 2013
Wiki Page:
Fragmentation Percentage of all tables in a SQL database
ganeshkuppuswamy
The SQL Server Database Engine automatically maintains indexes whenever insert, update, or delete operations are made to the underlying data. Over time these modifications can cause the information in the index to become scattered in the database (fragmented). Fragmentation exists when indexes have...
on
5 Jun 2013
Wiki Page:
SCCM 2007: Create Report of Upcoming Maintenance Windows by Client
Richard Mueller
How To Calculating the next maintenance window in SCCM is a bit troublesome as you normally have to use WMI to get the data structure that makes up the schedule. What if you want to write a SCCM report? The following table-valued function will calculate the next date/time of a maintenance window...
on
2 May 2013
Wiki Page:
Truncate a table
Fernando Lugão Veltem
When we try to TRUNCATE a table whose columns are referenced by a FOREIGN KEY constraint it will always gives us an error: Cannot truncate 'table_name' because it is being referenced by a FOREIGN KEY constraint. But what if a column is referencing its own table itself. Let see the below...
on
21 Apr 2013
Wiki Page:
Windows Azure SQL Database Billing Numbers Directly From Transact-SQL
Richard Mueller
Windows Azure SQL Database exposes two Dynamic Managed Views called sys.database_usage and sys.bandwidth_usage that show you the activity for your account. These can queried to understand your account usage from a billing perspective. Table of Contents Disclaimer Database Usage Summary Disclaimer...
on
7 Mar 2013
Wiki Page:
SQL Server Batch Update
Elmozamil Elamir
Always we should take care of database server performance but sometimes you need to perform a huge update on your table/tables this will affect performance for concurrent users and they will complain about it. For example if you have a table contains more than billion row and you want to update a...
on
17 Feb 2013
Wiki Page:
End of Month Function (id-ID)
Suherman, STP
Gak sengaja lagi buka-buka BOLnya SQL Server 2012 kemudian menemukan sebuah function baru dalam pengelolaan tanggal yaitu function End of Month atau ditulis dengan EOMonth() Biasanya kalo kita mau mencari tanggal berapa sebuah bulan berakhir, kita dapat menggunakan cara berikut : DECLARE...
on
17 Jan 2013
Wiki Page:
PAGING windows in T-SQL (id-ID)
Suherman, STP
di SQL Server 2012 ada metode baru untuk mendapatkan beberapa baris data melalui klausa Select sehingga didapatkan jumlah baris data sesuai yang diinginkan sesuai dengan nilai row offset dan row value yang sudah ditentukan sehingga jumlah record yang di presentasikan di client dapat diatur dengan mekanisme...
on
6 Dec 2012
Wiki Page:
SQL Server: How to Find the First Available Timeslot for Scheduling
Ed Price - MSFT
In a scheduling application, it may be desirable to find the first available schedule time (timeslot) for a new appointment. The new appointment must fit completely between existing appointments -without overlap. As the schedule fills, new entries are assigned to the next first available schedule...
on
4 Dec 2012
Wiki Page:
Inserting Data into 2 Tables with 1 Statement without Trigger (id-ID)
Suherman, STP
Biasanya kita menggunakan trigger untuk dapat melakukan memasukkan data ke dalam 2 tabel yang berbeda sekaligus. 1 tabel target yang akan dimasukkan data yang kemudian dibuatkan trigger yang kemudian trigger tersebut akan melakukan proses insert ke tabel ke 2. Namun dalam perkembangannya, Insert...
on
25 Nov 2012
Wiki Page:
Processing NOAA Flash Flood Guidance Data In SQL Server
Ed Price - MSFT
Author: Ed Katibah (Microsoft) During the recent major weather event, Hurricane Sandy, NOAA published weather forecast information which would be very useful to use in the analysis of the storm. In this particular case, the data was made available as an Esri Shapefile from the following location...
on
16 Nov 2012
Wiki Page:
How MS SQL Compiler Does Internal Data Type Casting
Ed Price - MSFT
Now lets take few test to get to the conclusion; See how the MS SQL compiler works, MS SQL compiler is smart enough to do the conversion (implicit type casting) for columns. For 'Test 1' MS SQL compiler converts all values of 'ID' column to 'INT', how it decides to...
on
11 Aug 2012
Wiki Page:
Comando MERGE (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12574.comando-merge.aspx . Vamos ver um pouco sobre um novo comando do SQL Server 2008...
on
23 Jul 2012
Wiki Page:
Count(*) x Count(1) x Count(PK) (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12573.count-x-count-1-x-count-pk.aspx . Muitos desenvolvedores questionam sobre o Count...
on
23 Jul 2012
Wiki Page:
Menu Recursivo usando CTE (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12572.menu-recursivo-usando-cte.aspx . Segue abaixo um código utilizado para...
on
23 Jul 2012
Wiki Page:
SET x SELECT (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12570.set-x-select.aspx . Uma dúvida comum está relacionada ao uso do...
on
23 Jul 2012
Wiki Page:
IDENTITY (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12569.identity.aspx . Em muitas situações, você deseja saber o...
on
23 Jul 2012
Wiki Page:
DICA - Cuidado com OR (pt-BR)
Ozimar Henrique
Nota de Migração : Este artigo foi migrado para o Portal Wiki em Português. O conteúdo será atualizado aqui http://social.technet.microsoft.com/wiki/pt-br/contents/articles/12567.dica-cuidado-com-or.aspx . Sempre que possível substituir condições...
on
23 Jul 2012
Page 3 of 4 (87 items)
1
2
3
4
Can't find it? Write it!
Post an Article