Search In This Blog

Saturday, November 07, 2009

How to configure SQL Server 2005 to allow remote connections


When you try to connect to an instance of Microsoft SQL Server 2005 from a remote computer, you may receive an error message. This problem may occur when you use any program to connect to SQL Server. For example, you receive the following error message when you use the SQLCMD utility to connect to SQL Server:
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
This problem may occur when SQL Server 2005 is not configured to accept remote connections. By default, SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections. To configure SQL Server 2005 to allow remote connections, complete all the following steps:
  • Enable remote connections on the instance of SQL Server that you want to connect to from a remote computer.
  • Turn on the SQL Server Browser service.
  • Configure the firewall to allow network traffic that is related to SQL Server and to the SQL Server Browser service.
This article describes how to complete each of these steps. 

To enable remote connections on the instance of SQL Server 2005 and to turn on the SQL Server Browser service, use the SQL Server 2005 Surface Area Configuration tool. The Surface Area Configuration tool is installed when you install SQL Server 2005.

Enable remote connections for SQL Server 2005 Express or SQL Server 2005 Developer Edition

You must enable remote connections for each instance of SQL Server 2005 that you want to connect to from a remote computer. To do this, follow these steps:
  1. Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Surface Area Configuration.
  2. On the SQL Server 2005 Surface Area Configuration page, click Surface Area Configuration for Services and Connections.
  3. On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Remote Connections, click Local and remote connections, click the appropriate protocol to enable for your environment, and then click Apply.

    Note Click OK when you receive the following message:
    Changes to Connection Settings will not take effect until you restart the Database Engine service.
  4. On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Service, click Stop, wait until the MSSQLSERVER service stops, and then click Start to restart the MSSQLSERVER service.

Enable the SQL Server Browser service

If you are running SQL Server 2005 by using an instance name and you are not using a specific TCP/IP port number in your connection string, you must enable the SQL Server Browser service to allow for remote connections. For example, SQL Server 2005 Express is installed with a default instance name of Computer Name\SQLEXPRESS. You are only required to enable the SQL Server Browser service one time, regardless of how many instances of SQL Server 2005 you are running. To enable the SQL Server Browser service, follow these steps.

Important These steps may increase your security risk. These steps may also make your computer or your network more vulnerable to attack by malicious users or by malicious software such as viruses. We recommend the process that this article describes to enable programs to operate as they are designed to, or to implement specific program capabilities. Before you make these changes, we recommend that you evaluate the risks that are associated with implementing this process in your particular environment. If you choose to implement this process, take any appropriate additional steps to help protect your system. We recommend that you use this process only if you really require this process.

  1. Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Surface Area Configuration.
  2. On the SQL Server 2005 Surface Area Configuration page, click Surface Area Configuration for Services and Connections.
  3. On the Surface Area Configuration for Services and Connections page, click SQL Server Browser, click Automatic for Startup type, and then click Apply.

    Note When you click the Automatic option, the SQL Server Browser service starts automatically every time that you start Microsoft Windows.
  4. Click Start, and then click OK.
Note When you run the SQL Server Browser service on a computer, the computer displays the instance names and the connection information for each instance of SQL Server that is running on the computer. This risk can be reduced by not enabling the SQL Server Browser service and by connecting to the instance of SQL Server directly through an assigned TCP port. Connecting directly to an instance of SQL Server through a TCP port is beyond the scope of this article. For more information about the SQL Server Browser server and connecting to an instance of SQL Server, see the following topics in SQL Server Books Online:
  • SQL Server Browser Service
  • Connecting to the SQL Server Database Engine
  • Client Network Configuration

Create exceptions in Windows Firewall

These steps apply to the version of Windows Firewall that is included in Windows XP Service Pack 2 (SP2) and in Windows Server 2003. If you are using a different firewall system, see your firewall documentation for more information.

If you are running a firewall on the computer that is running SQL Server 2005, external connections to SQL Server 2005 will be blocked unless SQL Server 2005 and the SQL Server Browser service can communicate through the firewall. You must create an exception for each instance of SQL Server 2005 that you want to accept remote connections and an exception for the SQL Server Browser service.

