Viewing 15 posts - 91 through 105 (of 151 total)
The code you've got there gives that error because as far as exec(@exec) is concerned, @rc isn't declared. exec() is just a shell, I believe.
If using the shell...
December 18, 2003 at 4:30 pm
quote:
I tried to build a Unique index on the copy of the table when it already had the data in it, and...
December 18, 2003 at 3:59 pm
Hmm. I've never observed that behavior. Could you past in some code we can look at?
--SJTerrill
November 19, 2003 at 1:08 pm
Thank you! Looks like this is going to help me today.
Regards,
--SJTerrill
November 19, 2003 at 10:47 am
Another point to be aware of when using binary sort: if you reference a foreign (linked) server with a different collation method in a JOIN or WHERE clause, you may...
November 18, 2003 at 11:04 am
Try SELECT Round(12345.6789,2). This should return 12345.6800. Note that ROUND doesn't actually modify the precision of the result. If the second argument is negative, it is interpreted as a number...
November 7, 2003 at 1:00 pm
the BETWEEN clause is, unfortunately, exactly what the word means. When used with datetime data '8/1/2003' is interpreted as 'August 1, 2003 00:00:00.000' and '8/31/2003' is interpreted as 'August 31,...
October 3, 2003 at 9:55 am
sxg,
Is the average you wish to calculate a moving average (say, for purchases up to 90 days back)? Or... is it an average for all history of purchases? In either...
September 16, 2003 at 3:36 pm
Yes, though I don't know of many who would recommend it. For SQL 2000 (don't remember if this worked in 7.0):
In EM, right click on a table in the database...
July 15, 2003 at 2:41 pm
Shas,
Again, thanks for the response. The remote box is also SQL Server authentication only. I'm not sure that the mixed mode security will fix my woes.
The primary rubs are that...
June 27, 2003 at 8:47 pm
Thanks for the reply!
We're connecting using just SQL authentication. This doesn't also require a domain user on the remote machine, does it?
Another point I didn't mention! The remote box isn't...
June 27, 2003 at 3:46 pm
JMeyer,
Assuming your SET DATEFIRST is set for Sunday, then this should do the trick:
DECLARE @ThisDate AS datetime,
@NextSaturday as datetime
SET @ThisDate = GetDate()
June 27, 2003 at 10:50 am
Totally unrelated to topic, I know... but here's some fairly cool pictures of California interchanges, including the 'four-level' in L.A.
http://members.cox.net/mkpl/interchange/interchange.html
SJTerrill
June 26, 2003 at 5:01 pm
We've had some success with WinAce, but the largest files we've tried with the product were on the order of 30GB. There's a free trial if you want to give...
June 26, 2003 at 4:05 pm
This is somewhat rough, but I think addresses your last question.
SELECT syob.name 'ObjectName',
-- syco.name 'ColumnName',
-- syco.type,
syob.type 'ObjectType',
syus.name 'UserName'
FROM sysobjects syob
JOIN
sysusers syus
ON syob.uid = syus.uid
/* If you want column data
LEFT OUTER...
June 26, 2003 at 1:42 pm
Viewing 15 posts - 91 through 105 (of 151 total)