Number2 Blog - myITforum
Sign in
|
Join
|
Help
Home
Contact
About
RSS
Atom
Comments RSS
Search
Tags
add remove programs
add_remove_programs_64_data
Add_Remove_Programs_Data
aliases
batch scripting
BIGINT
bitwise and
byte conversion
case
CAST
CHARINDEX
clustered index seek
CM 2007
CM 2007 SP2
coalesce
configmgr
constraint
CSV
CTE
Dynamic SQL
execution plan
Export
GROUP BY
hardware inventory
index
indexes
inline function
inner join
INT
itemExtract
Microsoft Systems Management Server
Microsoft.XmlHttp
mif
multistatement table-valued function
ObjectType
optimization
order by
outlook
perfmon
performance tips
permissions
PIVOT
promisec
Query Performance
scalar-valued user defined function
SCCM
SCCM Guru
SCCM Guru Webcast
Schema
SCOM
shell scripting
SMS
sms 1.2
sms 2.0
SMS 2003
SMS 2003 SP2
SMS 2003 SP3
sms report
SMS Web Reports
smsschm_users
sorting
sp_recompile
SQL
SQL 2000
sql 2005
SQL 2008
SQL Reporting Services
Status Messages
SUBSTRING
system center configuration manager
table scan
Table size
table variable
TRUNCATE
UDF
udf_ConvertBytes
udf_ItemExtract
user defined function
user defined functions
v_add_remove_programs
v_GroupMap
v_GS_SoftwareFile
v_GS_SoftwareProduct
v_ProductFileInfo
v_SecuredObject
v_StatMsgAttributes
v_StatMsgInsStrings
v_StatusMessage
v_UserClassPermissions
vbscript
view
views
vSMS_Folders
web report
web reports
webreport
webreport_approle
wildcard
Winbatch
WQL
News
Navigation
Site Home
Home
Bloggers List
Forums
Blogs
Photos
Downloads
Donate
Archives
September 2011 (8)
August 2011 (4)
June 2011 (2)
January 2011 (1)
October 2010 (1)
January 2010 (1)
December 2009 (1)
November 2009 (2)
October 2009 (4)
September 2009 (1)
August 2009 (3)
July 2009 (5)
March 2009 (2)
January 2009 (1)
December 2008 (1)
October 2008 (4)
August 2008 (6)
July 2008 (1)
June 2008 (2)
May 2008 (3)
April 2008 (2)
March 2008 (4)
February 2008 (1)
January 2008 (4)
December 2007 (7)
November 2007 (9)
October 2007 (7)
Browse by Tags
All Tags
»
sql 2005
(
RSS
)
Active Directory
BIGINT
BIT
bitwise and
BYTE
CAST
CHARINDEX
clustered index scan
clustered index seek
Common Table Expressions
CTE
Datetime
Datetime2
delimited list
Discovery
DISTINCT
extended stored procedures
FOR XML PATH
forums
GROUP BY
index
index scan
index seek
inner join
INT
Integer8
ip address
itemExtract
join
left join
left outer join
LIKE
list to column
list to rows
list to table
mac address
MAX
Microsoft Systems Management Server
order by
outer join
outlook
permissions
PIVOT
Program Chaining
recompiling stored procedures
right join
right outer join
SCCM
SMS
sms 1.2
sms 2.0
SMS 2003
SMS 2003 SP2
SMS 2003 SP3
sms permissions
sms report
SMS Web Reports
SMS_DISCOVERY_DATA_MANAGER
SMS_INVENTORY_DATA_LOADER
SMS_SOFTWARE_INVENTORY_PROCESSOR
smsschm_users
sorting
sp_GetPublicKeySMSUID
sp_recompile
SQL
SQL 2000
SQL 2008
sql rights
SUBSTRING
system center configuration manager
table
table scan
UDF
udf_ItemExtract
udf_Split
user defined function
user defined functions
v_FullCollectionMembership
v_GS_SoftwareFile
v_GS_SoftwareProduct
v_ProductFileInfo
V_R_System
v_SecuredObject
v_UserClassPermissions
view
web report
web reports
webreport
webreport_approle
wildcard
SMS/ConfigMgr - SQL Function to Convert Integer8 (from Active Directory) to Datetime/Local Time
by
jnelson
INTEGER8... It's possible you're pulling a value from Active Directory for discovery like LastLogonTimeStamp which stores it's value as something...
Filed under:
SQL
,
sql 2005
,
SQL 2008
,
Discovery
,
Datetime2
,
Integer8
,
Active Directory
,
Datetime
SQL 2005 Security - Revoke EXECUTE rights for PUBLIC on (potentially) unsafe extended stored procedures
by
jnelson
Where I work, we have an amazing crew of security architects and analysts who have decades of experience in all things security. Sure, at times they may...
Filed under:
sql 2005
,
sql rights
,
extended stored procedures
SMS Web Report (SQL 2005+) - Show SMS program execution chaining hierarchy visually using CTE (Common Table Expressions) in SQL 2005+
by
jnelson
In response to a request on the forums, here's a SQL query that uses common table expressions (CTE) to visually return the program execution chain...
Filed under:
SMS
,
sql 2005
,
web reports
,
Program Chaining
,
CTE
,
Common Table Expressions
SCCM 2007 - SCCM Permissions Matrix
by
jnelson
This SQL query pulls all SCCM permissions for each user and displays them in a matrix. Put this into an SCCM Web report. This should work for SQL 2000...
Filed under:
SCCM
,
web report
,
sql 2005
,
SQL 2000
,
permissions
,
system center configuration manager
SMS 2003 - SMS Permissions Matrix
by
jnelson
This SQL query pulls all SMS permissions for each user and displays them in a matrix. Put this into an SMS Web report. This should work for SQL 2000, SQL...
Filed under:
SMS 2003
,
web report
,
sql 2005
,
SQL 2000
,
permissions
M@d Skillz - SMS Web Reports - Passing a delimited list to SMS Web Reports like a table - (also convert list to rows in SQL)
by
jnelson
BACKGROUND Pass multiple items into a single parameter? With SMS Web reports, there's a lot of power in being able to pass parameters to your report...
Filed under:
SMS
,
UDF
,
user defined functions
,
SMS 2003 SP3
,
SMS 2003
,
SMS 2003 SP2
,
Microsoft Systems Management Server
,
SMS Web Reports
,
web report
,
webreport
,
smsschm_users
,
webreport_approle
,
sql 2005
,
web reports
,
user defined function
,
sms report
,
sms 2.0
,
sms 1.2
,
list to rows
,
udf_Split
,
delimited list
,
list to table
,
list to column
SMS 2003 - SQL Error: (SMS Message ID 620, SQL Message 2801) The definition of object 'sp_GetPublicKeySMSUID' has changed since it was compiled...
by
jnelson
PROBLEM Recently, we started seeing a TON of errors in SMS_DISCOVERY_DATA_MANAGER, SMS_INVENTORY_DATA_LOADER and SMS_SOFTWARE_INVENTORY_PROCESSOR (click...
Filed under:
SQL
,
SMS
,
SMS 2003 SP3
,
SMS 2003
,
sql 2005
,
sp_recompile
,
SMS_INVENTORY_DATA_LOADER
,
SMS_SOFTWARE_INVENTORY_PROCESSOR
,
SMS_DISCOVERY_DATA_MANAGER
,
sp_GetPublicKeySMSUID
,
recompiling stored procedures
SQL for SMS - Concatenate MAC addresses and IP Addresses into their own columns
by
jnelson
If you've ever written a report that also selects IP addresses or MAC addresses, you've noticed that there can be multiple addresses per machine...
Filed under:
SQL
,
SMS
,
UDF
,
SMS 2003
,
web report
,
sql 2005
,
SQL 2000
,
ip address
,
mac address
,
user defined function
,
FOR XML PATH
,
sms report
M@d Skillz - SMS Permissions - BITWISE "AND" with a PIVOT thrown in for pretty :)
by
jnelson
M@d SKILLZ ARTICLE ALERT! (This is gonna get cr@zy, if you have a helmet, now's the time to put it on) So I was trolling the forums here on MyITForum...
Filed under:
SQL
,
SMS
,
PIVOT
,
SMS 2003
,
sql 2005
,
web reports
,
inner join
,
BYTE
,
v_UserClassPermissions
,
table
,
MAX
,
v_SecuredObject
,
forums
,
sms permissions
,
view
,
bitwise and
,
BIT
SQL Oddity - OUTER JOINs with criteria act like INNER JOIN
by
jnelson
SYMPTOMS You have a query with an OUTER JOIN (aka LEFT JOIN, RIGHT JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN), and you need to put filter criteria on the...
Filed under:
SQL
,
SMS
,
SMS 2003
,
sql 2005
,
v_GS_SoftwareFile
,
right outer join
,
inner join
,
right join
,
join
,
v_FullCollectionMembership
,
left outer join
,
outer join
,
V_R_System
,
left join
SQL Performance - Indexes and the LIKE clause
by
jnelson
INDEXES AND THE LIKE CLAUSE Often times, people will make the generalization that when you have LIKE in your WHERE clause it won't use indexes. The...
Filed under:
SQL
,
SMS
,
table scan
,
clustered index seek
,
SMS 2003
,
index
,
sql 2005
,
LIKE
,
web reports
,
clustered index scan
,
index scan
,
wildcard
,
index seek
SMS Web Report - Outlook machine counts by version (Plus a trick to order by version PROPERLY)
by
jnelson
RECOMMENDED READING First of all, you should read this article I wrote entitled " How to get the CORRECT order when sorting on version numbers like...
Filed under:
SQL
,
SMS
,
SMS 2003
,
Microsoft Systems Management Server
,
web report
,
webreport
,
outlook
,
v_ProductFileInfo
,
BIGINT
,
CAST
,
itemExtract
,
sql 2005
,
v_GS_SoftwareFile
,
v_GS_SoftwareProduct
,
GROUP BY
,
DISTINCT
SQL for SMS/SCCM - How to get the CORRECT order when sorting on version numbers like xx.xx.xx.xx
by
jnelson
(UPDATE: This post was updated 2008-08-16. Skip to the end to see the update) THE PROBLEM Let's say you query SMS to find all versions of Outlook you...
Filed under:
SQL
,
SMS
,
SMS 2003
,
outlook
,
udf_ItemExtract
,
v_ProductFileInfo
,
INT
,
BIGINT
,
CAST
,
itemExtract
,
order by
,
sql 2005
,
v_GS_SoftwareFile
,
SUBSTRING
,
CHARINDEX
,
sorting
,
v_GS_SoftwareProduct