Viewing 15 posts - 13,621 through 13,635 (of 13,838 total)
Here's a quote from BOL: "Built-in nondeterministic functions are not allowed in the body of user-defined functions." Getdate() is, of course, non-deterministic, as it "may return different values when...
November 10, 2004 at 4:20 pm
Your update query does not contain a WHERE clause. So what you are saying is
"If there are any records returned by the SELECT ... query, execute the following update...
November 9, 2004 at 10:19 pm
Popular question! Check out this link:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=145515
November 9, 2004 at 9:00 pm
Excuse my English ignorance, but is 12 the country code for Mexico? If so, wouldn't you want to store these numbers as + 12 ... ? If so,...
November 9, 2004 at 7:43 pm
declare @str varchar(20)
set @str = 'a b c d'
select @str as orig_string, replace(@str, ' ', '') as no_spaces
Regards
Phil
November 9, 2004 at 7:29 pm
No. Each table can (by definition) have only one clustered index - and whether that is on the table's primary key field or on some other field is down...
November 8, 2004 at 8:27 pm
The maximum worksheet size in Excel is 65,536 rows by 256 columns, so it sounds like you have hit that limit. However, you can of course have multiple worksheets...
November 8, 2004 at 4:46 pm
I've had this and did not find a straightforward solution, so in the end I worked round it. But, as an alternative to having a dynamic filename, you might...
November 8, 2004 at 4:04 pm
If 'first' = 'min' and 'last' = 'max', then this will do it:
select min(name) as 'first', max(name) as 'last'
from
where mark = 20
Regards
Phil
November 7, 2004 at 4:23 pm
OK, assume that table 'tbl' contains two fields, 'utc' and 'date'. utc is populated, but date is empty. Here is a query that will populate date from utc:
update tbl
set date...
November 5, 2004 at 6:49 pm
I think we were both referring to the ASC(AS(X,3) bit, which does not contain a trailing 'C'. I actually think you might have meant A$, rather than AS. ...
November 4, 2004 at 10:01 pm
Hi John, your message is a bit terse. Please provide sample data and how you would like it to be sorted.
Cheers
Phil
November 4, 2004 at 8:36 pm
So you want
200, 300, ...
as your resultset? If so, what does table 1 do?
Cheers
Phil
November 4, 2004 at 6:10 pm
It's easier than you think - you're already on the right track. Try this:
declare @utcdate as float, @cvdate as datetime
set dateformat mdy
set @utcdate = 38279.813344907401
set @cvdate = @utcdate
select @utcdate...
November 4, 2004 at 5:09 pm
Missed that. I have no idea what the as() function does. Any ideas, anyone?
Phil
November 4, 2004 at 4:41 pm
Viewing 15 posts - 13,621 through 13,635 (of 13,838 total)