SQL Server 2005 uses an instance ID as part of the path when you install its program files. To create an exception for each instance of SQL Server, you must identify the correct instance ID. To obtain an instance ID, follow these steps:

  1. Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Configuration Manager.
  2. In SQL Server Configuration Manager, click the SQL Server Browser service in the right pane, right-click the instance name in the main window, and then click Properties.
  3. On the SQL Server Browser Properties page, click the Advanced tab, locate the instance ID in the property list, and then click OK.
To open Windows Firewall, click Start, click Run, type firewall.cpl, and then click OK.

Create an exception for SQL Server 2005 in Windows Firewall

To create an exception for SQL Server 2005 in Windows Firewall, follow these steps:
  1. In Windows Firewall, click the Exceptions tab, and then click Add Program.
  2. In the Add a Program window, click Browse.
  3. Click the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe executable program, click Open, and then click OK.

    Note The path may be different depending on where SQL Server 2005 is installed. MSSQL.1 is a placeholder for the instance ID that you obtained in step 3 of the previous procedure.
  4. Repeat steps 1 through 3 for each instance of SQL Server 2005 that needs an exception.

Create an exception for the SQL Server Browser service in Windows Firewall

To create an exception for the SQL Server Browser service in Windows Firewall, follow these steps:
  1. In Windows Firewall, click the Exceptions tab, and then click Add Program.
  2. In the Add a Program window, click Browse.
  3. Click the C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe executable program, click Open, and then click OK.

    Note The path may be different depending on where SQL Server 2005 is installed.

Friday, November 06, 2009

How to be Successful

Is it not what we all are dreaming of? Being a Success! We want to be successful in school, in our jobs, in our relationships. In fact, we dream about being successful in everything. But what a challenge this is!

Most of the people believe that they just can't achieve great success because they don't have what it takes, or because they're not educated enough! They complain that luck is never on their side or that they weren't born to be successful, or even that they are too poor to ever even think about being something else!

You know what? You don't need luck or any diploma to accomplish the success you deserve.

You just need faith. Faith that you will indeed be successful, faith that you have all that it takes to make it to the top! You have to BELIEVE that YOU ARE the most successful person you ever met.

If you don't believe in yourself, who on earth do you think will?

The most successful persons in the world (businessmen (women), signers, physicians, etc.) all have that point in common: They all believed firmly that they were going to be exactly what they expected to be. They never doubted themselves, they had faith in their potentials and they were absolutely convinced that they would make it to the top! They never accepted a No for an answer. Nothing as ever stopped them, slowed down maybe, but never stopped!

Well that is very neat on paper, but I can hear you tell me: "It's easier said than done! How can I have faith in myself, when all that I have done so far hasn't brought me the success I am dreaming of? Everything that I'm trying ends up in a mess! Oh, I have attained some results of course, but I want more than that!" And that could go on and on...

There is a lot of things that ANYBODY can do to become a success in any field they choose: relationships, business, career, anything you can think of!

First, you have to understand that you will need to make an effort, not necessarily a huge one, but let's put it that way: you will definitely need consistence in your doings.

With anything that you're trying to attain if you don't give consistent efforts, you'll just simply NEVER get what you expect. The main point is to believe that YOU CAN be successful, and YOU WILL indeed.

One good method I am using for years now is Affirmation. And that doesn‚t really take a great deal of an effort to do. Simply keep repeating to your self some sentences like these ones:

- I am a successful person.
- I can attain any success level I desire.
- I will be rich because I deserve it!
- Etc.

