Viewing 15 posts - 31 through 45 (of 50 total)
The article is interesting. I have an issue with the code.
I copied it to my clipboard.
When I pasted it in to a new query it looks like this:
I even pasted...
June 21, 2011 at 6:18 am
Carl,
I need to use your suggestions, for firewall reasons, but my environment is more current.
I have an active/active cluster for sql. The 2 servers in the...
June 2, 2011 at 7:13 am
Rudy,
You should edit you post so the code is multiple lines. One long line is diffucult to read.
Here is a multi line version.
PRINT 'Active Directory Query...
May 19, 2011 at 6:09 am
I like the script, it will be useful.
I have added the following to your code:
DECLARE
@sql VARCHAR(2048)
,@sort INT
DECLARE tmp CURSOR FOR...
November 23, 2010 at 6:50 am
I moved them so they were all in the same location and the patch applied.
Thanks for the help.
October 16, 2009 at 12:40 pm
I have not renamed the file. It is in the original location from installing SQL (C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data).
I have moved the system databases to F:\MSSQL_Data. and the logs to...
October 16, 2009 at 10:05 am
I am getting this error, from Summary.txt, while trying to install KB970892:
**********************************************************************************
Product Installation Status
Product ...
October 16, 2009 at 8:58 am
Bruc0Blachf0rd-780736 ,
Do not pass dbo. as part of the table name.
October 5, 2009 at 7:10 am
I am using SQL Server 2005 Enterprise Edition (x64) and getting the following errors:
Msg 102, Level 15, State 1, Line 11
Incorrect syntax near '?'.
Msg 102, Level 15, State 1, Line...
August 3, 2009 at 6:32 am
Here is a cleaned up set of code.
CREATE FUNCTION [dbo].[fn_CalculateHeapSize]
(
@Tablename VARCHAR(100)
)
RETURNS VARCHAR(100)
AS BEGIN
-- Calculate the space used...
July 2, 2009 at 1:20 pm
After cleaning up the text of the functions so it would create them, the function fn_GetTableSize only returns NULL.
I changed the function so the calculations handle a NULL return.
ALTER...
July 2, 2009 at 7:41 am
I ran into similar problems getting the accountexpires value.
I created the following function:
CREATE FUNCTION [dbo].[UTC2date] (@numSeconds BIGINT)
RETURNS DATETIME
AS BEGIN
DECLARE @TimeBias AS INT
EXEC...
September 11, 2008 at 9:46 am
I run the following query and it will return 17,000 plus records:
SELECT
sAMAccountName
,DistinguishedName
,dbo.UTC2date(accountExpires)
,employeeID
,cn
FROM
...
September 11, 2008 at 9:00 am
Mark,
You may need to increase the [Object] field or the [Column] field in table #t.
It will depend on the length of the names you use for your objects and columns.
May 6, 2008 at 11:40 am
Nice script.
But I had to increase the size of a2 to 75 to avoid truncation errors on SQL 2005.
Here is an updated script. I changed the names of the fields...
May 6, 2008 at 7:15 am
Viewing 15 posts - 31 through 45 (of 50 total)