Viewing 15 posts - 901 through 915 (of 1,124 total)
Just add the ORDER BY clause to the CTE...
With downline (ConsultantID,ConsultantName,SponsorID,SponsorName,DownLineLevel)
AS
(
SELECT A.ConsultantID
,A.FirstName + ' ' + A.LastName as ConsultantName
,A.SponsorID
,(SELECT [FirstName] + ' ' + [LastName] FROM Consultant WHERE ConsultantID =...
November 20, 2007 at 8:15 am
Desperate newbie (11/20/2007)
thanks ramesh, but the problem is that the servers are different and hence i might have to provide DSN (opendatabaseconnection()) thats where the problem kicks in.
You just need...
November 20, 2007 at 8:12 am
Alen,
Without changing the design, i don't think we can find ways to index that computed column.
You can try the alternative approaches...
November 20, 2007 at 7:46 am
I guess its because of truncation (as there must be enough rows to fill the limit)...
You need to modify the query...
1. Need to select distinct dates from the resultset
2. CAST(Quality_Date...
November 20, 2007 at 7:32 am
Alen cappelletti (11/20/2007)
I use this soluction for the function...SELECT
MAX(IDconsel)
FROM sqltest.ePrice2K5.dbo.Consel
WHERE imp_fin <= @Prezzo AND tasso0 = @Tasso0
I don't think this is going to work....
November 20, 2007 at 6:44 am
Then, just remove the TOP clause from the select statement...
November 20, 2007 at 6:17 am
Are you using Indexed Views or Indexed computed columns in your procedure? If yes, try setting the ARITHABORT option set to ON at procedure level.
November 20, 2007 at 6:15 am
You first need to setup linked servers, and then access the linked server in the same fashion...
SELECT * FROM ServerA.SomeDB.SomeOwner.SomeTable
November 20, 2007 at 6:06 am
I've been in the same situation when I first installed SQL 2005 EE. I've tried installing it multiple times but i failed to successfully install SSMS. After a...
November 20, 2007 at 5:40 am
You can define indexes on computed columns as long as the following requirements are met:
1. Ownership requirements
2. Determinism requirements (which in your case is violated by using TOP)
3. Precision...
November 20, 2007 at 5:29 am
What errors you are getting while executing?
Is it overflow or divide by zero errors? If this is the case, then you need to check the settings of...
November 20, 2007 at 5:04 am
Excerpt taken for BOL:
Microsoft Internet Explorer 6.0 SP1 or later is required for all installations of SQL Server 2005, as it is required for Microsoft Management Console (MMC) and HTML...
November 20, 2007 at 4:55 am
Could be elaborate on what exactly you want?
I still couldn't get you what you are pointing to.:cool:
Do you want only those rows where the said columns are not...
November 20, 2007 at 4:30 am
Here is the query, would give which indexes are stored on which filegroups...
SELECTOBJECT_NAME( i.id ) AS TableName, i.name AS IndexName, fg.groupname AS [FileGroup]
FROMsysindexes i
INNER JOIN sysfilegroups fg ON i.groupid =...
November 20, 2007 at 4:16 am
Viewing 15 posts - 901 through 915 (of 1,124 total)