Viewing 15 posts - 226 through 240 (of 1,124 total)
Don't worry, you wont lose any data if you change the collation. But since this behaviour hasn't been documented very well, I suggest you take the backup of...
May 12, 2009 at 6:49 am
One way I can think of now is to do a UNION ALL of "YTD".
; WITH TestCalls
AS
(
SELECTDATEADD( MONTH, DATEDIFF( MONTH, 0, createDate ), 0 ) AS MonthDate, [status],
COUNT( * )...
May 12, 2009 at 6:23 am
WHERE Clause should be applied to the inner derived query of the dynamic select.
DECLARE @PivotedColumnSQL VARCHAR(MAX),
@sql NVARCHAR(MAX),
...
May 12, 2009 at 5:47 am
Phil Parkin (5/12/2009)
Ramesh (5/12/2009)
May 12, 2009 at 5:03 am
too_sweeeeeeeet (5/12/2009)
select distinct @Result = sum( column1 )
from table (nolock)
where ((column2 = @param1) or (@param1 = 0))
If...
May 12, 2009 at 4:52 am
To change the collation of a column which is a part of an INDEX, your have to re-create the INDEX(es)
IF ( OBJECT_ID( 'tempdb..#test' ) IS NOT NULL )
DROP TABLE #test
CREATE...
May 12, 2009 at 4:35 am
Phil Parkin (5/11/2009)
I tried out Ramesh's code and have a follow-up question: what is the data type of...
May 12, 2009 at 4:08 am
There are many free tools available in the market that can easily decrypt any of the encrypted objects.
http://www.lmgtfy.com/?q=decrypt+procedure+in+sql+server+2005
May 11, 2009 at 9:44 am
Phil Parkin (5/11/2009)
Wow, some cool stuff there! Is there a limit on the total number of characters that ConvertBlobToString() can process and return?
I guess the limit of String data type...
May 11, 2009 at 9:29 am
I overcome this issue by converting the text column back to string and then doing the replace in SSIS Script component.
Here is that script:
Imports System
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper
Public Class ScriptMain Inherits...
May 11, 2009 at 9:08 am
If the multiple data flows are not inter-connected with each other then the tasks will execute in parallel provided that you set the package property "MaxConcurrentExecutables" to an value higher...
May 11, 2009 at 8:31 am
ningaraju.n (5/11/2009)
Hi,Ramesh ..... May I know the reason for the Improvance of performance of your Query Over my Query....I am keen to know ....
Its because of the four ROW_NUMBER()...
May 11, 2009 at 4:38 am
You don't need a PIVOT but an UNPIVOT method.
IF ( OBJECT_ID( 'tempdb..#test' ) IS NOT NULL )
DROP TABLE #test
CREATE TABLE #test
(
id INT NOT NULL IDENTITY(1,1) PRIMARY KEY CLUSTERED,
col1 VARCHAR(10)...
May 11, 2009 at 3:00 am
This performs better than the current solution
set nocount on
DECLARE @Table TABLE
(
SubmissionId INT,
AssessmentId INT,
AttemptNo INT,
ObtainedMarks INT,
Attempteddate DATETIME,
Prefernce TINYINT -- 1 - Hihest Score,2- LowestScore ,3- FirstAttempt,4- LastAttempt,5 -Avg
)
--INSERT INTO...
May 9, 2009 at 3:59 am
Viewing 15 posts - 226 through 240 (of 1,124 total)