Viewing 15 posts - 5,401 through 5,415 (of 6,036 total)
It's worst possible way.
_____________
Code for TallyGenerator
April 14, 2006 at 5:45 am
SELECT @@Rowcount
_____________
Code for TallyGenerator
April 14, 2006 at 5:37 am
Here is the answer on your question.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=272895&p=1
4 different answers.
Pick the one.
_____________
Code for TallyGenerator
April 13, 2006 at 5:43 pm
Using WHERE NOT EXISTS instead of NOT IN you can check uniqueness for multiple column key.
_____________
Code for TallyGenerator
April 13, 2006 at 12:06 am
But I really don't know what to ask to check if remote server is accessible.
Network guys use to change firewall settings without removing linked servers.
So, all my checks give me...
_____________
Code for TallyGenerator
April 13, 2006 at 12:02 am
Absolutely!
Don't convert datetime to varchar, unless you need result as string for reporting purposes.
_____________
Code for TallyGenerator
April 12, 2006 at 11:27 pm
How you define where to start cursoring if you switch from 91-100 range to 101-110 range?
Do you do cursoring through first 100 rows?
_____________
Code for TallyGenerator
April 12, 2006 at 11:23 pm
And if you may possibly have more than 1 hour stoppage time:
declare @times TABLE (
STOPTIME datetime,
STARTTIME datetime)
INSERT INTO @times
SELECT '10:05:55', '10:10:55'
UNION
SELECT '10:45:55', '11:20:55'
UNION
SELECT '11:35:49', '12:49:49'
UNION
SELECT '13:49:55', '18:18:55'
declare @Numbers TABLE (
NUMBER...
_____________
Code for TallyGenerator
April 11, 2006 at 6:50 pm
declare @times TABLE (
STOPTIME datetime,
STARTTIME datetime)
INSERT INTO @times
SELECT '10:05:55', '10:10:55'
UNION
SELECT '10:45:55', '11:20:55'
UNION
SELECT '11:35:49', '12:49:49'
UNION
SELECT '13:49:55', '14:18:55'
SELECT datepart(hh, STOPTIME) as HourStop, SUM(DATEDIFF(MI,STOPTIME,STARTTIME)) AS 'Downtime'
FROM (
SELECT STOPTIME,
Case when datepart(hh, STOPTIME) < datepart(hh,...
_____________
Code for TallyGenerator
April 11, 2006 at 6:31 pm
declare @Date datetime
select @Date = getdate()
-- @m is a number of a month you take care about. You need August - so it's 8....
_____________
Code for TallyGenerator
April 11, 2006 at 6:11 pm
Your case is easy.
You just need to run some checks before creating an index.
SELECT <List of Columns for proposed Index>
FROM <Table Name>
GROUP BY <List of Columns for proposed Index>
Having COUNT(*)...
_____________
Code for TallyGenerator
April 11, 2006 at 6:00 pm
There must be dozen of topics with the same question (and answers!) for the last couple of weeks!
_____________
Code for TallyGenerator
April 11, 2006 at 5:44 pm
NULL is not better, it's ONLY RIGHT option.
To use '0' instead of NULL you need either drop FK constraint or create dummy record with ID = '0' in 'Causes' table.
Both...
_____________
Code for TallyGenerator
April 11, 2006 at 5:21 pm
Do you have triggers on targeted tables as well?
You cannot change ANSI_NULLS settings on run time. You need to create trigger with proper ANSI_NULLS set.
_____________
Code for TallyGenerator
April 11, 2006 at 5:16 pm
Wrong.
NULL cannot be valid value.
NULL means absence of a valid value.
Never replace NULLs with default values.
Middle Name = NULL means that Middle Name for the person is not recorded (unknown).
Middle...
_____________
Code for TallyGenerator
April 8, 2006 at 6:48 am
Viewing 15 posts - 5,401 through 5,415 (of 6,036 total)