
January 20, 2012
October 7, 2011
Simple replace Null Value with something that you need sql
SELECT IsNull(ColumnName, ' bla bla') As NewColumnName FROM TableName
September 26, 2011
Cant insert Cyrillic Macedonian or Russian characters into database when doing bulk insertion.
If you are Bulk inserting informations in your database that contain characters with value greater than 127 or less than 32. then in your bulk insert procedure just add
CODEPAGE = { ’ACP’ }
and also be sure that your .csv file is saved in ANSI.
BULK INSERT
[ database_name . [ schema_name ] . | schema_name . ] [ table_name | view_name ]
FROM 'data_file'
[ WITH
(
[ [ , ] BATCHSIZE = batch_size ]
[ [ , ] CHECK_CONSTRAINTS ]
[ [ , ] CODEPAGE = { 'ACP' | 'OEM' | 'RAW' | 'code_page' } ]
[ [ , ] DATAFILETYPE =
{ 'char' | 'native'| 'widechar' | 'widenative' } ]
[ [ , ] FIELDTERMINATOR = 'field_terminator' ]
[ [ , ] FIRSTROW = first_row ]
[ [ , ] FIRE_TRIGGERS ]
[ [ , ] FORMATFILE = 'format_file_path' ]
[ [ , ] KEEPIDENTITY ]
[ [ , ] KEEPNULLS ]
[ [ , ] KILOBYTES_PER_BATCH = kilobytes_per_batch ]
[ [ , ] LASTROW = last_row ]
[ [ , ] MAXERRORS = max_errors ]
[ [ , ] ORDER ( { column [ ASC | DESC ] } [ ,...n ] ) ]
[ [ , ] ROWS_PER_BATCH = rows_per_batch ]
[ [ , ] ROWTERMINATOR = 'row_terminator' ]
[ [ , ] TABLOCK ]
[ [ , ] ERRORFILE = 'file_name' ]
)]
September 22, 2011
Event Viwer Error ODBC
Perfmon
Short:
You are runign in services.mcs Smlogsvc.exe service and that service is run under Network Service account that have no privilege to read data from MS SQL bin folder. Locate your MSSQL bin folder add permisons to Network Service to be able to read.
—
Long: http://support.microsoft.com/kb/912399/en-us
The description for Event ID ( 0 ) in Source ( ODBC ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Error in d:\nt\enduser\databaseaccess\src\mdac\odbc\core\dm\perf.c(349), Access is denied.
: Failed to create mutex for MS ODBC Perf File Mapping.
Couse:
This problem occurs because the Performance Logs and Alerts service (Smlogsvc.exe) does not have sufficient permissions to access the performance counter DLL or the “bin” directory and “bin\en” directoryfor SQL Server 2005 Analysis Services.
On a Windows XP-based computer, the Performance Logs and Alerts service runs under the Network Service account. However, the Network Service account has limited permissions on the local computer. The Network Service account cannot access the performance counter DLL or the SQL Server 2005 Analysis Services “bin” directory and the “bin\en” directorywhen you collect data from SQL Server 2005 Analysis Services performance counters.
Solution:
To resolve this problem, you must grant the Read & Execute permission to the Network Service account on the performance counter DLL for SQL Server 2005 Analysis Services. The DLL is located in the following folder:
Additionally, you must grant Read permissions to the Network Service account on the “bin” directory and the “bin\en” directory for SQL Server 2005 Analysis Services. For example:
- C:\Program Files\Microsoft SQL Server\MSSQL.x\OLAP\bin
- C:\Program Files\Microsoft SQL Server\MSSQL.x\OLAP\bin\en
Note MSSQL.x represents the corresponding value for the instance ID in the system.
For more information about how to grant permissions to a specific folder in Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:
resource: Microsoft
June 16, 2011
Xp_cmdshell and permissions
This blog post was inspired from a newsgroup discussion. The question basically is:
What do you need to do in order to use xp_cmdshell?
Note that there are obvious security implications of doing this. (I’m not recommending usage of xp_cmdshell in general, this is atechnical blog post!) We first need to think about what happens here, from an architectural level:
Somebody who has logged in to SQL Server executes xp_cmdshell. For this, SQL Server need to spawn a process in Windows. A process in Windows need to execute in a Windows user account.
So, what Windows account is used? If the SQL Server login who is executing xp_cmdshell is sysadmin, then SQL Server will use the service account (it will not “pretend to be somebody else”). But if the login isn’t sysadmin, then we need to configure what Windows account to be used (using sp_xp_cmdshell_proxy_account). Note that this configuration is the same for all non-sysadmins!
But there’s a little bit more to it. Below is an outline of what need to be done. Step 2 and 3 are only needed if the one who is to execute xp_cmdshell isn’t sysadmin. Note that the steps don’t have to be performed in the order listed below.
- We need to allow usage of xp_cmdshell in general (on 2005). Use “Surface Area Configuration” or sp_configure for this.
- We need to have a user in the master database which has execute permission on xp_cmdshell. If you are uncertain about the difference between logins and users, you should read up about it in BOL.
- We need to say what Windows account should be used when a non-sysadmin user is executing xp_cmdshell.
So, here’s the TSQL script that does all above:
–1, allow xp_cmdshell
EXEC sp_configure ‘xp_cmdshell’, 1
RECONFIGURE
GO
–2, grant permission to xp_cmdshell
USE master
CREATE LOGIN JohnDoe WITH PASSWORD = ‘jlkw#.6(’
–Note, we are in the master database!!!
CREATE USER JohnDoe FROM LOGIN JohnDoe
–Run as login x
EXECUTE AS login = ‘JohnDoe’
–Below fails, no execute permission on xp_cmdshell
EXEC xp_cmdshell ‘DIR C:\*.*’
REVERT
GO
–Note, we are in the master database!!!
GRANT EXECUTE ON xp_cmdshell TO JohnDoe
–Try again
EXECUTE AS login = ‘JohnDoe’
–Execution of xp_cmdshell is allowed.
–But I haven’t configured the proxy account…
EXEC xp_cmdshell ‘DIR C:\*.*’
REVERT
GO
–3, specify the proxy account for non-syadmins
–Replace obvious parts!
EXEC sp_xp_cmdshell_proxy_account ‘Domain\WinAccount’,'pwd’
EXECUTE AS login = ‘JohnDoe’
–Execution of xp_cmdshell is allowed.
–And executes successfully!!!
EXEC xp_cmdshell ‘DIR C:\*.*’
REVERT
–Cleanup
EXEC sp_xp_cmdshell_proxy_account null
DROP USER JohnDoe
DROP LOGIN JohnDoe
EXEC sp_configure ‘xp_cmdshell’, 0
RECONFIGURE
—-
if you have problem with step 3 then continue here and after that return to step 3
Everything was ok til step 3! When i run step 3 it says something like this:
An error occurred during the execution of sp_xp_cmdshell_proxy_account. Possible reasons: the provided account was invalid or the ‘##xp_cmdshell_proxy_account##’ credential could not be created. Error code: ‘0′.
The account was ok but SQL stil reporting error… so I create crdental manualy with command:
create credential ##xp_cmdshell_proxy_account## with identity = ‘SERVERNAME\useracount’, secret = ‘42342eddds#’
(i m not on a domain, and servername mast be inculded because if you not you will same error that windows user is not valid!!!)
next in Microsoft SQL Server Menagment studio go to server Agent an in proxies define new proxi
in General
proxy name: some name
credetials: clisk on … button and select
##xp_cmdshell_proxy_account##
in Principals:
clisc add button and select User click, OK..
and now run:
EXEC sp_xp_cmdshell_proxy_account ‘Domain\WinAccount’,'pwd’
EXECUTE AS login = ‘JohnDoe’
–Execution of xp_cmdshell is allowed.
–And executes successfully!!!
EXEC xp_cmdshell ‘DIR C:\*.*’
REVERT
and should be OK….
UPDATE:
if you have a stored procedure that is using bcp xp_cmdchell and you want to call from your ASP.NET application just add to your stored procedure EXECUTE AS ‘Jondoe’ , the procedure should be executed with user that have privilage to start xp_cmdshell otherwise you if you call your procedure from youar apllication you will recive error something like : The EXECUTE permission was denied on the object ‘xp_cmdshell’, database ‘mssqlsystemresource’, schema ’sys’…. so to you u have:
ALTER PROCEDURE [dbo].[procedureNAME] (@parametar1 bigint,@parametar2 varchar(100)) with EXECUTE AS ‘JhonDoe’
AS
BEGIN
…..
end.
who is JhonDoe user read the tutorial above this update… or here
March 26, 2011
Windows Genuine Advantage (WGA)
Windows Genuine Advantage (WGA) is an anti-piracy system enacted by Microsoft that enforces Microsoft Windows online validation of the authenticity of several recent Microsoft operating systems when accessing several Microsoft Windows services, such as Windows Update, and downloading from the Microsoft Download Center.
March 14, 2010
Formating Nokia 9300i
Fromating:
1- Take of battery and placed it again
2- When you see NOKIA logo press Ctrl+Chr+Shift+F
3- Select Format
—–
Remove ini files
1. Remove and reconnect the battery
2. Press and hold Ctrl + Shift + I keys
January 1, 2010
Cheers to a New Year and another chance for us to get it right. O.W

I Wish in 2010
God gives You…
12 Month of Happiness,
52 Weeks of Fun,
365 Days Success,
8760 Hours Good Health,
52600 Minutes Good Luck,
3153600 Seconds of Joy…and that’s all!
December 10, 2009
The Google Wave Invitation Donation
I have 20 Google wave invitation to share so if somebody want to ” wave” with friends just leave comment with your mail i will send invitations to the first 20 people… what is google wave how to use and why to use you can read text bellow but i recommend to watch short version of the video..
Google Wave is an online tool for real-time communication and collaboration. A wave can be both a conversation
and a document where people can discuss and work together using richly formatted text, photos, videos, maps, and more
What is a wave?
A wave is equal parts conversation and document. People can communicate and work together with richly formatted text, photos, videos, maps, and more.
A wave is shared. Any participant can reply anywhere in the message, edit the content and add participants at any point in the process. Then playback lets anyone rewind the wave to see who said what and when.
A wave is live. With live transmission as you type, participants on a wave can have faster conversations, see edits and interact with extensions in real-time.
November 9, 2009
Pidgin - SSL Handshake Failed/Not Authorized
# Download & Install the latest version of Pidgin.
# Open Pidgin and go to Add / Edit Account window of Pidgin.
# From the drop-down box choose XMPP as the Protocol or gtalk.
# For the Screen name enter your Google Id (Gmail Id).
# For Server enter gmail.com
# You can leave the Resource with the default
# In the Password field enter your Google ID password.
# Enter Local alias as whatever you want to.
If you recive some error like : SSL Handshake Failed/Not Authorized then
you’re probably behind a firewall so do this:

September 25, 2009
P4i65G ASROCK ZTE MF626 3G modem usb problem
When connecting ZTE MF626 3g usb modem to this motherboard the computer losing power and is automatically shut down. if you manege some how to start the computer with attached modem and you succeed to start application at the moment when the connection is established you lose your mouse so you can’t control your mouse no mater what kind of mouse is PS2 or USB, also may stop working some other usb devices.
To fix this problem all you need is to change state to the jumper on a motherboard. It the closest jumper to the your LPT port on the motherboard it says : PS2_USB_PWR1, also this jumper is close to your PS2 port. This Jumper have 3 pins so you need to “SHORT” or place jumper cap on pin1 and pin2 by this you will disable +5VSB (standby) and with this you will fix your problem, and unplanned shutting down of your system when you connect your 3g modem, also after establish connection to the internet your mouse will functioning normal.
This replacement of jumper cap also can solve other usb problems that you may have like: when you use all 6 usb ports at same time with different devices. Sometime using all 6 port’s can make your computer incidentally to shut down.
Tested and work on P4i65G ASROCK with ZTE MF626 3G modem, Nuneworld.net is not responsible for any damage that may cause by following this manual, you are responsible for any actions you will take on your motherboard/computer so good luck.
July 24, 2009
Ricoh Caplio R1- error code 00-00-00-30-00-28
Ricoh Caplio R1- error code 00-00-00-30-00-28
Every thing is working normally (you can see pictures, delete, format card, change date time) but your focus is stuck and can’t move the lenses or your zoom in zoom out button is not functioning.
The focus is stuck and your camera can’t move the lenses and give blue screen with error code 00-00-00-30-00-28. Reason why this happen is usually bad batteries. If your camera is not power off properly (because your batteries are discharged) when you insert new batteries fully charged the camera will instantly try to zoom in or zoom out to adjust focus (depend on where your camera stopped to work) and sometimes when this happens focus is extended (or gathered in) beyond the margins of the planed path of the focus. Now focus of your camera it’s not in normal position and it’s stuck, can’t go back and normalize the focus and give error. All you should do is to give a little help to the focus to move to a normal position where it can operate. if your Ricoh Caplio focus is extended just push back very very gently to back to normal position and after that every thing will be working fine. If your focus is gathered in try to pull out very very gently. That’s all, but remmember NuneWorld is not responsible if you make some damage to your camera if you are not so sure what you are doing probably best solution is visit service
May 12, 2009
Age of Empires 2 The Age of Kings - The Conquerors
Unable to join game !
- Unable to join to age of empires 2 on multiplayer game!
- I can’t host i game other players can’t see the game i created.
if you are sure that you have unblocked ports on your firewall (for example windows firewall) and you are behind router then try to find UPNP Settings on your ruter and mark as disabled. On some ruters are located under Misc. section.
After you disable UPNP Settings you shoul be able to play…
Have a nice play

If you have vista and your router settings are right than try this:
in vista, goto your firewall exceptions list
(center network and shared resources> Windows Firewall >change config > exceptions Tab)
once there eliminate from that list :
-Age of Empires II Expansion
-Auxiliar file from Microsoft DirectPlay
make shure
you have checked Notify when firewall blocks a new program
Acept and close everything
then start the game, host a multiplayer using TCP(LAN)
THEN Alt+Tab (dont setup anything yet) and then wait until windows (wakes up from underground) and shows you your desktop, then where firewall you will be noticed about 2 programs
Unblock Both
return to the game
then join aoe from your others XP machines normally as should expected
ok thats all, everytime you want to host the game you’ll have to do every step
aslo you can try this link: http://support.microsoft.com/kb/895864/en-us
March 21, 2009
New Nigerian SMS hoax

CONGRATULATION! Your MOBILE# has won £100 000 GBP in the ongoing NOKIA MOBILE PROMO. Contact our UK office for claims.Tel: +447024055947. Email:uk.nokia@live.co.uk
You probably receive this kind of message, you are surprised and now you start to calling your friends with very happy voice to tell them about your SMS and for advice what to do next, so they like good friends will say: check it you are not going to pay for checking may be you are really winner, but before do any thing try to calm and see sender number,no number ind the message because country code in the message is +44 and this country code from UK, but see sender number, probably you have +2348087102196 or some other number with +234 xxxxxxxxxxx and +234 is country calling code for Nigeria you can check here, and every thing is clear. Also if you check email address you will see that is from a free web service live.co.uk, and serious company like Nokia or any other company will never use free web email service.
Question: How they have your number? I don’t know may be Lucky guess or you are registered somewhere in net to send free sms, or may be they have from some profile posted on line. My number is new and i have never used on any communication on line jet but i have received this massage how they have probably lacy guess, also how they know that i’m using Nokia or that is Lucky guess to??? Hmm to many Lucky gasse’s
I want to receive comment from someone who use different type of phone but receive grand prize from NOKIA ![]()
What Nokia says about this: I would suggest that you discontinue all communications with that party and if possible report the parties involved.
Nokia will in no way communicate with you via SMS and we definitely will not ask you to transfer money to a “committee”. Any transactions can be verified and if possible will be done via your service providers.
If you wish to have further clarifications, please contact your local Nokia Care Point.
As a personal note, I would implore all members not to respond to any messages of this nature by sending personal information, copies of identity documents or money to to any address, e-mail address or phone number mentioned in any message promising prizes.
or you can see this links for more information: Nigerian SMS Hoax or Nigerian SMS Hoax
Update: Same massage with same text but from different number, yes again from NIGERIA +2348087101968, i will try to post all numbers, if i receive more messages in future.
——————-
Ако деновиве случајно добиете порака дека сте добитник на 100 000 не долари не евра ами фунти немој премногу да се радувате затоа што тоа е уште една измама од Нигерија. Ако го проверите бројот од кој ви пристигнала пораката ќе заклучите, а и не мора да заклучите можете да проверите овде дека +234 е повикувачки број за Нигериjа. Најверојатно работат по истата шема како се емаил пораките ќе се обидат на било каков начин да ве убедат да префрлите извесна сума на нивна сметка или во најлош случај да отпатувате до некоја земја, таму да ве киднапираат , а потоа од вашето семејство да бараат откуп, па затоа се препорачува а и Нокиа препорачува да се прекине секаков контакт со лицата и да не се испраќаат никакви информации или пари, и доколку има можност да се пријават.
Прашање: Како го дознале вашиот број? Е па ова е многу добро прашање, на кое и јас се трудам да си одговорам затоа што го добив на телефонски број кој апсолутно не го користам и сум 100% сигурен дека го немам ставено на никаков онлине сервис или профил, па затоа си викам дека работат по некој случаен избор. Тие телефонски броеви што ги имам користено на сајтови за бесплатни смс или ставени на некој од профилите на онлине социјалните мрежи не сум добил ништо слично, друго интересно е како знаат дека сум корисник на Нокиа или чисто случајно?? Премногу случајности
… Би сакал да слушнам дека некој со различен модел добил иста порака од нокиа ![]()
Доколку се уште не сте убедени дека е измама и дека Нокиа не се решила да ве почасти затоа што сте верен корисник на нивни уреди, можете да прочитате овде и овде за слични примери.
