Viewing 15 posts - 19,651 through 19,665 (of 26,484 total)
okay,
declare @value int;
update sometable set
somecolume = somevalue;
set @value = @@rowcont;
exec dbo.InsertRowCount 26,'Description',@value;
Help a little more?
As to writing your code for you, no. You give it...
July 22, 2009 at 8:27 am
Also, the table and data provided to seem to match what you showed us in your original post. How about a little more information about what you are looking...
July 22, 2009 at 8:23 am
It would also be nice if you had two or three individuals in the sample data instead of just one.
July 22, 2009 at 8:21 am
peter.nguyen (7/22/2009)
Hi Lynnattached are the table ddl and sample inserts
thanks
Okay, but what about the expected results based on the sample data?
July 22, 2009 at 8:19 am
General frame work:
update tablename set
somecolumn = @somevalue;
set @value = @@rowcount -- capture how many rows were updated;
exec dbo.insertcounts 26,'description',@value;
Does this hint help?
July 22, 2009 at 8:14 am
Is CDate the leading column on any or all of the indexes?
July 22, 2009 at 7:04 am
Look up Query Notifications in BOL (Books Online). It was a feature added in SQL Server 2005. This is probably what you are looking for.
July 22, 2009 at 6:54 am
Okay, still haven't had enough caffine this morning. I got this one wrong because i misread the question.
July 22, 2009 at 6:49 am
The reason it is failing is because your default date format is dmy. Here is some test code I ran here at home.
set dateformat mdy
select cast('2009-07-23 00:00:00' as datetime)...
July 22, 2009 at 6:34 am
johan.brohn (7/22/2009)
Yes, Kenneth's works but Ken McKelvey's (the one I quoted) doesnt
Sorry, still half a sleep. Need more caffine.
July 22, 2009 at 6:21 am
johan.brohn (7/22/2009)
Doesnt work when date1 is not null and date2 is nullKen McKelvey (7/22/2009)
CASE
WHEN COALESCE(date2, 0) < COALESCE(date1, 0)
THEN date2
ELSE COALESCE(date1, date2)
END
CASE
WHEN @d1 < COALESCE(@d2,'20991231') THEN @d1
ELSE @d2
END
Actually...
July 22, 2009 at 6:04 am
You can not restore a SQL Server 2008 backup to a SQL Server 2005 system regardless of the compatibility mode of the database.
If you need to move a database from...
July 22, 2009 at 5:55 am
sarvesh singh (7/22/2009)
When i run a query :
select * from shifthistory where vfrom='2009-07-23 00:00:00'. i get an error.
...
July 22, 2009 at 5:52 am
Not sure what you mean by an external device, but one possible cause could be permissions. A second could be a network error or problem with the network configuration.
July 21, 2009 at 9:30 pm
Just a guess based on my knowledge of backups and restores only, haven't worked in a logshipping environment yet, but no I don't think you can do that.
July 21, 2009 at 9:14 pm
Viewing 15 posts - 19,651 through 19,665 (of 26,484 total)