Quantcast
Channel: SQLServerCentral » SQL Server 2012 » SQL Server 2012 - T-SQL » Latest topics
Browsing all 4901 articles
Browse latest View live

ANSI - SQL Standard

Which ANSI - SQL standard doesn Sql 2012 use?SQL-92/SQL 2003/SQL -2008/SQL 2011

View Article


Architecture Diagram

All,I need the of "Architecture Diagram" SQL 2012 & SQL 2008. I am tired to get the diagram from google. I can see features, merits, demerits, unsupported functionalities bla bla...but..never an...

View Article


VS2010 Build Warnings when building database projects referencing [sys] schema

I have a proc which uses a technique, which will be familiar to many here, to generate a framework for a lot of rows:[code="sql"] SELECT ... FROM sys.all_columns ac1 CROSS JOIN sys.all_columns...

View Article

Update Statement - performance

Hi All,I need a help or a suggestionI have a SP which has an update statement and this updates around 200 columns and it is one record at a time. Out off 200 columns may be around 90 columns are...

View Article

CONTAINED DATABASE OR NOT ...

In a POC project I was looking into the SQL Server 2012 feature of partially contained databases.To my surprise I encountered an error where I didn't expect one.The code hereafter is a simplified...

View Article


SQL SP1 , SP2 , CTP3, CTP4

All,I have to download trail version (express version) in my laptop.OS : Windows 7I have downloaded SQL.EXE. wHEN I try to install sql.exe, it prompted to install SP1. When I search on Google , I can...

View Article

SEQUENCE Problems

Hello.I've started using a SEQUENCE in a table instead of an identity.I seem to be experiencing problems of the sequence getting reset to a lower value periodically. Inserting will work on the table,...

View Article

Inequity testing with non-deterministic functions with a clustered index

When given a randomly behaving query the other day, I discovered something I thought interesting when testing for inequality.To recreate it we'll have to generate a table of GUIDs with a clustered...

View Article


Need HTML T-SQL script to run scheduled job.

Hi all,Task: I need a T-SQL HTML script,fetch a file from different domain.For this I am working in different domains.Domain 1: I am having my backup file.Domain 2: I have to fetch that files from...

View Article


Remove/mark duplicate entries, SELECT remaining unmatched--Accounting-based...

I have a table with a month's worth of accounting data that I need to compare to another table with accounting data from another source. But before I can even get to that point, I need to remove what...

View Article

script if exists drop then create

in sql server 2012 i created an index then was going to create the script to do the if existence check then drop index and create it. In 2012 if doesn't appear to include the if eixsts part. just drop...

View Article

Efficient time window aggregates in sql 2012?

I would like to compute a moving average for the last 1 second on each row. The below is only the first part of a way of doing it without a cursor but I left the second part with the average out as...

View Article

select top 1 row for each customer

Hi,I have customer table and order table and both consists of customerID columnwhich is primary key for customer table.I want to write a query which we will give all the recent order for each customer...

View Article


modify proc creates odd script

when i select modifiy proc i get the below: Is there an option that would force it to simply show as an alter proc and do away w/ all of this sp_executesql nonesence?/****** Object: StoredProcedure...

View Article

Has SQL Query Termination (;) become mandatory in SQL Server 2012?

I cannot find anything that states that it has become mandatory, but I did find someone claiming that the BOL for SQL 2008 (not R2) stated that it was going to become mandatory in future...

View Article


Tsql script 2012 Unused and needed indexes, usage, pages etc... and creates...

Tsql script 2012 Unused and needed indexes, usage, pages etc... and creates the index neededI know there is a lot of queires out there, I, looking for a all in one if someone has one in the library...

View Article

Dropped connection during Excel VBA

I have a spreadsheet that culls the data from the sheet and inserts these into parameters in stored procedures. If there is an error on the sheet or the datatype doesn't match, then the stored proc...

View Article


query for routing

I have a table called flights with columns: fltNum, departureCity, depTime, arrivalCity, arrTimeI want to query flights and produce an out put table that depicts the routing from a takeoff city and a...

View Article

Writing Complex XML

Hi all,I am trying to write a complex XML using TSQL.;WITH XMLNAMESPACES('www.your_url.com' as s3,'www.google.com' as s2,'www.google.com.mt' as...

View Article

New PAGING Funtion comparison with TOP

i have compared the new paging function with top query but found NO positve response here. The paging query gave negative impact. Queries i used : [code="sql"]SELECT TOP 100 [TransactionID]...

View Article
Browsing all 4901 articles
Browse latest View live