Viewing 15 posts - 946 through 960 (of 1,347 total)
UNION ALL instead of UNION should yield a significant mprovement.
June 9, 2005 at 3:40 pm
>>retrieve the Sec_Price the closest to the Op_Val_Date.
What are the requirements in the case of a tie ? What if there's a Sec_Price 5 days before & 5 days after...
June 9, 2005 at 3:16 pm
Section 3.3.2 - Operating System Requirements
Note There is no support in this release for Virtual Server, Virtual PC, Windows 2003 Embedded Edition, Windows Small Business Server 2003 Standard Edition, Windows...
May 11, 2005 at 12:11 pm
>>into a table that are in consecutive order
There is no concept of "order" in a table, you're applying file-based thinking to a relational system.
You insert them to the table...
April 26, 2005 at 1:45 pm
SQL strings are delimited by single quotes, not double quotes.
[Edit] Forgot to add, use "Set quoted_identifier off". Read BOL on the quoted_identifier option.
April 22, 2005 at 12:16 pm
Have you linked the server(s), using sp_addlinkedserver (or the Enterprise Manager UI) ?
April 22, 2005 at 9:16 am
Read BOL on topics SCOPE_IDENTITY and @@IDENTITY
April 15, 2005 at 1:34 pm
>>I've tried it the logical way by selecting to execute task and the typing 'exec sp_....' and this obviosuly does not work.
It's pretty obvious that it does work, hence the large...
April 15, 2005 at 1:31 pm
Read BOL on the CONVERT() function and the date formatting codes.
Memorize format code 112 - ISO format with 4 digit year - YYYYMMDD.
Select * from table where CONVERT(varchar,date_field,112) = CONVERT(varchar,getDate(),112)
April 14, 2005 at 9:01 am
You could also implement as a simple pivot using a Union of 3 queries in a derived table:
Select PKeyColumn(s), Max(ScheduleTime) As MaxScheduleTime
From
(
Select PKeyColumn(s), ScheduleTime1 As ScheduleTime
From YourTable
Union All
...
April 13, 2005 at 4:14 pm
Does the column contain formatted numbers ? Try these 2 selects, the result may surprise you ...
Select IsNumeric('1,000')
Select Convert(float, '1,000')
April 13, 2005 at 12:16 pm
>>and convert(float,win_sub.ver_clarify) <= 9.0
You have this in your WHERE clause of the sub-query. I think you are expecting thisp art of the WHERE *not* to be evaluated if IsNumeric() is...
April 13, 2005 at 10:11 am
Post the DDL of the table and the SQL you're having problems with.
April 8, 2005 at 1:11 pm
Read this very recent thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=172976
Notice that you are doing the same thing, creating a potentially ambiguous date with hyphens between date parts.
Either explicitly SET DATEFORMAT. Or use dates in the...
April 8, 2005 at 12:22 pm
Viewing 15 posts - 946 through 960 (of 1,347 total)