Viewing 15 posts - 91 through 105 (of 212 total)
Try this article: http://www.sqlservercentral.com/articles/Performance+Tuning/tracingdeadlocks/1324/[/url]
March 9, 2012 at 12:11 pm
I like the CASE idea... will this work for you?
DECLARE @now TIME
SET @now = GETDATE()
SELECT CASE WHEN @now BETWEEN CONVERT(TIME,'07:00:00') AND CONVERT(TIME,'15:00:00') THEN 'First Shift'
WHEN @now BETWEEN CONVERT(TIME,'15:00:00') AND CONVERT(TIME,'23:00:00')...
March 9, 2012 at 10:55 am
GilaMonster (3/7/2012)
No it will not.No document references, was something that I tested some time back.
Thank you Gail!
March 7, 2012 at 11:00 am
It's because of the xml namespace declaration. Try using WITH XMLNAMESPACE to locate the node:
declare @XmlData xml
declare @xml table (xmldocument xml)
declare @NewValue varchar(50)
set @NewValue =...
November 11, 2011 at 9:42 am
Lowell (11/11/2011)
you've got to do a few things: first, extract the domain from the urls...in my example, as long is...
November 11, 2011 at 6:42 am
If the list of top-level domains in your table is small, you can do something like this easily:
select top 1 ID, URL from URL_LIST where URL like '%google.com%' order by...
November 11, 2011 at 6:37 am
It sounds like your Windows Authenticated login has connectivity permissions, but is not mapped to any user databases. Go the the Properties of the login, User Mapping, and check...
November 4, 2011 at 2:32 pm
Then add a YTD column to the base table and create insert/update/delete triggers to adjust the YTD data when values are added, updated, and deleted.
November 4, 2011 at 8:07 am
How would this work in your view?
select p.Year, p.Month, p.Account,p.Amount,
case when Month=(select top 1 Month from Postings order by Month)
then Amount
else (select SUM(Amount) from Postings where Month <= p.Month)
end...
November 4, 2011 at 7:43 am
Actually this looks like what you need:
http://www.mssqltips.com/sqlservertip/1629/determine-free-space-consumed-space-and-total-space-allocated-for-sql-server-databases/[/url]
I just created the usp_Sizing sproc and it indeed returns a Free Space % column, along with lots of other statistics.
November 3, 2011 at 2:54 pm
I use both of these:
SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
order by SizeMB desc
and
exec sp_MSforeachdb @command1='use [?] exec sp_spaceused'
go
November 3, 2011 at 2:46 pm
If you put SQL Server 2005 Express on their PCs, you could have them run a Windows batch file that calls a SQLCMD (or OSQL) command to run the query....
November 3, 2011 at 8:02 am
Indexing tables is more of an art than a formula sometimes 🙂 Off the top of my head I'm thinking that the index has not been used enough to...
November 3, 2011 at 7:44 am
You may be able to use the ISNULL function to just clean the data temporarily before pivoting:
November 3, 2011 at 7:36 am
That's not any more details :). I'll have to assume that you have an image FILE on a disk. You can combine a select, insert, or update query...
November 3, 2011 at 7:19 am
Viewing 15 posts - 91 through 105 (of 212 total)