tag:blogger.com,1999:blog-276978519934519842024-02-09T00:00:15.628+05:30એસ.કયું.એલ સર્વર સાઈટેશનએસ.કયું.એલ સર્વર પર લખાયેલ સર્વપ્રથમ ગુજરાતી બ્લોગ. Ist ever SQL Server blog written in GujaratiHemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-27697851993451984.post-69292731499990979262009-11-26T18:45:00.000+05:302009-11-26T18:45:33.608+05:30એસ કયું એલ સર્વર માં કરાતી સામાન્ય ભૂલ - ભાગ- ૧<div style="text-align: justify;">છેલ્લા ૧૦ વર્ષ થી હું એસ કયું એલ સર્વર ના વિવિધ વર્ઝન પર કામ કરું છું અને મોટા ભાગે પેરફોરમન્સ ટ્યુનીંગ નું કામ સૌથી વધુ વખત કરવાનું આવ્યું છે. જયારે પરફોરમન્સ ટ્યુનીંગ કરતી વખતે સૌથી પેહલા ક્વિક ફિક્ષ કરવું પડે જેથી કામ શરુ થઇ જાય અને ત્યારબાદ આપણે અને પર્મેનંટ સોલ્યુશન કરી શકીએ. મોટા ભાગે એવું જોવા મળે છે કે ડેટાબેઝ ની સાઈઝ એમની અપેક્ષા કરતા વધી ગઈ હોય, ક્યારેક ૩૦૦ ગણી. ક્યારેક તકલીફ ખોટા ડેટા ટાઇપ ને કારણે હોય છે તો ક્યારેક ઈન્ડેક્ષ ને કારણે. તેથીજ આપણે જયારે પણ એપ્લિકેશન ડીઝાઇન કરીએ ત્યારે ખુબજ કાળજી રાખવી જેથી ભવિષ્ય માં આપણને તકલીફ ના પડે.<br />
</div><br />
<div style="text-align: justify;">અહી, હું એવા કોમન પોઈન્ટ્સ ની વાત કરું છું કે જે એટલા સામાન્ય છે કે આપણે એના તરફ ધ્યાન નથી આપતા અને આગળ જઈ ને આપણે હેરાન થવું પડે છે.<br />
</div><div style="text-align: justify;"><br />
</div>તો, આપણે સામાન્ય એવી ગણાતી કઈ ભૂલ કરીએ છીએ? <br />
<br />
<div style="text-align: justify;">મારા અનુભવ ને આધારે મેં ૧૦ પોઈન્ટ્સ તારવ્યા છે, જે માટે હું આર્ટીકલ ની સીરીઝ લખવાનો છું અને આ એનો પહેલો ભાગ છે. <br />
</div><br />
આશા છે કે આ આર્ટીકલ તમારા ૨ પ્રશ્ન નો ઉત્તર આપી શકશે:<br />
૧. કયા ડેટાટાઈપ યુઝ કરવા ?<br />
૨. વેરકેર અને એનવેરકેર માં શું તફાવત છે? <br />
<br />
<div style="text-align: justify;">સૌથી પહેલી વાત જે ધ્યાન પર આવે છે તે એ છે "ડેટાટાઈપ ની લેન્ગ્થ". જયારે આપણે ટેબલ ડીઝાઇન કરીએ છીએ ત્યારે ડેટાટાઈપ ની લેન્ગ્થ સમજી વિચારી ને પસંદ કરવી જોઈએ. જયારે આપણને ખાતરી નાં હોય કે ડેટા ની લેન્ગ્થ શું હશે ત્યારે હંમેશા "વેરીએબલ લેન્ગ્થ" ના ડેટાટાઈપ યુઝ કરવા જોઈએ, જેમકે "એડ્રેસ" માટે <strong><em>એનવેરકેર</em></strong> યુઝ કરી શકીએ અને, જયારે આપણને ખાતરી હોય કે ડેટા ની લેન્ગ્થ શું હશે ત્યારે "ફિક્ષ લેન્ગ્થ" ના ડેટાટાઈપ યુઝ કરવા જોઇયે,જેમકે "જેન્ડર" માટે <strong><em>વેરકેર</em></strong>.<br />
</div><br />
<div><br />
</div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">મેં એવા ઘણા કેસ જોયા છે કે જ્યાં "યુનિકોડ" ડેટાટાઈપ યુઝ કરવામાં આવ્યો હોય પરંતુ ખરેખર એની જરૂર નથી હોતી. આના કારણે <span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">ડેટાબેઝ ની સાઈઝ અણધારી રીતે અને અપેક્ષા બહાર ની વધી જાય છે; કહેવાની જરૂર નથી કે આ ખોટા ડેટાટાઈપ યુઝ કરવાથી થઇ હોય શકે. એસ કયું એલ સર્વર મુરભૂત રીતે બે પ્રકાર ના ડેટાટાઈપ સપોર્ટ કરે છે એક </span></span>"<b>યુનિકોડ</b>" અને "<b>નોન-યુનિકોડ</b>". યુનિકોડ એટલે <b>યુટીએફ -૧૬ </b>(૧૬ બિટ પર કેરેક્ટર) જયારે નોન-યુનિકોડ એટલે <b>યુટીએફ - ૮</b> (૮ બિટ પર કેરેક્ટર); હવે સ્વભાવીક છે કે જયારે તમે "યુનિકોડ" (એનવેરકેર કે એનકેર) યુઝ કરો છો ત્યારે તે ડબલ સ્પેસ રોકે છે. યુનિકોડ ત્યારેજ યુઝ કરવા જોઈએ જયારે તમારી અપ્લીકેશન અથવા વેબસાઈત માં તમે "મલ્ટી લીન્ગ્વ્લ" સપોર્ટ આપવા માંગતા હોવ.</span></span></span></span><br />
</div><div style="text-align: justify;"><br />
</div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;"> તો હવે આપણે એક ઉદાહરણ જોઈએ; એક ટેબલ બનાવીશું જેમાં ૨ કોલમ હશે ૧ વેરકેર અને ૧ એનવેરકેર, પછી તેમાં ૨~૩ રેકોર્ડ ઇન્સર્ટ કરો અને len() ફન્કશન નો ઉપયોગ કરી કેરેક્ટર કાઉન્ટ કરો, અને datalength() ફન્કશન નો ઉપયોગ કરી કેટલી સ્પેસ રોકાઇ છે તે જાણો. <a href="http://www.surat-user-group.org/sqlservercitation/scripts/choosingrightdatatype.sql">તમે સ્ક્રીપ્ટ અહીંથી ડાઉનલોડ કરી શકો છો.</a></span></span></span></span><br />
</div><div style="text-align: justify;"><br />
</div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">બીજી એક વાત, આપણે જયારે ડેટા ઇન્સર્ટ કરાવીએ ત્યારે તેને ટ્રીમ કરવા જોઈએ જેથી "વ્હાઈટ સ્પેસ" જગ્યા રોકી ના લે, આ આપણે એપ્લીકેશન લેયર અથવા તો <span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">ડેટાબેઝ લેયર દ્વારા કરી શકીએ.</span></span></span></span></span></span><br />
</div><div style="text-align: justify;"><br />
</div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">અહિયાં, આ દ્વારા હું એવી સલાહ આપી રહ્યો છું કે યુનિકોડ ડેટાટાઈપ ત્યારેજ યુઝ કરવા જોઈએ જયારે તમારી અપ્લીકેશન અથવા વેબસાઈત માં તમે "મલ્ટી લીન્ગ્વ્લ" સપોર્ટ આપવા માંગતા હોવ; અને ત્યારે પણ યુનિકોડ ડેટાટાઈપ ને કાળજી પૂર્વક તે કોલમ પુરતી સીમિત રાખો. એટલા માટેજ આ સૌથી અગત્ય નો અને કાળજી માંગી લેતો વિષય છે.</span></span></span></span></span></span><br />
</div><div style="text-align: justify;"><br />
</div><div><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;">જેમ મેં શરૂઆત માં કહ્યું તેમ, આતો સીરીઝ નો ૧લો આર્ટીકલ છે.....માટે અહી મુલાકાત લેતા રહો. </span></span></span></span></span></span><br />
</div><div style="text-align: justify;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;"></span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;"></span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;"></span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;"><div><span style="font-size: medium;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: justify;"><span style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 20px;">અંગ્રેજી વર્ઝન -> <a href="http://www.sql-server-citation.com/2009/11/common-mistakes-in-sql-server-part-1.html" target="_blank">http://www.sql-server-citation.com/2009/11/common-mistakes-in-sql-server-part-1.html</a></span></span></span></span></span></span></span><br />
</div></span></span><br />
</div><div style="text-align: justify;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;"><br />
</span></span><br />
</div>Hemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.com0tag:blogger.com,1999:blog-27697851993451984.post-83827380657618035752009-11-19T14:49:00.003+05:302009-11-20T10:58:58.040+05:30એસક્યુંએલ ક્લસ્ટર સર્વર માટે બેસ્ટ પ્રેક્ટીસએસક્યુંએલ ક્લસ્ટર સર્વર માટે બેસ્ટ પ્રેક્ટીસ શું છે?<br />
<br />
<br />
એસક્યુંએલ ક્લસ્ટર સર્વર પર સર્વિસ પેક ઇન્સ્ટોલ કરતી વખતે ક્યાં સ્ટેપ ફોલો કરવા જોઈયે ?<br />
<br />
એસક્યુંએલ ક્લસ્ટર સર્વર નું કોન્ફિગરેશન નું રીવ્યુ કરવું હોય તો કઈ રીતે થાય?<br />
<br />
એસક્યુંએલ ક્લસ્ટર સર્વર માટે ચેકલીસ્ટ ક્યાંથી મળશે ?<br />
<br />
આ બધા પ્રશ્ન મોટે ભાગે દરેક ફોરુમ્સ માં જોવા મળે છે, અહિયાં તમારા રેફરન્સ માટે અમુક લીંક આપું છું જે તમારા ઉપરના પ્રશ્ન ના ઉત્તર આપશે :<br />
<br />
<strong><a href="http://technet.microsoft.com/en-us/library/cc785714(WS.10).aspx" target="_blank">http://technet.microsoft.com/en-us/library/cc785714(WS.10).aspx</a></strong><br />
<br />
<strong><a href="http://blogs.msdn.com/jorgepc/archive/2009/01/21/how-to-quickly-check-your-sql-server-cluster-configuration-on-windows-server-2003.aspx" target="_blank">http://blogs.msdn.com/jorgepc/archive/2009/01/21/how-to-quickly-check-your-sql-server-cluster-configuration-on-windows-server-2003.aspx</a></strong><br />
<br />
<strong><a href="http://www.sql-server-performance.com/articles/clustering/clustering_best_practices_p1.aspx" target="_blank">http://www.sql-server-performance.com/articles/clustering/clustering_best_practices_p1.aspx</a></strong><br />
<br />
<br />
અને આ બે લીંક જ્યાંથી તમે એસક્યુંએલ ક્લસ્ટર સર્વર વીશે દરેક પ્રકાર ની માહિતી મેળવી આપશે,<br />
<br />
<strong><a href="http://www.sql-server-performance.com/articles/clustering/index.aspx" target="_blank">http://www.sql-server-performance.com/articles/clustering/index.aspx</a> </strong><br />
<strong><br />
</strong><br />
<strong><a href="http://technet.microsoft.com/en-us/library/cc917693.aspx" target="_blank">http://technet.microsoft.com/en-us/library/cc917693.aspx</a></strong> <br />
<br />
અંગ્રજી વર્સન અહી ઉપલબ્ધ છે <strong><a href="http://www.sql-server-citation.com/2009/11/sql-server-cluster-best-practices.html" target="_blank">http://www.sql-server-citation.com/2009/11/sql-server-cluster-best-practices.html</a></strong>Hemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.com0tag:blogger.com,1999:blog-27697851993451984.post-49333171954497011122009-08-11T12:18:00.007+05:302009-08-11T17:44:05.201+05:30ટ્રનઝેક્શન લોગ ફૂલ શા માટે થાય છે અને તેના ઉપાય શા છે?<div align="justify"><strong>ટ્રનઝેક્શન લોગ ફૂલ શા માટે થાય છે અને તેના ઉપાય શા છે?</strong><br />આ એક એવો સવાલ છે કે જેના માટે દરેક ફોરુમ્સ માં પુછાય છે જેના માટે વધુ માં વધુ બ્લોગ લખવામાં આવ્યા છે, હું પોતે પણ આ વીશે અગાઉ મારા બ્લોગ માં લખી ચુક્યો છું! આ અગાઉ જ્યારે લખ્યું હતું એ ફક્ત લીંક અને ટુંકાણ માં માહિતી હતી પરંતુ આ વખતે મારો પ્રયાસ આવો છે કે વીગતે માહિતી પ્રસ્તુત કરું.<br /><br />ટ્રનઝેક્શન લોગ નું ફૂલ થઈ જવું એ એક એવી સમસ્યા છે કે જે સામાન્ય છે અને લગભગ દરેક ડેતાબેઝ એડમીન પોતાની કરિયર માં એક વખત તો આ આનુંભાવે જ છે. તો હવે તમને થતું હશે કે<br /><strong>૧ આ ટ્રનઝેક્શન લોગ શું છે ? </strong><br /><strong>૨ શા માટે ટ્રનઝેક્શન લોગ ફૂલ થાય છે? </strong><br /><strong>૩ શા માટે મારા સર્વર પર આ સમસ્યા છે? </strong><br /><strong>૪ આ સમસ્યા નો ઉપાય શું છે?<br /></strong></div><div align="justify"><br />અહા, આ બધું મને સમાજ નથી પડી, વારુ તો હવે આને વિગતે સમજીએ અને આ માટે એ સમજવું અનિવાર્ય છે કે "ટ્રનઝેક્શન લોગ" શું છે? અને એનું મહત્વ શું છે? "ટ્રનઝેક્શન લોગ" આ શબ્દ માજ "એનો અર્થ છે, "ટ્રનઝેક્શન" એટલે "આપ - લે" - "માહિતી ની આપલે" જ્યારે "લોગ" નો અર્થ થાય છે "નોધવું"<br />"ટ્રનઝેક્શન લોગ" નું કાર્ય એ છે કે જયારે જ્યારે આપને એસ કયું એલ સર્વર પર કોઈ પણ ટ્રનઝેક્શન કરીએ તે દરેક ની નોંધ રાખવી। આમ કરવા માટે નું કારણ એ છે કે આપણા જે કોઈ પણ ડેટા સ્ટોર કરીએ તે "કન્સીસટંત સ્ટેત" માં હોવા જોઈયે, તદુપરાંત "ટ્રનઝેક્શન લોગ" ની મદદ થી આપણે "ડીઝાસ્ટર રીકવરી" પ્લાન કરી શકીએ છીએ; દાખલા તરીકે "લોગ શીપીંગ", " ડેટાબેઝ મીરરીંગ" તેમજ "પોઈન્ટ ઇન ટાઈમ રીકવરી" (આ બધા વિષે હું નવા આર્ટીકલ માં વિગતે જણાવીશ)<br /></div><p align="justify"><br />તો હવે આપણે જાણીએ છે કે "ટ્રનઝેક્શન લોગ" નું મહત્વ શું છે અને તે શું કરે છે, હવે જાણીએ કે તે ફૂલ શા માટે થાય છે અને કઈ રીતે એને અટકાવી શકાય.<br /><br />"ટ્રનઝેક્શન લોગ ફૂલ થાય જવાના કારણ અને એના ઉપાય"<br /><br /><strong>૧ "ટ્રનઝેક્શન કમિટેડ નથી" </strong><br />-> એપ્લીકેશન કોડીંગ કરતી વખતે એ વાત નું ખાસ ધ્યાન રાખો કે દરેક "ટ્રનઝેક્શન" ને તમે બીગીન અને કમીટ માં આવરી લો। આમ કરવાથી તમારા દરેક "ટ્રનઝેક્શન" કમીટ થશે અને "કન્સીસટંત" રહેશે, અને તમને "બ્લોકીંગ" ની મુસીબત થી પણ છુટકારો મળશે</p><p>૨. <strong>"ટ્રનઝેક્શન ઓપન નથી પણ લાંબા સમય થી એક્ટીવ છે"</strong> </p><p align="justify">--> આ એવા ટ્રનઝેક્શન છે કે, જયારે યુઝર કોઈ ક્વેરી કરી રહ્યો હતો અને કોઈ કારણવશ એનું કમ્પ્યુટર હેંગ થઇ ગયું અથવાતો રીબુટ કે શટડાઉન થઇ ગયું હોઈ અને નેટવર્ક આ માહિતી એસ કયું એલ સર્વર ને પહોચાડી શકતું નથી જેથી ડેટાબેઝ સર્વર એવું સમજે છે કે "ટ્રનઝેક્શન ઓપન નથી પણ લાંબા સમય થી એક્ટીવ છે" આવા પ્રકાર ના સેશન ડીબીસીસી ઈનપુટબફર(એસ્પિઆઇડિ) થી કિલ કરી શકાય છે પરંતુ સાવચેતી થી કેમકે ઘણી વખત આ <a href="http://www.sql-server-citation.com/2009/01/why-rollback-is-taking-much-longer-time.html" target="_blank">પ્રોસેસ ૪ ગણો સમય લે છે</a> ખાસ કરી ને જ્યારે રોલબેક થાય છે. <a href="http://www.sql-server-citation.com/2009/01/how-t-sql-kill-command-works-for-ms-sql.html" target="_blank">કિલ કમાંડ કેવી રીતે કામ કરે છે તે જાણ વા માટે વાંચો </a></p><p><br />૩. <strong>"ઇન્ડેક્ષ્ ક્રિએટ કરતી વખતે કે મોડીફાઇ કરતી વખતે"</strong> </p><p align="justify">--> મારા મત મુજબ આ સૌથી અગત્ય નો મુદ્દો છે; ઇન્ડેક્ષ્ ક્રિએટ કરતી વખતે કે મોડીફાઇ કરતી વખતે ખાસ ધ્યાન રાખો કારણકે આ ઓપરેશન ફુલ્લી લોગ્ડ છે અને ૧૫૦% જગ્યા હોવી જરૂરી છે દાખલા તરીકે જો તમારા ટેબલ ની સાઈઝ ૧ જીબી છે તો તમારી પાસે ૧.૫ જીબી જગ્યા ફ્રિ હોવી જરૂરી છે. તદુપરાંત, જયારે પણ તમે ડીબીસીસી ડીબીરીઇન્ડેક્ષ્ એક્ઝીક્યુંટ કરો છો ત્યારે એ ઇન્ડેક્ષ્ ને ડ્રોપ કરી ને રીક્રીએટ કરે છે* (જો તમે ઇન્ડેક્ષ્ નું નામ નથી આપતા તો આ ટેબલ ના બધાજ ઇન્ડેક્ષ્ પર આ ઓપરેશન થશે). હું એવી સલાહ આપીશ કે તમે જયારે રીઇન્ડેક્ષ્ કરવાના હોઉં તે પહેલા ડીબીસીસી શોકોન્તીગ અથવા તો સીસ.ડીમ_ડીબી_ઇન્ડેક્ષ્_ફીઝીકલ_સ્ટેટસ નું આઉટપુટ વાંચો અને આ માહિતી ના આધારે ઇન્ડેક્ષ્ રીક્રિએટ અથવા તો ડીબીરીઇન્ડેક્ષ્ કરો.<br /></p><p>૪. <strong>"બલ્ક ઓપરેશન"</strong></p><p align="justify">--> બલ્ક ઓપરેશન લોગ્ડ ઓપરેશન હોવાના કારણે લોગ ફાઈલ ની સાઈઝ વધે છે, માટે જયારે પણ બલ્ક ઓપરેશન કરો ત્યારે તમે આ નાના ચંક માં કરી શકો તો ઘણું સારું.<br /></p><p>૫. <strong>"ઓટો ગ્રોથ"</strong></p><p align="justify">--> ઓટો ગ્રોથ ઓપ્શન જો કાળજી પૂર્વક કન્ફિગર કરવામાં નહી આવ્યું હોય તો આ ખરેખર એક મોટી મુશ્કેલી છે કેમકે જો ડેટાબેઝ સાઈઝ હ્યુજ હોઈ જેમકે ૧૦૦+ગીગ્સ અથવા વધારે હોઈ અને જો તમે ઓટો ગ્રોથ ઓપ્શન % માં રાખ્યું હોઈ તો તમે તમરી ડિસ્ક આઈ/ઓ વધી જશે અને પરફોર્મન્સ માં નોંધપાત્ર ઘટાડો વર્તાશે, <a href="http://www.extremeexperts.com/SQL/Articles/AutoGrowth.aspx" target="_blank">વધુ અહી વાંચો </a></p><p><br />૬. <strong>"ગ્રુપ બાય અથવા ઓર્ડર બાય "</strong></p><p align="justify">--> આપને બધાજ જાણીએ છે કે ગ્રુપ બાય અથવા ઓર્ડર બાય રીઝુલ્ત ને રિસોર્ટ કરે છે જે અને આ માટે પણ જગ્યા રોકાય છે અને માટે જો અનિવાર્ય હોય તો j ગ્રુપ બાય અથવા ઓર્ડર બાય નો ઉપયોગ કરો<br /></p><p>૭. <strong>" ટ્રનઝેક્શન રેપ્લીકેશન"</strong></p><p align="justify">--> જો તમે ટ્રનઝેક્શન રેપ્લીકેશન ક્ન્ફીગર કર્યું હોઈ અને કોઈ કારણવશ અમુક ટ્રનઝેક્શન કે જે રેપ્લીકેશન માટે માર્ક છે પણ રેપ્લીકેટ નથી થયા તે બધા જ તમારા ટ્રનઝેક્શન લોગ માં હોઈ છે અને જગ્યા રોકે છે, માટે ટ્રનઝેક્શન રેપ્લીકેશન મોનીટર ઓપન કરો અને રેપ્લીકેશન સિંક કરો. </p><p>૮. <strong>"ટ્રનઝેક્શન લોગ બેકઅપ નથી થયું"</strong></p><p align="justify">--> ટ્રનઝેક્શન લોગ બેકઅપ એ સૌથી અસરકારક ઉપાય છે કે જે ટ્રનઝેક્શન લોગ ને શેપ માં રાખે છે દાખલા તરીકે દર ૧૫ મિનીટ બાદ ટ્રનઝેક્શન લોગ બેકઅપ શીડ્યુલ કરો.</p><p align="justify"><br /><strong>સાર:</strong> ટ્રનઝેક્શન લોગ, દરેક ટ્રનઝેક્શન ને લોગ કરે છે અને જો તમે તમારા ડેટાબેઝ ને ફૂલ રીકવરી મોડ માં રાખ્યો હોઈ તો ટ્રનઝેક્શન લોગ ફૂલ થઇ જવાની શક્યતા ઘણી વધુ છે, માટે હમેશા ટ્રનઝેક્શન લોગ બેકઅપ શેડ્યુલ કરો.</p><p align="left">અંગ્રેજી વર્ઝન: <a href="http://www.sql-server-citation.com/2009/08/how-to-get-rid-off-from-transaction-log.html" target="_blank">http://www.sql-server-citation.com/2009/08/how-to-get-rid-off-from-transaction-log.html</a></p>Hemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.com0tag:blogger.com,1999:blog-27697851993451984.post-61026622504591240082009-08-05T13:19:00.001+05:302009-08-07T13:29:28.360+05:301st SQL Server Blog in Gujaratiવાચક મિત્રો,<br /><br /><div style="text-align: justify;">આજે હું નવો બ્લોગ શરુ કરું છું અને આ માટે ઘણા ઉત્સાહ અને આનંદ ની લાગણી અનુભવું છું, કેમકે આ બ્લોગ હું ગુજરાતી માં લખવાનો છું કે જે કદાચ પહેલો ગુજરાતી બ્લોગ હશે જે એસ કયું એલ સરવર માટે લખાતો હશે. ભવિષ્ય માં હું એસ કયું એલ સરવર માટે એક પુસ્તક પણ પ્રકાશિત કરવાની ઈચ્છા ધરાવું છું. મારો એક બ્લોગ કે જે હું એસ કયું એલ સરવર (અંગ્રેજી માં) પર લખું છું <span style="font-weight:bold;">http://www.sql-server-citation.com</span>/ અને ઘણો જ પોપ્યુલર છે તેને ૨૦૦૭ થી અત્યાર સુધી આ બ્લોગ પર ૧૬૫૦૦ કરતા પણ વધુ હીટ મળી છે. </div><br />આશા રાખું કે મારો આ પ્રયાસ પણ સફળ રહે, અને મારા એસ કયું એલ સરવર (ગુજરાતી) બ્લોગ કે જે સર્વ પ્રથમ ગુજરાતી બ્લોગ છે ને વાચકો પસંદ કરે.<br /><br />-- હેમંતગીરી એસ. ગોસ્વામીHemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.com0tag:blogger.com,1999:blog-27697851993451984.post-45408874471894434762009-07-19T17:35:00.001+05:302009-11-27T14:47:39.559+05:30AbooutAbout meHemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.comtag:blogger.com,1999:blog-27697851993451984.post-7131852560311493352007-11-20T09:57:00.001+05:302009-11-20T11:10:02.112+05:30સમ્પર્કતમે મને sqlservercition@gmail.com પર સમ્પર્ક કરી શકો છો <br />
<br />
જો તમને એસક્યુંએલ સર્વર વિષે કોઈ પ્રશ્ન હોય તો તમે તમારા પ્રશ્ન http://www.surat-user-group.org પર કરી શકો છો .Hemantgiri S. Goswamihttp://www.blogger.com/profile/06347825117765549016noreply@blogger.com