Viewing 15 posts - 2,806 through 2,820 (of 13,469 total)
my first guess is that the table is a HEAP.
if the table is a HEAP (meaning it does not have a clustered index) when individual rows are deleted from the...
December 11, 2013 at 2:56 pm
the function found at the end of this article is very highly rated among my peers here on SSC:
http://www.sqlservercentral.com/articles/Tally+Table/72993/
select * from table
where numberColumn in
(SELECT Item FROM dbo.DelimitedSplit8K(@x,',')
December 11, 2013 at 1:39 pm
it looks like not in Parallel Data Warehouse 2008, no sequences, sorry.
they are appear to available in Parallel Data Warehouse2012
Sequences were introduced in SQL server 2012, and each PDW...
December 11, 2013 at 12:54 pm
this can be a little misleading, especially when it comes ot using sp_helpprotect.
that procedure lists the objects that the public role,(in this specific example) can see,
if you look at the...
December 11, 2013 at 7:51 am
ramyours2003 (12/11/2013)
How to add add the internal email field to the view on a database ?
i'm lost in the terminology here: what's "the internal email field"?
my first guess would be...
December 11, 2013 at 5:54 am
http://www.red-gate.com/SupportCenter/content/SQL_Compare/knowledgebase/SC_Permissions_Required
VIEW DEFINITION and VIEW SERVER STATE are what's recommended, it looks like; otherwise you get data filtered based on what schema/objects you CAN see.
December 10, 2013 at 3:11 pm
it took me a while just to massage your sample data into a usable format.
i ran out of gas just getting this data consumable, maybe someone else can run teh...
December 10, 2013 at 3:08 pm
the zero-changes to the application thing is the tough part;
i know it's possible to use certificates to allow a view to decrypt data, and then i assume you could...
December 10, 2013 at 2:53 pm
Luis Cazares (12/10/2013)
Lowell (12/10/2013)
December 10, 2013 at 2:12 pm
basically, you assign the results to a DataSet; since a DataSet contains a collection of DataTable,s you can then iterate through each datatable, or assign, say a grid's datasource to...
December 10, 2013 at 1:37 pm
well, whenever you use any of the aggregate functions(MIN,MAX,COUNT)
you have to have one or more GROUP BY column(s).
IF you group by just EMPID, you can only end up getting...
December 10, 2013 at 1:31 pm
typically what i've done in the past is to limit access to the table to require stored procedures.
the stored procedures get signed, so they can be called by other...
December 10, 2013 at 12:06 pm
asranantha (12/10/2013)
2/23/211...
December 10, 2013 at 8:01 am
based on your response, i guess you cannot consider fixing the datatype.
here's an example based on your sample data;
the column BackToFormattedDate is what you are asking for
;WITH MyCTE([id],[name],[doj])
AS
(
SELECT '1','abc','3/1/2011'...
December 10, 2013 at 7:23 am
wouldn't switching to a union work, i think? i think the AND would short circuit any table scan right away, and will perform a bit better.
SELECT
*
FROM ...
December 10, 2013 at 7:12 am
Viewing 15 posts - 2,806 through 2,820 (of 13,469 total)