Viewing 15 posts - 76 through 90 (of 92 total)
The only problem is that I have to parametrize my function statement which sucks and is not that readable.
January 6, 2011 at 2:17 pm
Thank you Michael,
I just found out a possible work around for this issue. I could be wrong as well
CREATE FUNCTION dbo.xTest ( )
RETURNS @tbl TABLE ( x int, name varchar(100)...
January 6, 2011 at 2:12 pm
Say for example, if you have type 2 updates and you just wanted to know that which records are the latest in your table, you could do so by using...
July 27, 2010 at 10:20 am
Nice article. Gives me another way to de-dupe data. 🙂
I use almost the same technique, but I have a time stamp associated with each record and this time stamp differs...
July 27, 2010 at 6:42 am
Thanks Jeff,
I think I will try to create computed column in temp table...
May 26, 2010 at 7:37 am
;WITH temp AS(
SELECT ID,
(isnull(CONVERT(char(2),CC), (CASE WHEN YY Between 80 and 99 THEN '19' ELSE '20' END)) +
CASE WHEN YY < 10 THEN '0'+ CONVERT(char(1),YY) ELSE CONVERT(char(2),YY) END + '-'+
CASE...
May 26, 2010 at 7:19 am
I have 4 columns CC, YY, MM, DD and they have records like
'20', '10', '5', '23'
To make this work as a time stamp, I have the following query
;WITH temp AS(
SELECT...
May 26, 2010 at 7:16 am
Its not the temp table that has 4 columns. The source (which is a view being populated in real time and having no constraints/joins whatsoever) has 4 columns...
May 25, 2010 at 8:54 pm
I agree I stripped down the code for posting purpose, but the actual code definitely works. The whole reason behind combining data from 4 columns is that if...
May 25, 2010 at 9:19 am
The source for the above query is a view which has 96 columns approx and doesnt have any other object associated to it. Its just your "plain jane" view which...
May 25, 2010 at 6:34 am
The result of this query is inline with expectations, but the query time is ridiculous. I need to run it under 20 mins. Thats not a requirement, but running queries...
May 24, 2010 at 3:51 pm
the startdate and end enddates have table preceding them in the query.
May 24, 2010 at 3:46 pm
I have 4 columns CC, YY, MM, DD and they have records like
'20', '10', '5', '23'
To make this work as a time stamp, I have the following query
WITH TEMP AS(
SELECT...
May 24, 2010 at 3:45 pm
I did connect to the Integration Services engine. As you said, one can see what packages are there in the MSDB. But yeah, no one can edit them here.
April 28, 2010 at 11:34 am
You cannot view it directly in SSMS. I tried it, but no result. Only way to edit a package or view it is in BIDS or Visual Studio. If anyone...
April 28, 2010 at 8:55 am
Viewing 15 posts - 76 through 90 (of 92 total)