Viewing 15 posts - 2,116 through 2,130 (of 3,543 total)
The following will split the data as you require (based on Remi's universal split query)
SELECT o.UserID,
LTRIM(SUBSTRING(',' + o.OrderID + ',', n.number + 1,
CHARINDEX(',', ',' + o.OrderID + ',', n.number...
October 27, 2005 at 5:33 am
![]() | Can someone tell me how to create a linked server to Active Directory? |
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_12_94fn.asp
October 27, 2005 at 3:13 am
And, sushila....
why is it everytime you join a thread it goes awol and off the beaten track
October 25, 2005 at 8:44 am
Besides,
I always like to wait for our Lord and Master, Supreme Being to produce the light for us to see forth into the wilderness, hail Remi
October 25, 2005 at 8:41 am
I think the duplicate problem stems from the users,webrequest,internaloffice link.
![]() | unworkable deptworker |
October 25, 2005 at 8:18 am
my guess
DECLARE @today datetime
SET @today = DATEADD(day,DATEDIFF(day,0,GETDATE()),0)
SELECT u.UdeptManager, u.Uname, o.IOofficeName AS [Office],
ISNULL(sc.Workable,0) AS [Workable], ISNULL(sc.Unworkable,0) AS [Unworkable]
ISNULL(b.Bills,0) AS [Bills], ISNULL(b.AvgBill,0) AS [AvgBill], ISNULL(b.Dollars,0) AS [Dollars]
(CAST(b.Bills...
October 25, 2005 at 7:57 am
![]() | Somebody suggested that I should partition the query |
Using linked server, that is your only choice. Try changing...
October 25, 2005 at 6:45 am
DECLARE @var varchar(8000)
SELECT @var = [textcol] FROM
will retrieve the first 8000 chars
SELECT @var = SUBSTRING([textcol],10,10) FROM
will retrieve 10 chars starting at char 10
October 25, 2005 at 6:20 am
Nice set of articles, Steve
You seem to be well versed in the intricacies of employment, ever thought of starting up an Employment...
October 25, 2005 at 2:48 am
Have you actually determined what is causing the error.
Is it disk space, the version of SQL Server or is the database in question not allowed to extend?
If it is disk space...
October 24, 2005 at 10:11 am
OK, remi, I stand corrected
SELECT COUNT(a.quizid)+1 AS [rank]
FROM (SELECT score, datentime FROM x
WHERE x.quizid = @quizid AND x.username = @username)...
October 24, 2005 at 7:53 am
It will populate the index using the data already present, if any.
October 24, 2005 at 7:35 am
But you cannot count 'AllTheRowsThatComeBeforeThatOne' without ordering the data and giving each row a sequential id
October 24, 2005 at 7:34 am
CREATE NONCLUSTERED INDEX IX_FuelCOMP ON FuelMaster.dbo.Fill (filldate, companyno)
will alleviate the need for the USE statement
October 24, 2005 at 7:27 am
If there is a 'rank' column populated with results then yes, your're right, if dynamically created then no, you're not.
October 24, 2005 at 7:18 am
Viewing 15 posts - 2,116 through 2,130 (of 3,543 total)