1
Digg me

When a new email address or Distribution list is created, the email address or distribution list may not be visible in Outlook.

Its because Outlook may be running in Cached mode.

  • Tools  > Options > Mail Setup
  •  
  • Click on Email Accounts
  •  
  • Double click your Email Account
  •  
  • UnCheck Use Cached Exchange Mode box
  •  
  • Click Next
  •  
  • Click Close
  •  
  • Open New Email, try the new email address to verify its seen.

Follow the same steps and Check the box to Use the Cached Exchange Mode.

Read more on benefits of using Cached Exchange Mode

none
1
Digg me

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified

I got this error when I started using LoginStatus Control. It seemed very wiered. After lot of struggle I found out this is caused by CSSAdapters.

Open CSSFriendlyAdapters.browser  (or something similar)

Look for this line and remove or comment it.

<adapter controlType="System.Web.UI.WebControls.LoginStatus"

 adapterType="CSSFriendly.LoginStatusAdapter" />

Now you LoginControl will work without any issues.

 

kick it on DotNetKicks.com

none
2
Digg me

 

Based on http://www.sqlbook.com/SQL/Avoiding-using-SQL-Cursors-20.aspx with a minor change.

DECLARE @CustomerID int

DECLARE @FirstName varchar(30), @LastName varchar(30)

– declare cursor called ActiveCustomers

DECLARE ActiveCustomers Cursor FOR

 SELECT CustomerID, FirstName, LastName 

 FROM Customer

 WHERE Active = 1

– Open the cursor

OPEN ActiveCustomers

– Fetch the first row of the cursor and assign its values into variables

FETCH NEXT FROM ActiveCustomers INTO @CustomerID, @FirstName, @LastName 

– perform action whilst a row was found

WHILE @@FETCH_STATUS = 0

BEGIN

 Exec MyStoredProc @CustomerID, @Forename, @Surname

 – get next row of cursor

 FETCH NEXT FROM ActiveCustomers INTO @CustomerID, @FirstName, @LastName 

END

– Close the cursor to release locks

CLOSE ActiveCustomers

– Free memory used by cursor

DEALLOCATE ActiveCustomers

 

Cursor alternative 1: Using the SQL WHILE loop

SQL provides us with the WHILE looping structure. This can be utilised with a temporary table that enables us to avoid using a cursor:

– Create a temporary table, note the IDENTITY

– column that will be used to loop through

– the rows of this table

DECLARE @TempCustomer TABLE (

 RowID int IDENTITY(1, 1), 

 CustomerID int,

 FirstName varchar(30),

 LastName varchar(30)

)

DECLARE @NumberRecords int, @RowCount int

DECLARE @CustomerID int, @FirstName varchar(30), @LastName varchar(30)

– Insert the resultset we want to loop through

– into the temporary table

INSERT INTO @TempCustomer (CustomerID, FirstName, LastName)

SELECT CustomerID, FirstName, LastName

FROM Customer

WHERE Active = 1 

 

– Get the number of records in the temporary table

SET @NumberRecords = @@ROWCOUNT

SET @RowCount = 1

 

– loop through all records in the temporary table

– using the WHILE loop construct

WHILE @RowCount <= @NumberRecords

BEGIN

 SELECT @CustomerID = CustomerID, @FirstName = FirstName, @LastName = LastName 

 FROM @TempCustomer 

 WHERE RowID = @RowCount

 EXEC MyStoredProc @CustomerID, @FirstName, @LastName

 SET @RowCount = @RowCount + 1

END

none
1
Digg me

If you create multiple packages in a Project, SQLServer Business Intelligence will not sort them based on file name. 

There is an alternate way to sort the items in the way you need.

Open .dtproj file in Notepad / Notepad ++ 

Scroll down to <DTSPackages>

