Viewing 15 posts - 286 through 300 (of 684 total)
Hi...
Assuming that each date returns just one row this should work:
declare @field1 varchar(128), @field2 varchar(128), @field3 varchar(128), @field4 varchar(128), @field5 varchar(128), @field6 varchar(128)
select @field1 = case when field1 = 'jim'...
March 25, 2008 at 4:29 am
Lynn Pettis (3/21/2008)
update dbo.TeamBalance set
Balance = Balance - @Purchase
where
TeamId = @TeamId
...
March 21, 2008 at 7:48 am
I see. The same still applies, so yes it would work fine as you've described in the example.
Regarding the error handling, to release the locks you'd have to make...
March 21, 2008 at 6:24 am
Todd Biggins (3/20/2008)
If you can tell...
March 21, 2008 at 3:35 am
znkin (3/21/2008)
Instead of doing an Update query if I write a insert query will the same work. And also do I need to ensure some kind of...
March 21, 2008 at 3:25 am
Jonathan Devine (3/20/2008)
In that case is there any parameter that can be supplied to a 'field1 =" clause so that it...
March 20, 2008 at 7:20 am
what error message are you getting in event viewer?
March 20, 2008 at 6:46 am
dakshinamurthy (3/20/2008)
If i would like to know, whether a particular DB is online or has gone to a suspect mode, can i use the following query, so that once the...
March 20, 2008 at 6:24 am
How did you change the service account? You should change the service account using SQL Server Configuration Manager because doing so will ensure that the new account is given...
March 20, 2008 at 5:39 am
stuartreid73 (3/20/2008)
March 20, 2008 at 5:14 am
Or you could enable C2 auditing - but then you're auditing more than just ddl commands.
March 20, 2008 at 2:07 am
From my experience I've found there's very little difference between the two when using a low number of rows...but when using thousands or tens of thousands of rows I've found...
March 20, 2008 at 2:02 am
Oops....I'm so used to using SQL 2005 I never bother to think that other's might be using SQL 2000. Use master.dbo.sysaltfiles instead of sys.master_files. You'll just need to...
March 19, 2008 at 11:01 am
Hi El, not sure why I went for the sp_foreachdb method.
Try this instead....
select db_name(database_id) as databasename
, @@version as version
, @@servername as servername
, databasepropertyex(db_name(database_id), 'IsPublished') as IsPublished
, str(convert(dec(15),sum(size))* (select convert(varchar(11),low) from...
March 19, 2008 at 10:04 am
Sounds like you've got a seriously fragmented table there. How often do you backup your log? Backing it up more frequently will keep the log files trim during...
March 19, 2008 at 9:33 am
Viewing 15 posts - 286 through 300 (of 684 total)