Viewing 15 posts - 76 through 90 (of 1,124 total)
Doesn't a simple select with TOP & ORDER BY clause do the task?
SELECTTOP 1 id, Eff_Date, DATEDIFF( MINUTE, Eff_Date, GETDATE() ) AS DateDifference
FROM[log]
WHEREecode = 100
ORDER BY DateDifference
June 2, 2009 at 5:18 am
Jeff Moden (6/1/2009)
3. Requires execute permissions on xp_cmdshell procedure, if multiple files needs to be imported. Most of the DBAs are reluctant to grant permissions on this object as...
June 2, 2009 at 5:03 am
You can do this by adding a derived column transformation and then setting the output column value to this variable and then use this derived column in destination component within...
June 1, 2009 at 9:35 am
Jeff Moden (6/1/2009)
June 1, 2009 at 2:43 am
Don't cross post, it just fragments the replies. Continue discussions here
May 31, 2009 at 3:26 am
Verify the data in the table that you have values > 500 characters by using LEN function. For e.g.
SELECT LEN( comments ) FROM myTable
May 31, 2009 at 3:24 am
If you are working with SQL 2005 then you might want to have a look at the ROW_NUMBER() function which would quite faster than the EXCEPT operator.
May 31, 2009 at 3:18 am
Personally, I prefer prefixing the table name to all columns except foreign keys. It makes easier to understand and write code when joins are involved. For e.g.
SELECT Cust.ID,...
May 31, 2009 at 3:04 am
Hey Jeff, I really appreciate you for taking time in detailing the solutions, listing out the issues with them & testing them.
BTW, I am ducking down:hehe:, in case the high...
May 31, 2009 at 2:46 am
Allister Reid (5/30/2009)
The wildcard doesn't work at the beginning of search term, i.e. "*ci*" will not match "uncival".Please correct this if I'm wrong!
Indeed, it does not work when prefixing wildcards...
May 31, 2009 at 2:40 am
Instead of setting the ResultName=CurrStatus, set ResultName=0 if it is the first column of the resultset.
May 30, 2009 at 7:41 am
brd123 (5/30/2009)
THanks...it was late last night and I didn't have the 'what if' part of my brain working.
Appreciate for the feedback.
May 30, 2009 at 7:19 am
DURGESH (5/29/2009)
I have a table as follows
col1 col2
aa ...
May 30, 2009 at 2:48 am
You can use wildcard characters in CONTAINS predicate. For e.g.
WHERE CONTAINS( description, '"civi*"' )
May 30, 2009 at 2:27 am
See the following article that exactly does the same.
http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm
May 30, 2009 at 2:20 am
Viewing 15 posts - 76 through 90 (of 1,124 total)