Viewing 15 posts - 61 through 75 (of 117 total)
Can you use the CASE method for crosstab query?
September 9, 2005 at 2:10 pm
This is stored in a varchar column, I guess? And you don't want to just trim all of them.
This is a little hacky, but you could
select column
from yourtable
where...
September 9, 2005 at 11:15 am
Can you explain about why you need to know? Because comparing strings for trailing blanks is a little complicated, and it would help to answer your question if we knew...
September 9, 2005 at 10:53 am
Check out this UBER page on date calculation:
September 9, 2005 at 10:50 am
Jim - is this a big production database?
My take on this: both Autogrow and Autoshrink might be OK for small / less used databases, but for a large one that...
September 6, 2005 at 10:10 am
Luckily, SQL Server 2005 reportedly will have a new operator LooksLike that will find images that look like other images or items described in strings. For example:
Select * from myScans
where...
September 2, 2005 at 1:24 pm
September 2, 2005 at 12:02 pm
See the DateAdd and getdate functions
dateadd( "d", -90, getdate() )
dateadd( "mm", -3, getdate() ) etc.
September 1, 2005 at 4:54 pm
It looks like your procedure creates a regular (not a temp) table and never removes it, so it remains afterward. Temp tables start with the Pound sign (#); put a...
September 1, 2005 at 10:52 am
Automatic data type conversion. Certain datatypes are automatically casted when you have a comparison using two different types.
August 31, 2005 at 12:00 pm
Alice -
I thing the best method is to change (or add?) the SQL query to use SELECT DISTINCT, which will filter out duplicates.
HTH,
Merrill
August 30, 2005 at 4:28 pm
Yes, I have done that. I generally make a temp table, then execute something like
SET @listCom = 'DIR /b ' + @yourFolderName + '*.foo'
INSERT INTO #dirlist ( fname ) EXEC...
August 30, 2005 at 11:25 am
Alice - your question makes me worry :-).
If you are not getting the right information in the dataset in the first place, then you really need to adjust that so...
August 26, 2005 at 9:43 am
Either that, or a single page form, "Enter the number of the record you want."
🙂
August 25, 2005 at 2:23 pm
No, I don't think so. I've always had to use conditionals, e.g.
if @dbase = 'foo' use foo
if @dbase = 'bar' use bar
August 25, 2005 at 12:10 pm
Viewing 15 posts - 61 through 75 (of 117 total)