There are some rules that have to be followed when using the Affirmation Method.

  • Never use any negative form in you sentences (i.e.: I will not fail in anything anymore. It's better to use: I will succeed in everything I'm undertaking from now on.) And trust me, affirmations really works! So if you affirm anything negative, this is what you'll get! So be aware of it, and very careful in your affirmations.

  • You also have to be repetitive. Repeat at least 10 to 20 times each affirmation every day, for several days. What I like to do when I have a goal to attain is to pick up 2 or 3 sentences that make sense to me. Then I write them down 10 times each, and I repeat the process for at least 7 days in a row.

  • Remember, consistency!!! You can even go further and do it for 2 to 3 weeks in a row. The longer you do it, the better results you'll get.

    You will be surprised on how effective that simple and easy method is. Few years ago I started with affirmations to help me care about my self. Yeah! I was like that! A person that didn't like herself enough to believe that she could do anything good. Well that simple method had simply change my life for the better! Now I am happy with myself, my life with my family and friends is fill with joy and happiness, I run a successful business in Graphic Arts and I do have a great success with my spare time e-businesses.

    So, let me tell you that this method can really change your life too if you only give it a try! I went from living in a stressful mood all the time, never expecting anything good could ever happen to me, to being loaded with confidence in my possibilities and chances of being successful in all the aspects of my life! And still sometimes when something doesn't go the way I want it, I grab my pen and start writing positive affirmations. And back on the good track I am!

    So pick up your pen, and start climbing the road to success!

    With that simple method you too can become successful in any of your goals. I simply wish the information I just gave you, will help you out! Don't hesitate to contact me, I'll be more than glad to hear from you and discuss that method with you.
  • المصفاة التي تعترض المعلومات



    عندما يستقبل المخ أي معلومات من الوسط المحيط حوله فإن هذه المعلومات تتعرض لثلاثة مصفيات.

    وهذه المصفيات ثلاثة أنواع

    1. مصفاة الحذف
    2. مصفاة التعميم
    3. مصفاة التحريف
    1- مصفاة الحذف:
     

    هذه المصفاة تأخذ المعلومات القادمة القادمة إلى المخ وتحذف بعضها .. فالبعض يمر والبعض الآخر يسقط في هذه المصفاة.

    فأنت تجلس للمذاكرة على المكتب .. ويوجد مؤثرات كثيرة جدا حولك لا تنتبه إليها.. فهناك من يجلس يتكلم في الغرفة المجاورة .. وهناك من يتكلم في الشارع .. وهناك سيارات تسير متتابعة في الشارع .. وهناك المروحة التي تدور بجوارك.. فدور هذه المصفاة هو تصفية هذه المعلومات حتى يبقى العقل مهتم بالمهمة التي يعملها.

    2- مصفاة التعميم:

    هذه المصفاة عكس الأولى تماما .. فهي تأخذ مجموعة من المعلومات وتكبرها وتبالغ فيها أكثر من اللازم.


    فكر في شخص تكرهه..

    اكتب أهم صفاتهزز وعندما تنتهي .. انظر ماذا تجد..

    أرأيت؟ هذا هو التعميم..
    كل إنسان لديه ملايين الصفات الجيدة والسيئة ..
    ولكن لكرهك لهذا الشخص.. لم ترى إلا الصفات السلبية ..
    رغم وجود صفات إيجابية كثيرة ..

    مصفاة التعميم جعلت هذه الصفة السلبية هي التي تصف الشخص .. على الرغم من وجود الصفات الجيدة، هذه المصفاة منعتها من الوصول لمخك.


    المرأة تقول: " كل الرجال قساة .."
    هذا مثال آخر للتعميم..
    صاحبة هذه الجملة بالتأكيد مرت بتجربة مع أحد الرجال القساة , جعلتها تعمم الأمر على كل الرجال.. مع إن هذا غير صحيح....



    - مصفاة التحريف:

    هذه المصفاةمحتلفة عن السابقين ..
    لأنها ببساطة تقوم بتحريف المعلومات القادمة للمخ ..



    فإذا حدث وأحب شخص امرأة ما ، وهي لا تلقي له بالاً في الواقع .. وفي يوم من الأيام مرت من أمام جمع من الأشخاص وقالت: "صباح الخير!".. شيء لا يلفت النظر مطلقاً!
    فإذا بهذا الشخص يقول إن هذا الموقف دليل على أنها تحبه، وأنها تعمدت المرور أما هذا الجمع وتقول ذلك حتى تراه!! ..
    الغريب إنه على يقين من صحة استنتاجه..


    السبب في هذا: مصفاة التحريف..

    جعلت هذا الموقف المعتاد ينحرف ويصير شيء آخر تماماً ..

    نسأل الآن .. أي نوع من هذه المصافي عندنا؟؟
    إجابة صحيحة .. كلهم بالطبع .. كل مصفاة في وقتها بطريقة لا إرادية.. ولكن تختلف من شخص لآخر والشخص المتميز هو الذي يتحكم فيها ويجعلها تحت سيطرته.

    Thursday, November 05, 2009

    كيف تتخلص من التعب؟

    هناك حقيقة علمية تقول "العمل الذهني وحده لا يفضي للتعب"، ويقول الأطباء النفسيون أن التعب الذي نحسه ناشئ عن طبيعة اتجاهاتنا الذهنية والعاطفية وفي ذلك يقول الدكتور (هارفيلد) إن الجانب الأكبر من التعب الذي نحسه ناشئ عن أصل ذهني, بل الحقيقة أن التعب الناشئ من أصل جسماني لهو غاية في الندرة.

    ويقول النفساني الأمريكي (بريل) : أن مائة في المائة من التعب الذي يحسه العمال الذين يتطلب عملهم الجلوس المتواصل راجع إلى عوامل نفسية أي عاطفية.

    أن المجهود الشاق في ذاته قلما يسبب التعب ونقصد ذلك النوع من التعب الذي يزول بعد نوم عميق أو فتره معتدلة من الراحة وإنما القلق والتوتر والثورات العاطفية هي العوامل الثلاثة الأساسية في انبعاث التعب إن علاج هذا التوتر العصبي هو الاسترخاء, تعود الاسترخاء حين تزاول عملك كائنا ً ما كان.

    كيف تسترخ؟

    ابدأ على الدوام بعضلاتك. اسند ظهرك إلى ظهر مقعدك وأغمض عينيك وقل لعضلات عينيك في صمت استرخ ....استرخ ...كفي عن التوتر ...استرخ . كرر في خاطرك هذه الأوامر لمدة دقيقة واحدة. ويسعك بعد ذلك أن تكرر الأمر نفسه مع عضلات فكيك ووجهك وجسدك إلا أن العينين هما أهم أعضاء الجسم.

    خمس نصائح تمكنك من الاسترخاء


    1. استرخ أينما كنت ودع عضلاتك تتراخى.
    2. اشتغل ما شئت من الوقت على أن تراعي الاسترخاء في جلستك.
    3. راجع نفسك أربع أو خمس مرات في اليوم وقل لنفسك (أتراني أجعل عملي يبدو أصعب مما هو حقيقة ؟)
      أتراني استخدم في عملي عضلات من جسدي لا شأن لها بهذا العمل إطلاقاً
      فهذه المراجعة تعينك على تكوين عادة الاسترخاء .
    4. اسأل نفسك في نهاية اليوم (هل أنا متعب) فإذا كنت متعب فاعلم أن منشأ
    5. التعب ليس كمية المجهود الذي بذلته وإنما الطريقة التي بذلت بها المجهود.

    Wednesday, November 04, 2009

    التفكير البسيط



    نحن كبشر لا نتوقف أبدا عن التفكير، وقد أثبتت الأبحاث الإنسان يفكر في المتوسط حوالي أربع أفكار منفصلة في الدقيقة الواحدة أي حوالي 4000 فكرة يوميا، ونقضى أكثر من 75% من وقتنا في التفكير.

    ولكن على الرغم من هذه القدرة الهائلة على التفكير إلا وأن المشكلة تكمن في أننا نادراً ما نهتم بالتفكير فغالباً ما تتوارد الأفكار في أذهاننا باستمرار كما أننا نأخذ التفكير على أنه أمر مسلم به.

    إن المرة الوحيدة التي نقف فيها للتفكير هو حينما نكون في موقف صعب أو في مشكلة عميقة وفى تلك اللحظة يختلف الأمر ففجأة نبدأ بالشك في قدراتنا على القيام بأدوارنا في الحياة وعلى حل مشاكلنا أي نشك في قدراتنا على التفكير بطريقة سليمة.

    ولعل من المشاكل التي تواجهنا في الطريق إلى التفكير السليم هو ذلك الاعتقاد بأن المقدرة على التفكير تنمو في فترة المراهقة كجزء من عملية النمو الداخلي وأنه لا يوجد هناك ما يمكن تعلمه عن التفكير أو طريقة يمكننا من خلالها تنمية هذه المقدرة. وهذا فهم خاطئ بالطبع فببعض التقنيات والأساليب البسيطة تستطيع تطوير قدرتك على التفكير بصورة رائعة وستشعر بذلك وتجد أثره في حياتك كلها.

    توقف واستئناف:

    أحيانا تكون في اجتماع مهم أو أمام مشكلة تحتاج إلى سرعة في الحل وفجأة تجد عقلك توقف وبدلا من توارد الأفكار عليك تجد نفسك في فراغ ذهني عجيب. وأحيانا أخرى يكون هناك موضوع هام وحيوي تريد التفكير فيه ولكن لا تعرف من أين تبدأ. 


    ولذا فإليك بعض الخطوات العملية تساعدك في كيفية الدخول في التفكير وجعل الأفكار تتوارد عليك:


    1. اسأل نفسك ما الذي تشعر به تجاه ذلك الموضوع:
      فعندما تكون في فراغ ذهني أنت في هذه الحالة يتعذر عليك الوصول إلى أفكارك ولذا فعليك بالتواصل مع مشاعرك. وبعد أن تحدد مشاعرك تجاه الموضوع اسأل نفسك لماذا تشعر بهذه المشاعر؟ ها أنت تفكر بالفعل في الموضوع؟
    2. اسأل نفسك عن رأيك في هذا الموضوع؟!
      ما هو تقييمك الكلى للموضوع، قد أثر هذا الأسلوب المدهش عن بدء الظهور الفكري لكثير من الأفكار الناجحة.
    3. اسأل نفسك ما هي الفكرة الأساسية في المشكلة التي بدونها لا تحل المشكلة؟
      ما هو مفتاح السر ما هي الفكرة التي يستند عليها كل شيء هنا خذ وقتك لكي تفكر بجدية في إجابة هذا السؤال .
    4. اسأل نفسك هل يشابه هذا الموضوع الذي تفكر فيه أي شيء تعلمته أو مررت به من قبل؟
      خذ وقتك لكي تبحث بجدية وتجد الإجابة.
    5. اسأل نفسك هل هناك شيء ما زلت تجد سؤالا ملحا عنه؟
      خذ كل الوقت لكي تفكر وتجد إجابة لذلك السؤال.
    6. اسأل نفسك ما هو أصل الموضوع؟
      فكر بحرص للحصول على الإجابة.


    الفرق بين التفكير البسيط والتفكير المعقد:

    كان (هاوسر) أذكى طالب في السنة النهائية في جامعه بوسطن العريقة فلم يكن عقله يتوقف أبدا عن التفكير وكان يذهل زملاءه في السقف الطلابي وأفكاره ووجهات نظره حول العقل الإنساني وشرح 1001 فكره في علم النفس لكي يسجلها في امتحان آخر العام. ولكن عندما ظهرت نتيجة آخر العام لم يجد (هاوسر) نفسه بين المتخرجين نعم لقد درس هاوسر كثير في علم النفس ولكن كل أفكاره كانت مبهمة وبلا أدله وكانت معظم أفكاره غير منطقية، ولذا لم تكن مشكلته في كيفية بدء التفكير أو فيما يفكر ولكن كانت في أسلوب ونوعية تفكيره.

    ومن جانب آخر وعلى العكس كان السيد (ماثيز) الذي تولى إدارة محطة تلفزيونية كان يسيرها والده فنجح فيها نجاحا باهرا وفى إحدى المرات سأل أحد المذيعين السيد (ماثيز) عن سر نجاحه وكيف استطاع أن يتخذ الخطوة المناسبة في الوقت المناسب؟

    رد ماثيز قائلا " إن قوة التفكير هي التي جعلته مليونيرا" مهارة تتوافر لكل شخص منا وكل ما فعله ماثيز أنه نظر في كل موقف وتأمله جيدا وفكر فيه تفكيرا بسيطا فوصل إلى الإجابة الصحيحة.

    الفرق بين (هاوسر) و (ماثيز) هو الفرق بين التفكير المعقد والتفكير البسيط الفكري، طبق على نفسك هذا ولن تجد الأمر صعبا على الإطلاق إن شاء الله.

    إن معظم الذي حق حققوا نجاحات عظيمة مثل هنرى فورد ووالت ديزنى وغيرهم ليسوا بأذكى من غيرهم وقد أثبتت دراسات كثيرة عن الأشخاص الناجحين في كافة مجالات الحياة أنه لا توجد علاقة بين درجة الذكاء والنجاح.

    إن الفارق بين الناجحين والفاشلين كما في مثال السيد ماثيز هو القدرة على التفكير البسيط الفكري.

    حتى المشاكل المعقدة والتي في نظرك تحتاج إلى أعقد أنواع التفكير ففي الحقيقة الحل لا يعدو كونه تفكيرا بسيطا ولكن في شكل وإطار منظم.

    Followers