To get a list of all the tables in SSAS, execute this in an MDX window:
SELECT * FROM $system.dbschema_tables
where Table_type = 'schema'
Sunday, October 2, 2011
Wednesday, September 21, 2011
List compressed SQL tables
select
'[' + s.name + '].[' + o.name + ']' as TblName
,p.data_compression_desc
from
sys.partitions p
join sys.objects o
on p.object_id = o.object_id
join sys.schemas s
on o.schema_id = s.schema_id
where
p.data_compression != 0
Friday, September 9, 2011
THE EVOLUTION OF THE WEB
Great visualization. Doesn't render correctly in IE. You'll need to use another browser like Safari.
Tuesday, September 6, 2011
Get the user list for an Active Directory group
dsquery group -samid SecurityGroup | dsget group -members -expand | findstr /i ",OU=UserAccounts," | dsget user -samid > c:\SecurityGroup_userlist.txt
Saturday, August 13, 2011
Using SQL to generate cygwin curl command line to render all SSRS reports to a file on disk
use [ReportServer]
go
-- http://server/ReportServer?REPORT_PATH&rs:Command=Render&rs:Format=PDF&myparam1=Value1&myparam2=Value2
-- http://server/ReportServer?REPORT_PATH&rs:Command=Render&rs:Format=CSV&rc:FieldDelimiter=%09
SELECT
'curl --ntlm -u "ntlmDomain\ntlmUserName:Password" "'
+ replace(replace('http://server/ReportServer?REPORT_PATH&rs:Command=Render&rs:Format=CSV&rc:FieldDelimiter=%09', 'REPORT_PATH', c.Path),' ', '%20')
+ '" > "' + replace(c.Path, '/', '_') + '.txt"'
FROM
[dbo].[Catalog] c
WHERE
Type = 2
--and Path like '/BetaSite/%'
Programatically rendering SSRS reports and writing them to a file
http://geekswithblogs.net/bsherwin/archive/2007/04/29/112094.aspx
http://bytes.com/topic/sql-server/answers/728883-using-rs-exe-export-report-command-line-urgent
http://msdn.microsoft.com/en-us/library/ms162839.aspx
http://weblogs.sqlteam.com/tarad/archive/2005/01/05/3944.aspx
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=110451
http://bytes.com/topic/sql-server/answers/728883-using-rs-exe-export-report-command-line-urgent
http://msdn.microsoft.com/en-us/library/ms162839.aspx
http://weblogs.sqlteam.com/tarad/archive/2005/01/05/3944.aspx
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=110451
Friday, August 12, 2011
SSRS rendering
http://MYSERVER/ReportServer?MyReport&rs:Command=Render&rs:Format=CSV&rc:FieldDelimiter=%09
http://MYSERVER/ReportServer?MyReport&rs:Command=Render&rs:Format=PDF&myparam1=Value1&myparam2=Value2
Thursday, March 17, 2011
Friday, February 18, 2011
selecting data from Excel tables using VBA
'select an entire column (data only)
s.Range("Table1[Column2]").Select
'select an entire column (data plus header)
s.Range("Table1[[#All],[Column1]]").Select
'select entire data section of table
s.Range("Table1").Select
'select entire table
s.Range("Table1[#All]").Select
s.Range("Table1[Column2]").Select
'select an entire column (data plus header)
s.Range("Table1[[#All],[Column1]]").Select
'select entire data section of table
s.Range("Table1").Select
'select entire table
s.Range("Table1[#All]").Select
Subscribe to:
Posts (Atom)