Viewing 15 posts - 31 through 45 (of 51 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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
October 16, 2009 at 10:05 am
I am getting this error, from Summary.txt, while trying to install KB970892:
**********************************************************************************
Product Installation Status
Product ...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
October 16, 2009 at 8:58 am
Bruc0Blachf0rd-780736 ,
Do not pass dbo. as part of the table name.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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
...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
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...
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
May 6, 2008 at 7:15 am
Viewing 15 posts - 31 through 45 (of 51 total)