Binary Artist

The Jason Marshall Experience

Binary Artist

Jason Marshall
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Increase IE's number of simultaneous downloads

I do not like being restricted by IE's limitation on only allowing 2 simultaneous downloads.

Click on the Start button and select Run.

  1. On the Run line type Regedt32.exe and hit Enter. This will launch the Registry Editor
  2. Locate the following key in the registry:

    HKEY_CURRENT_USER>Software>Microsoft>Windows>
    CurrentVersion>Internet Settings
    .

  3. Click on the Internet Settings Key. Now go to the Edit menu, point to NEW click DWORD Value
  4. Type MaxConnectionsPer1_0Server for the name of this DWORD Value.
  5. Double-click on the MaxConnectionsPer1_0Server key you just created and enter the following information:
    • Value data: 10.
    • Base: Decimal.
  6. When finished press OK.
  7. Repeat steps 4 and 5. This time name the key MaxConnectionsPerServer and assign it the same values as indicated in Steps 6.
  8. Close the Registry Editor.

That's all there is to it! If you modified your registry settings correctly, you should now have the capability to download up to 10 files simultaneously.

 

 


Tags: ,
Posted by Admin on Monday, March 24, 2008 5:50 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Welding in custom assemblies in SSIS with configuration variables.

 Welding in custom assemblies in SSIS with configuration variables. 

(I will pop a GAC in your CACHE !!!!)

Pre-requisites

SQL Server 2005 (including SSIS), Microsoft Visual Studio 2005 / 2008, .NET Framework v2.0-3.5

 

Prep the Assembly

In order to register the assembly in the Global Assembly Cache (GAC), it is necessary that the assembly has a Strong Name. There is a utility called sn.exe that can be used for this purpose. However, for this project, navigate to the Signing tab, select Sign the assembly option, and select <New> from the drop-down list. Type a name for the strong name key file. Finally, uncheck the option to protect my key file with a password. Click OK and save the project file. Build the file.The final step is to register the component in the GAC.  The simplest way is to copy your assembly into the C:\WINDOWS\assembly folder by dragging and dropping.  The other method involves creating bat files or using the command prompt to register your component. 

Adding a reference to the Assembly in SSIS script designer

 Intuitively one would think your next step is to open your SSIS script editor and within your project explorer simply add a reference to your newly GAC’ed assembly.  However when you right click on References -> Add Reference and browse the list of available assemblies - yours is not there.I will not spend time trying to explain the intricacies of why this is, instead I will focus on how to get your .dll registered so you can get up and working.  The bottom line is your going to have to modify the Package.dtsx manually edit the *.dtsx script file to add additional paths to look for your defined assemblies. For example:  Open the file and first search for “<Build>”.

Add yours to the end of the ReferencePath attribute. 

<Build>         
ReferencePath = "C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.ScriptTask\9.0.242.0__89845dcd8080cc91\;
C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\9.0.242.0__89845dcd8080cc91\;
C:\WINDOWS\assembly\GAC_MSIL\ myAssembly \1.0.0.0__5d6caf3fc6396ac3\"

Then you can define you assemblies in the References Tags a little further down:
 

<References>           
<Reference Name="
myAssembly " AssemblyName=" myAssembly " /> 
            *Next time you fire up the script in Visual Studio of Applications it will be referencing Next Search for “<References>”.  

<References>
               
           
<Reference Name = "myAssembly" AssemblyName = " myAssembly "/> 
</References>

Using a configuration varibles.

 When you are using a .NET assembly that reference external config variables, the hosting executable “owns” the App.config file.  Therefore in this instance, SSIS has two executables that it uses one for the development and debugging and one for the production release.  To see these files browse to:
 
C:\Program Files\Microsoft SQL Server\90\DTS\Binn

If you’re going to use configuration variables you need to add them to these two .config files:
 DTExec.exe – The main .exe SSIS uses for production release.

DTExec.exe.config 
DtsDebugHost.exe – The .exe  SSIS uses when developing and debugging.

DtsDebugHost.exe.config 

<configuration>   
<startup>
       
<requiredRuntime version="v2.0.50727"/>
   
</startup>
   
<appSettings>
               
<add key="Test1" value="test1" />
               
<add key="Test2" value="test2" />
    
</appSettings>
</configuration>

Categories: Cars
Posted by Admin on Thursday, March 13, 2008 4:13 AM
Permalink | Comments (0) | Post RSSRSS comment feed

LINQ Books - The future of Data Access

LINQ Books

Books on LINQ

LINQ in Action by Fabrice Marguerie, Steve Eichert, Jim Wooley, and Matt Warren



Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz

Professional LINQ (Programmer to Programmer) by Scott Klein

LINQ Quickly by Satheesh, N Kumar

LINQ for VB 2005 by Fabio Claudio Ferracchiati


Books that Feature LINQ

C# 3.0 in a Nutshell: A Desktop Quick Reference by Joseph Albahari

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Pro Series) by Andrew Troelsen

C# 3.0 Cookbook by Jay Hilyard and Stephen Teilhet

Pro ASP.NET 3.5 in C# 2008, Second Edition by Matthew MacDonald and Mario Szpuszta

ASP.NET 3.5 Unleashed by Stephen Walther (Hardcover - Jan 7, 2008)


Posted by Admin on Thursday, March 06, 2008 7:35 AM
Permalink | Comments (0) | Post RSSRSS comment feed
Free Hit Counters
page counter