Amir Mirkamali RSS 2.0
 Sunday, December 04, 2011
declare 

@NewCollation varchar(255)

,@Stmt nvarchar(4000)

,@DBName sysname

set @NewCollation = 'SQL_Latin1_General_CP1256_CI_AS' -- change this to the collation that you need

set @DBName = DB_NAME()

declare 

@CName varchar(255)

,@TName sysname

,@OName sysname

,@Sql varchar(8000)

,@Size int

,@Status tinyint

,@Colorder int

declare curcolumns cursor read_only forward_only local

for select

QUOTENAME(C.Name)

,T.Name

,QUOTENAME(U.Name) + '.' +QUOTENAME(O.Name)

,C.Prec

,C.isnullable

,C.colorder

from syscolumns C

inner join systypes T on C.xtype=T.xtype

inner join sysobjects O on C.ID=O.ID

inner join sysusers u on O.uid = u.uid

where T.Name in ('varchar', 'char', 'text', 'nchar', 'nvarchar', 'ntext')

and O.xtype in ('U')

and C.collation != @NewCollation

and objectProperty(O.ID, 'ismsshipped')=0

order by 3, 1

open curcolumns

SET XACT_ABORT ON

begin tran

fetch curcolumns into @CName, @TName, @OName, @Size, @Status, @Colorder

while @@FETCH_STATUS =0

begin

set @Sql='ALTER TABLE '+@OName+' ALTER COLUMN '+@CName+' '+@TName+ isnull ('('

+CASE @Size WHEN -1 then 'max' else convert(varchar,@Size) end+')', '') +' COLLATE '+ @NewCollation

+' '+case when @Status=1 then 'NULL' else 'NOT NULL' end

--exec(@Sql) -- change this to print if you need only the script, not the action

PRINT @Sql

fetch curcolumns into @CName, @TName, @OName, @Size, @Status, @Colorder

end

close curcolumns

deallocate curcolumns

commit tran
Sunday, December 04, 2011 8:18:44 AM UTC  #    -
SQL Server | Troubleshooting
 Monday, April 18, 2011

I found this article that was very useful.

http://www.cssnewbie.com/input-button-line-height-bug/

according to this article, use padding instead of line-height for opera & firefox.

Monday, April 18, 2011 6:16:49 AM UTC  #    -
Troubleshooting
 Sunday, March 27, 2011

Windows 7 still shows old icons after change! I found a solution but I don't think it's the best but it works.

Close all folders that are currently open.

  1. Press CTRL+SHIFT+ESC key sequence
  2. Right-click on the Explorer.exe process and kill it by selecting  End Process.
  3. At File menu of Task Manager, select New Task (Run…)
  4. Type CMD.EXE, and click OK
  5. At thePrompt window, type the commands line by line and press ENTER after each command:
    CD /d %userprofile%\AppData\Local
    DEL IconCache.db /a
    EXIT
  6. In Task Manager, click File, select New Task (Run…)
  7. Type EXPLORER.EXE, and click OK.
Sunday, March 27, 2011 7:41:09 AM UTC  #    -
Troubleshooting
 Wednesday, January 19, 2011

Add following code to your radmenu control. replace targetfieldname with your field.

<DataBindings>

<telerik:RadMenuItemBinding TargetField="TargetFieldName" />

</DataBindings>

Wednesday, January 19, 2011 8:02:57 AM UTC  #    -
ASP NET 2.0 | Telerik Controls | Troubleshooting

Try "mstsc /admin"

Wednesday, January 19, 2011 7:59:41 AM UTC  #    -
Troubleshooting
 Monday, December 06, 2010

The problem is that when clicking on the checkbox/radiobutton, then the vertical scrollbar jumps to the top!

This could happen in some scenarios because of the way RadFormDecorator styles checkboxes. When RadFormDecorator is used, the real checkboxes are hidden outside of the viewport. When the decorated checkbox is clicked however, browsers try to focus the real checkbox, hence the "jumping". To avoid that, the only thing that you usually need to do is to set position:relative to the parent container.

In this case however, because of the RTL mode, the approach is a bit different and need to add the following CSS the page:

input.rfdRealInput
{
   display:block;
   position: static !important;
   float: right;
   outline: 0;
   width: 0;
   height: 0;
   margin-top: -5px;
   FILTER: alpha(opacity=0)
   -moz-opacity: 0
   opacity: 0
}

Monday, December 06, 2010 6:01:09 AM UTC  #    -
ASP NET 2.0 | Troubleshooting
 Sunday, July 05, 2009

to solve this problem do the following instructions:

    1. Browse to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
    2. Add a DWORD value called TabProcGrowth with a value of 0
Sunday, July 05, 2009 11:37:46 AM UTC  #    -
ASP NET 1.0 | ASP NET 2.0 | Troubleshooting
 Tuesday, January 27, 2009

Response.ContentType = "application/force-download";

Response.AddHeader("Content-Disposition", "attachment;filename=\"" + Filename + "\"");

Response.BinaryWrite(yourbuffer);

Response.End();

Tuesday, January 27, 2009 1:19:08 PM UTC  #    -
ASP NET 1.0 | ASP NET 2.0 | Troubleshooting
 Tuesday, November 25, 2008

برای حل مشکل کافی است در بخش GlobalSection فایل sln خود خط زیر را اضافه کنید:

SccProjectEnlistmentChoice0 = 2

Tuesday, November 25, 2008 10:28:32 AM UTC  #    -
ASP NET 1.0 | Troubleshooting
 Wednesday, November 19, 2008

Copy and paste the following lines into a Notepad file.

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

Rename it to desktop.scf

Wednesday, November 19, 2008 5:11:43 AM UTC  #    -
Troubleshooting

Run  RemoteComponents.hta from your installation cds. navigate and find "install full remote debugging on all operating systems" and push the install full button. I had to many probems with my remote debugger and this solved my problem.

this link was very usefull to understand what is my debugger problem:

http://blogs.msdn.com/mkpark/articles/86872.aspx

Wednesday, November 19, 2008 5:11:23 AM UTC  #    -
ASP NET 1.0 | ASP NET 2.0 | Troubleshooting
 Sunday, November 16, 2008

If FLV files do not appear in the player and you get 404 error it means that you need to add a mime type for flv files.

add MIME-Type for .FLV extentions with the proper mime-type "flv-application/octet-stream"

Sunday, November 16, 2008 10:20:26 AM UTC  #    -
Troubleshooting
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
Blogroll
About the author/Disclaimer

استفاده از مطالب سایت با ذکر منبع آزاد است

© Copyright 2012
Amir Mirkamali

Statistics
Total Posts: 40
This Year: 0
This Month: 0
This Week: 0
Comments: 1
Themes
All Content © 2012, Amir Mirkamali