Determine Table Size

EXECUTE sys.sp_spaceUsed ‘dbo.TableName’

To determine for more tables need to use a cursor. See below and other articles ( unchecked )http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/121/determing-sql-server-table-size.aspx

 

SSMS Database Built-In Reports Page Setup

 
There is a print button on the report. Changing the settings from here seems to have no effect. For instance changing from Portrait to Landscape.
Insted right-click anywhere on the report itself and then work with Page Setup. Seems to work.

sender Is (control) with Option Strict On

 
Select Case True
    Case sender Is PrintPreviewToolStripMenuItem, sender Is PrintPreviewToolStripButton
 
From
You can use Select Case as in the following:

Select Case True
   Case sender Is TextBox1
      Label1.Text = TextBox1.Text
  
Case sender Is TextBox2
      Label1.Text = TextBox2.Text
End Select

However, this translates into IL (and decompiled using Reflector) as:

 Dim flag1 As Boolean = True
      If (flag1 = (sender Is Me.TextBox1)) Then
            Me.Label1.Text = Me.TextBox1.Text
      Else
            If (flag1 = (sender Is Me.TextBox2)) Then
                  Me.Label1.Text = Me.TextBox2.Text
            End If
      End If

I don’t know if this helps.

METHOD How to set a Local Report Parameter

 

They said it could not be done.
But here is the code to set a Local Report Parameter at runtime

”’ <summary>
”’ METHOD How to set Report Parameter
”’ </summary>
”’ <param name="MyReportViewer"></param>
”’ <param name="sParameterName"></param>
”’ <param name="sParameterText"></param>
”’ <remarks></remarks>

Private Sub SetLocalReportParameter(ByVal MyReportViewer As Microsoft.Reporting.WinForms.ReportViewer, ByVal sParameterName As String, ByVal sParameterText As String)

Try
Dim rp As New ReportParameter(sParameterName, sParameterText)
Dim rpP() As ReportParameter = {rp}
With MyReportViewer
.LocalReport.SetParameters(rpP)
.RefreshReport()
End With

Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

End Sub

Talking about Tip/Trick: Hard Drive Speed and Visual Studio Performance – ScottGu’s Blog

 
 
 
Importance of Hard Disk Speed on new PC / Laptop especially for Visual Studio 2008
Edited from Windows Live Writer

Desktop Search Enable / Disable

 
 
 

In RegEdit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows Desktop Search\DS and set "ShowStartSearchBand" to 0, and you’ll get the default search behavior back.

And while you’re at it and poking around in the registry, you might as well go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex and set FilterFilesWithUnknownExtensions to DWORD with the value of "1" in order to enable full-text searching of files (like code!) that Explorer by default skips over.

I am also trying
MSConfig 
and Start Control Panel Administrative Tools Services

Steve

 
 

Report does not refresh with BindingSource Filter

 
For a local report, where you want to refresh based on the BindingSource. See this link.
 
 
Required code is
 
Dim tempBindingSource As New BindingSource(Me.OriginalBindingSource, "")
Me.ReportViewer1.LocalReport.DataSources(0).Value = tempBindingSource
 
Steve

Print DataGridView

 
 
Place for feedback on visual studio is …
 
 
for Print + DataGridView see 88229 from
 

Late Binding when reference not available E.g. Excel

VB.Net Starter