Example :

 <DTSPackages>

    <DtsPackage>

          <Name>20-Export-To-Production.dtsx</Name>

          <FullPath>20-Export-To-Production.dtsx</FullPath>

          <References />

    </DtsPackage>

    <DtsPackage>

      <Name>10-Import.dtsx</Name>

      <FullPath>10-Import.dtsx</FullPath>

      <References />

    </DtsPackage>

  </DTSPackages>

You will see XML elements with SSIS package names. Cut and paste them in the order you want and save the .dtproj file.

   <DTSPackages>

    <DtsPackage>

      <Name>10-Import.dtsx</Name>

      <FullPath>10-Import.dtsx</FullPath>

      <References />

    </DtsPackage>

    <DtsPackage>

          <Name>20-Export-To-Production.dtsx</Name>

          <FullPath>20-Export-To-Production.dtsx</FullPath>

          <References />

    </DtsPackage>

  </DTSPackages>

Make sure you are cutting and pasting them with opening & closing tags.

Close Notepad.

Open your Project using Sqlserver Business Intelligence Studio

You will see the packages rearranged in desired sequence.

none
3
Digg me

Follow these steps, to make your webpage IE8 compatible. Feel free to add more pointers in comments.

1. Make your webpages Xhtml 1.1 compatible by adding this on top of your .aspx or .html page

< ?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

2. Remove all Inline Styling

Donot use inline styling

[table style="width:100px;height:200px;background-color:#ebebeb;"] [/table]

Instead use

.tableStyle1 {
width:100px;
height:200px;
background-color:#ebebeb;
}

[table class="tableStyle1"] [/table]

Replace ‘[' & ']‘ with ‘< ' and '>‘

3. Validate your CSS using

http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options

Profile : CSS Level 2.1
Medium : ALL
Warnings : ALL or Normal Report

4. Use XHTML equivalents for outdated / deprecated html tags

Click here to view new XHTML Constructs

none
1
Digg me

The Microsoft Jet database engine could not find the object ‘ ‘. Make sure the object exists and that you spell its name and the path name correctly.

Microsoft jet database engine

Today I got this error when I was trying to import a CSV file into Access database 2003. Even though I was trying to load this from my C: drive I was getting this error.

After couple of tries found that filename “currentproc.20090531.csv” had an extra “.”  and that was the problem.

So renamed the file to 20090531.csv and it worked :)

Happy importing.

3 com
3
Digg me

Is this a bug in SQL Server 2005 Sp3 or a feature ?

SQL Server 2005 Management Studio Sp2

SQL 2005-sp2-odbc-import

SQL Server 2005 Management Studio Sp3

sql2005-sp3-odbc-import

Where is the Connection String ? How are we supposed to import data from ODBC data sources ?

none
2
Digg me

To Manage Terminal Services Session first

Query the Server 192.168.2.5

c:\>qwinsta /server:192.168.2.5

SESSIONNAME USERNAME ID STATE TYPE DEVICE
console   0 Conn wdcon
rdp-tcp   65536 Listen rdpwd  
rdp-tcp#470 user1 1 Active rdpwd  
rdp-tcp#471 user2 3 Active rdpwd  

                                                   Â
To remove User1, issue the following command

c:>rwindsta /server:192.168.2.5 1

More info..

http://www.notes411.com/dominosource/tips.nsf/0/2913BC501C9F874D802571AA004E9580!opendocument

http://weblogs.asp.net/owscott/archive/2003/12/30/46776.aspx

Related Post : Too Many Users Connected

http://www.gchandra.com/scripts/index.php/2008/07/20/windows-remote-desktop-too-many-users-connected-rdp/

2 com
1
Digg me

Recd. this comparison chart via email.

Browser Policy

none
1
Digg me

Office 2007 users.. here is great news.

Microsoft released, Office 2007 Service pack 2 yesterday

It has lot of bug fixes and nice features..

Save as PDF / ODF
Improved Charting on Excel
Speeds up Outlook
Improved picture quality on Powerpoint Presentations
and lot more..

Check out the list here..

http://support.microsoft.com/?kbid=953195

—————–

Get Office 2007  Service Pack 2, download from

————————-

none

Archives

Tags