Viewing 15 posts - 136 through 150 (of 326 total)
This is what I needed but why CTE? we can only use query used in this CTE, right?
SQLKnowItAll (6/19/2012)
USE test
GO
CREATE TABLE tab1 (id int,oldId int, InsertedOn datetime)
insert...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 19, 2012 at 7:29 am
Looks like you guys are missing my point. If I run this query, then I'll get only that row which has id=20.
What I want is complete zigzag chain of...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 19, 2012 at 6:16 am
srikant maurya (6/19/2012)
Try thisselect * from tab1
order by id
Where is the passed parameter used in thsi query? it will return everything including id=99, which I dont want when I...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 19, 2012 at 6:03 am
GilaMonster (6/8/2012)
WHERE SomeColumn...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 8, 2012 at 6:00 am
Despite all the arguments, I still feel that if sql server can not evaluate a condition, then those rows should have been returned instead of preventing them. May be...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 8, 2012 at 5:00 am
anthony.green (6/8/2012)
thats correct as you cannot compare a null value as the result comes back as unknown so is excluded from the result sethttp://msdn.microsoft.com/en-us/library/ms191270%28v=sql.105%29.aspx
Ok, got your point. So if some...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 8, 2012 at 4:56 am
But my where clause is not doing comparision with NULL. it is doing comparision with 0.
And since NULL is not a zero, those records should come logically.
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
June 8, 2012 at 4:48 am
I actually used this proc, and it never gave me a CPU utilization of 100% even though it was 100% for 5 minutes.
ALTER proc [dbo].[MonitorCPU]
AS
BEGIN
SET NOCOUNT ON
DECLARE @TimeNow bigint...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 25, 2012 at 8:45 am
Honestly I already had tried this query but the DMV doesn't seem to give satisfactory result .
e.g. I ran a query on test server which made the CPU 100% for...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 25, 2012 at 7:27 am
First check that the records you are trying to insert exists or not in destination table. You'll find that record there. So you can't insert that record with currect schema....
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 18, 2012 at 4:34 am
ok, so the bottomline is don't create indexes on big table during peak hours.
Grant Fritchey (5/8/2012)
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 8, 2012 at 7:20 am
Unfortunately the edition was Standard and I couldn't use online option.
MysteryJimbo (5/8/2012)
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 8, 2012 at 7:19 am
Update to this column shouldn't throw error as this is varchar(20) column and what you are updating is less than 20 chars.
By the way are you putting quotes in where...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 8, 2012 at 4:35 am
Then you have either different length of column in table at the machine it worked or you are sending small string...
did you check from query what is the length of...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 8, 2012 at 3:40 am
Blockings come and go. They are no problem as long as they are not held for long time. You can not remove them completely but your aim should be to...
Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.
May 8, 2012 at 2:52 am
Viewing 15 posts - 136 through 150 (of 326 total)