Viewing 15 posts - 21,496 through 21,510 (of 39,961 total)
The ideas I've heard, and what has been built into Powerpivot with Sharepoint 2010 integration is a way to watch and see which applications are heavily used and they can...
December 14, 2009 at 8:53 am
Great point, Jack. You can also use the UPDATE() function in the trigger to check things. http://msdn.microsoft.com/en-us/library/ms187326%28SQL.90%29.aspx
December 14, 2009 at 8:47 am
For anyone else confused, the SQL CLR is a programming platform inside SQL Server that allows you to write your own assemblies in any .NET language to call from t-sQL...
December 13, 2009 at 8:09 pm
If you are storing these as numerical values you will need to CAST them as strings.
select cast( year as char(4)) + cast( period as char(2)) + '01'
In the future,...
December 13, 2009 at 8:00 pm
SQL Server will use all the RAM it can based on activity. However, once the activity slows, it does not release that RAM, instead maintaining it's cache for the next...
December 13, 2009 at 7:57 pm
You can use information_schema.tables and information_schema.columns to get data about the database.
In terms of figuring out what has changed, unless you have a good way to identify changed rows, I'm...
December 13, 2009 at 7:56 pm
In a trigger you would use the "inserted" virtual table.
update demo
set bemodified = 1
from inserted i
where demo.id = i.id
Be aware that triggers fire once for ALL...
December 13, 2009 at 7:50 pm
Are these stored in one field or multiple fields?
separate fields, use the + to contatinate values
select year + month + '01'
December 13, 2009 at 7:49 pm
you don't include the column in the UPDATE, only the SET.
UPDATE dbo.ResourceOwner
SET dbo.ResourceOwner.UserID = dbo.Testupdate.userid
FROM dbo.ResourceOwner INNER JOIN
dbo.TestUpdate ON dbo.ResourceOwner.RESOURCEID = dbo.TestUpdate.EquipId
WHERE (dbo.TestUpdate.EquipName <> 'NULL')
December 13, 2009 at 4:21 pm
Again, it's not you, or the account you use in SSMS. It's the SERVICE account that SQL Server uses that executes things, not any of your accounts.
December 13, 2009 at 4:16 pm
Anything that makes use of tempdb, especially large transactions that have sorts, index rebuilds set to use tempdb, etc. will cause transactions in tempdb. It is the same as what...
December 13, 2009 at 4:15 pm
Actually based on this thread I think the most often used words are "urgent" or "start your tests"
😛
December 13, 2009 at 10:08 am
Mr Denny and Jeff have given you a good explanation. When you run something in SQL Server, using SSMS or your client, it doesn't run under your windows account, or...
December 13, 2009 at 10:06 am
third vote for George here.
If it grows every day, and you shrink it every day to have it grow again, does that not seem silly? What's the point?
December 13, 2009 at 10:04 am
Viewing 15 posts - 21,496 through 21,510 (of 39,961 total)