Changing schema names on Sql Server 2005

25. July 2007

     I my database on Sql Server 2005, I have to change schema names from some username to dbo and I wrote the following sql statements which simply generates alter queries. All you have to do is to change 'Username Here' to actual username, it will generates alter queries for you and then just copy and execute them in query window.

SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + p.Name FROM sys.Procedures p INNER JOIN
sys.Schemas s on p.schema_id = s.schema_id WHERE s.Name = 'Username Here'

SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + t.Name FROM sys.Tables t INNER JOIN
sys.Schemas s on t.schema_id = s.schema_id WHERE s.Name = 'Username Here'

SELECT 'ALTER SCHEMA dbo TRANSFER' + s.Name + '.' + v.Name FROM sys.Views v INNER JOIN
sys.Schemas s on v.schema_id = s.schema_id WHERE s.Name = 'Username Here'
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

English, Misc

Some Useful CheatSheet Links

9. February 2007

Google Kod Arama Motoru

1. February 2007

Program yazarken çokta fazla koda takılmam; asıl olan mimarisidir bence (tabi unutkan olmamın da koda takılmamamda etkisi olabilir ) Bir programı yazmaya başlarken ilk yaptığım benzer örnekleri incelemektir. Bu sayede benden önce edinilmiş olan deneyimleri görmüş olurum, deyim yerindeyse amerikayı tekrar keşfetmem. Google geliştiricileri de benim gibi düşünüyor olacak ki kod arama motorunu açmışlar  http://www.google.com/codesearch adresinde bulabileceğiniz bu arama motoru ile düzenli ifadeler (RegEx) kullanarak verilen desene uyan dosya ve klasörler içerisinde veya belirtilen programlama diline ait olan kaynak kodları içerisinde büyük/küçük harf duyarlı/duyarsız olarak kod örneği arayabilirsiniz. Hatta bu aramayı GPL, LGPL v.b. lisans türündeki kodlar üzerinde yapabilirsiniz.

    Oldukça faydalı, sizce de öyle değil mi!

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Türkçe, Misc

CodePlex - Another Open Source project portal from Microsoft

30. May 2006

Microsoft has been started beta version of CodePlex, another open source project portal  after gotdotnet; but that one supported with aspx and team foundation server.

    Here is the discription of site with their own word : "CodePlex is an online software development environment for open and shared source developers to create, host and manage projects throughout the project lifecycle. It has been written from the ground up in C# using .NET 2.0 technology with Team Foundation Server on the back end. CodePlex is open to the public free of charge."

    Yo can visit web site at http://www.codeplex.com

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

English, Misc

How to Restrict Internet Explorer Control Panel Settings

25. May 2006

On your start menu click on run and type Regedit on run dialog, this will open registery editor. Then browse to HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Internet Explorer \ Control Panel (If path doesn't exist, you may create it yourself). Within that key you may enable any restriction you want, all you have to do is to add value of 1 as value (delete that entry to disable that restriction)

Entry Description
Accessibility Accessibility settings
Advanced Advanced settings
AdvancedTab Advanced tab
Autoconfig Autoconfig settings
Cache Cache settings
CalendarContact Contact settings
Check_If_Default Check if IE default browser setting
Connection Settings Change Connection Type
Certificates Certificates settings
CertifPers Personal Certificates settings
CertifSite Certificates Publishers settings
Colors Colors settings
Connection Wizard Ability to run the Connection Wizard
ConnectionsTab Connections tab
Connwiz Admin Lock Connection Wizard administrative lockout
ContentTab Content tab
Fonts Fonts settings
FormSuggest Forms suggest setting
FormSuggest Passwords Passwords suggest setting
GeneralTab General tab
History History settings
HomePage Home Page settings
Languages Languages settings
Links Links settings
Messaging MS Messaging settings
Profiles Profiles settings
ProgramsTab Programs tab
Proxy Proxy settings
Ratings Ratings settings
ResetWebSettings Reset web settings
SecAddSites Security Add sites settings
SecChangeSettings Security changes
SecurityTab Security tab
Settings Settings boxes
Wallet MS Wallet settings (IE 5.xx and newer)
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

English, Misc