<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4318965216733027282</id><updated>2026-05-03T15:06:44.401-07:00</updated><category term="Dot Net"/><category term="C#"/><category term=".net"/><category term="Sql server"/><category term="asp.net"/><category term="JavaScript"/><category term="Functions"/><category term="Browser compatible"/><category term="Database"/><category term="Application Performance"/><category term="Error"/><category term="Client Side"/><category term="Configure"/><category term="IIS"/><category term="My Sql"/><category term="Stored Procedure"/><category term="Server"/><category term="Web site"/><category term="Uploading"/><category term="Validations"/><category term="Data Sharing"/><category term="Desktop"/><category term="FileUploading"/><category term="Googel API"/><category term="Remote connection"/><category term="Windows Server"/><category term="Auto Complete"/><category term="Back Up"/><category term="DateTime"/><category term="Files Sharing"/><category term="Injection attack"/><category term="Remote"/><category term="SaveAs"/><category term="Security"/><category term="User Defined Functions"/><category term="Verification"/><category term="Web.config"/><category term="Access Desktop"/><category term="Animation"/><category term="Base Class"/><category term="Beta 1"/><category term="Compare Files"/><category term="Datagrid"/><category term="DateDiff"/><category term="Debugging"/><category term="Encryption and decryption"/><category term="Enterprise Library"/><category term="Excel"/><category term="Fevicon"/><category term="Flv"/><category term="Google Analytics"/><category term="Google Maps"/><category term="Google Smart TV"/><category term="Icon"/><category term="JQuery"/><category term="Logout"/><category term="SEO"/><category term="Send Mail"/><category term="Sharing"/><category term="Spaming"/><category term="Sql Azure"/><category term="TCP/IP"/><category term="Team Meetings"/><category term="Team Sharing"/><category term="Team viewer"/><category term="URL rewriting"/><category term="Unicode"/><category term="VS 2008"/><category term="VS 2010"/><category term="Video"/><category term="Visual Basic"/><category term="Web site analysis"/><category term="Windows Service"/><category term="windows application"/><title type='text'>An IT Solution</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>76</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1184942291502949934</id><published>2017-01-01T03:45:00.002-08:00</published><updated>2017-01-01T03:45:14.545-08:00</updated><title type='text'>Azure sp_execute_remote / Cross Database query in Sql Azure.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Cross database query is not allowed in Sql Azure. Rather Azure has applied a different logic to use&lt;br /&gt;
the same.&lt;br /&gt;
&lt;br /&gt;
Please check my article before proceeding with &quot;sp_execute_remote &quot;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://an-it-solution.blogspot.in/2017/01/sql-azure-select-from-another-database.html&quot;&gt;http://an-it-solution.blogspot.in/2017/01/sql-azure-select-from-another-database.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You need to create a SP in &quot;&lt;b style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, sans-serif; font-size: 14px;&quot;&gt;DbCustomers&quot;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, sans-serif; font-size: 14px;&quot;&gt;&amp;nbsp;with the name of &quot;&lt;/span&gt;LogEvents_Insert&quot; which will be called by following query.&lt;br /&gt;
&lt;br /&gt;
The below query will execute in &quot;&lt;b style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, sans-serif; font-size: 14px;&quot;&gt;DbPayments&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, sans-serif; font-size: 14px;&quot;&gt;&amp;nbsp;&quot; and insert data into &quot;LogLogin&quot; of &quot;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, sans-serif; font-size: 14px;&quot;&gt;DbCustomers&quot;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
EXEC sp_execute_remote @data_source_name &amp;nbsp;= N&#39;&lt;b&gt;DbUtilityLogging_Datasource&lt;/b&gt;&#39;,&lt;br /&gt;
@stmt = N&#39;LogEvents_Insert @LoginID&#39;,&lt;br /&gt;
@params = N&#39;@LoginId nvarchar(50)&#39;,&lt;br /&gt;
@LoginID=&#39;narender90&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1184942291502949934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1184942291502949934' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1184942291502949934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1184942291502949934'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2017/01/azure-spexecuteremote-cross-database.html' title='Azure sp_execute_remote / Cross Database query in Sql Azure.'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-366388009378914591</id><published>2017-01-01T03:26:00.003-08:00</published><updated>2017-01-01T03:28:07.357-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Azure"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>Sql azure select from another database / Cross Database connection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Cross database query Sql Azure&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;Azure cross database query performance&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;sql azure select from another database&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;reference to database and/or server name in is not supported in this version of sql server.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;All the above statements are reference to the issue we face while shifting data from Sql Server to Azure Database.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
While using Sql Server (Any version) we can reference any database with in Sql server according to user rights assigned to user.&lt;br /&gt;
&lt;br /&gt;
We can use statements like &quot;select * from db1.dbo.customers&quot;&lt;br /&gt;
&lt;br /&gt;
But now in Sql Azure the system and terminology has changed.&lt;br /&gt;
&lt;br /&gt;
Now, azure has new concept of &lt;b&gt;External Tables&lt;/b&gt;&amp;nbsp;and &lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11pt;&quot;&gt;&lt;b&gt;sp_execute_remote&lt;/b&gt;&lt;/span&gt;&amp;nbsp;in introduced.&lt;br /&gt;
&lt;br /&gt;
Now we need to know the who is who in Azure.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;External Tables = &quot;Is for Select&quot;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;font-family: Calibri, sans-serif; font-size: 14.6667px;&quot;&gt;sp_execute_remote=&quot;Execute External Store Procedures&quot;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-family: Calibri, sans-serif; font-size: 14.6667px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
Before proceeding.&lt;br /&gt;
&lt;br /&gt;
Please create 2 azure databases as per your choice.&lt;br /&gt;
&lt;br /&gt;
Here I am naming them as.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DbCustomers &lt;/b&gt;and &lt;b&gt;DbPayments&lt;/b&gt;&amp;nbsp;and keep a reference to them in my examples.&lt;br /&gt;
&lt;br /&gt;
In&amp;nbsp;&lt;b&gt;DbCustomers&lt;/b&gt;&amp;nbsp;create table &quot;&lt;b&gt;LogLogin&lt;/b&gt;&quot; with following fields.&lt;br /&gt;
[Id] [int]&amp;nbsp;&amp;nbsp;NOT NULL,&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
[LoginID] [nvarchar](50) NULL&lt;/div&gt;
&lt;br /&gt;
Now the main code of cross reference starts.&lt;br /&gt;
&lt;br /&gt;
In &quot;&lt;b&gt;DbPayments&lt;/b&gt;&amp;nbsp;&lt;b&gt;&quot;&lt;/b&gt;&amp;nbsp;use the following code&lt;br /&gt;
--==================&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: red;&quot;&gt;&lt;b&gt;Note - Marked bold and red are the parameters&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = &#39;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;jkl$7k@fylj&lt;/span&gt;&lt;/b&gt;&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
GO&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
CREATE DATABASE SCOPED CREDENTIAL &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;DbCustomers_Credential&lt;/b&gt; &lt;/span&gt;WITH IDENTITY = &#39;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;UserName&lt;/span&gt;&lt;/b&gt;&#39;, SECRET =
&#39;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Password&lt;/span&gt;&lt;/b&gt;&#39;;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
GO&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
CREATE EXTERNAL DATA SOURCE&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;DbCustomers_Datasource&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
WITH (&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE=RDBMS,&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOCATION=&#39;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;YourServerName&lt;/b&gt;&lt;/span&gt;&#39;,&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATABASE_NAME=&#39;&lt;b style=&quot;color: red;&quot;&gt;YourDatabaseName&lt;/b&gt;&#39;, --&amp;nbsp;&lt;b&gt;DbCustomers&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREDENTIAL =&amp;nbsp;&lt;b style=&quot;color: red;&quot;&gt;DbCustomers_Credential&lt;/b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
);&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
GO&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
CREATE EXTERNAL TABLE [dbo].[LogLogin] (&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Id]
[int]&amp;nbsp; NOT NULL,&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [LoginID]
[nvarchar](50) NULL&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
) WITH ( DATA_SOURCE =&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;DbCustomers_Datasource&lt;/span&gt;&lt;/b&gt;)&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
--==================================================&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
The above code will create an external table and show the table in &quot;&lt;b&gt;DbPayments&lt;/b&gt;&quot; to which you can use simply by writing a SQL query.&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
Select * from LogLogin or use anywhere is the stored procedures.&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/366388009378914591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/366388009378914591' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/366388009378914591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/366388009378914591'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2017/01/sql-azure-select-from-another-database.html' title='Sql azure select from another database / Cross Database connection'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>3</thr:total><georss:featurename>Bahadurpur Rajoa, Punjab, India</georss:featurename><georss:point>31.7468168 75.5247584</georss:point><georss:box>31.7198098 75.4844179 31.773823800000002 75.5650989</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-2888990539464781673</id><published>2014-06-30T23:45:00.001-07:00</published><updated>2014-06-30T23:45:16.044-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><title type='text'>How to add Primary Key and Auto Increment on different fields of MySql</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;&amp;nbsp;Normal code generated by MySql:-&lt;/b&gt;&lt;div&gt;
&lt;br /&gt;&lt;div&gt;
&lt;div&gt;
CREATE TABLE `categorymaster` (&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `&lt;b&gt;CategoryID&lt;/b&gt;` int(11) NOT NULL AUTO_INCREMENT,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `&lt;b&gt;Category&lt;/b&gt;` varchar(200) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `IsActiv` int(11) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `ImagePath` varchar(200) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `DisplayOrder` int(11) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;PRIMARY KEY&lt;/b&gt;&lt;/span&gt; (`&lt;b&gt;Category&lt;/b&gt;`)&lt;/div&gt;
&lt;div&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In the above data stucture I want to make the &quot;&lt;b&gt;Category&lt;/b&gt;&quot; as Primary Key and &quot;&lt;b&gt;CategoryId&lt;/b&gt;&quot; as Auto Increment.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;But Table Wizard always give errors so, I decided to write my own Statement.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Following is the statement which will create perfect&amp;nbsp;structure&amp;nbsp;according to my requirement.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;div&gt;
DROP TABLE `dbname`.`categorymaster`;&lt;/div&gt;
&lt;div&gt;
CREATE TABLE `categorymaster` (&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &lt;b&gt;`CategoryId` int(11) unsigned NOT NULL AUTO_INCREMENT,&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `Category` varchar(200) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `IsActiv` int(11) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `ImagePath` varchar(200) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; `DisplayOrder` int(11) DEFAULT NULL,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;UNIQUE KEY&lt;/span&gt; `CategoryId` (`CategoryId`),&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY (`Category`)&lt;/div&gt;
&lt;div&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/2888990539464781673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/2888990539464781673' title='41 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2888990539464781673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2888990539464781673'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2014/06/how-to-add-primary-key-and-auto.html' title='How to add Primary Key and Auto Increment on different fields of MySql'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08251499341033355118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>41</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-7107748113997756446</id><published>2014-02-07T04:35:00.000-08:00</published><updated>2014-02-07T04:35:00.076-08:00</updated><title type='text'>How to create User Login in Sql Server 2005/2008</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
How to create User Login in Sql Server 2005/2008&lt;br /&gt;
Note - You must be a member of &quot;system admin&quot; to create a new user or database.&lt;br /&gt;
&lt;br /&gt;
Following is the steps to create user login in database for database level security :-&lt;br /&gt;
Step 1 .&lt;br /&gt;
&lt;br /&gt;
Open Sql Server &amp;gt;&amp;gt; Enter User Name &amp;gt;&amp;gt; Enter Password &amp;gt;&amp;gt; Click Connect&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy4e6YV20DBogDUnSBd03dR-8EilCnxvZyD-UP1udvH3Q2xtDZVbaX4XaqN06Mzx9IPh1O_zFtleSkT3hb04xmW6i6RXvuqz2YZLtqPgdXZ997uoQjcoqTPW8YeOAdiEioClpTv2Llj0A7/s1600/untitled.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy4e6YV20DBogDUnSBd03dR-8EilCnxvZyD-UP1udvH3Q2xtDZVbaX4XaqN06Mzx9IPh1O_zFtleSkT3hb04xmW6i6RXvuqz2YZLtqPgdXZ997uoQjcoqTPW8YeOAdiEioClpTv2Llj0A7/s1600/untitled.PNG&quot; height=&quot;251&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Step 2 .&lt;br /&gt;
Open Security &amp;gt;&amp;gt; Logins &amp;gt;&amp;gt; Right Click &amp;gt;&amp;gt; New Login&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUSn4PkF8ETKK1lKG2KIDDRMzgNTPaYK35AyTFzcuFts5iCeyvOvNXenYng3UwL_pSq1NkKEUCMwGjDsiE-KtzhtCj3CBNJdto67TD_IGfXkZuETxD99FRrbK_X4PRUqmPOgQWCv99ry7V/s1600/1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUSn4PkF8ETKK1lKG2KIDDRMzgNTPaYK35AyTFzcuFts5iCeyvOvNXenYng3UwL_pSq1NkKEUCMwGjDsiE-KtzhtCj3CBNJdto67TD_IGfXkZuETxD99FRrbK_X4PRUqmPOgQWCv99ry7V/s1600/1.PNG&quot; height=&quot;320&quot; width=&quot;280&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Step 3.&lt;br /&gt;
Enter login name &amp;gt;&amp;gt; Select Radio button &quot;Sql Server Authentication&quot; &amp;gt;&amp;gt;Enter password&amp;gt;&amp;gt;Enter confirm password&amp;gt;&amp;gt; Un-Check Enforce password policy &amp;gt;&amp;gt; Click Ok&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu188BKgpk7k-eh1pUdOHPlt6p6fhWJ_PCTNIXsJW3DC0enI-YSF31ieCH-KO2uLTU6jUdHKVBiYyUePDLFIompGVldvEw4f4jVy0iP5AgPPxMWCxZ76OdPCL2w83J_Ogv9eFfVCBZF5tL/s1600/3.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu188BKgpk7k-eh1pUdOHPlt6p6fhWJ_PCTNIXsJW3DC0enI-YSF31ieCH-KO2uLTU6jUdHKVBiYyUePDLFIompGVldvEw4f4jVy0iP5AgPPxMWCxZ76OdPCL2w83J_Ogv9eFfVCBZF5tL/s1600/3.PNG&quot; height=&quot;285&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Step 4.&lt;br /&gt;
Right click on Databases &amp;gt;&amp;gt; Click new database&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-vY-_eQ2Od4ndLoNWoVUvzllZcN_WuZ3-AWY3wpPbsONqBFBFd9EzBgex6CT2SnsWhxL5On0QUgkBsgcMDLhyphenhyphendZSDO44ciCd-w4fSfEJOgmhtodqIZ-yiHlaBJ3_DEI9Ws2ZGHx7s7qQR/s1600/4.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-vY-_eQ2Od4ndLoNWoVUvzllZcN_WuZ3-AWY3wpPbsONqBFBFd9EzBgex6CT2SnsWhxL5On0QUgkBsgcMDLhyphenhyphendZSDO44ciCd-w4fSfEJOgmhtodqIZ-yiHlaBJ3_DEI9Ws2ZGHx7s7qQR/s1600/4.PNG&quot; height=&quot;250&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 5.&lt;br /&gt;
Enter Database name&amp;gt;&amp;gt; Owner &quot;&amp;lt;default&amp;gt;&quot; &amp;gt;&amp;gt; Click Ok&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGlYFq4YeGFHyz-i8pLznLZBEwfzTqrNY9IonNvesz_3hpTFl1wBZgKnkj306PXVmOtuct4TjM5HT7_SzQu7uoyex75AhTntdg1kE4c0c-G8HpsgKdFKHfnBogSZ-jTKZyCmg_2N_c14Fo/s1600/5.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGlYFq4YeGFHyz-i8pLznLZBEwfzTqrNY9IonNvesz_3hpTFl1wBZgKnkj306PXVmOtuct4TjM5HT7_SzQu7uoyex75AhTntdg1kE4c0c-G8HpsgKdFKHfnBogSZ-jTKZyCmg_2N_c14Fo/s1600/5.PNG&quot; height=&quot;284&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Step 6 .&lt;br /&gt;
Open Newly created database (My Case it is Test)&amp;gt;&amp;gt; Security&amp;gt;&amp;gt; Users&amp;gt;&amp;gt; Right click on dbo &amp;gt;&amp;gt; New users.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij2CyJHW5ZYzaIMusuD1J_ZcB2YXCWf0FJlMOkiCzmR4bU3bfo6hou1CNTC3tTf6FfCG9S3bOu_0u6mDfjgSRZ52c0SENuFjpVN1YT1OP3YskXNEJB3bTuKINepJ_eHyqh-L5IipbI95GI/s1600/6.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij2CyJHW5ZYzaIMusuD1J_ZcB2YXCWf0FJlMOkiCzmR4bU3bfo6hou1CNTC3tTf6FfCG9S3bOu_0u6mDfjgSRZ52c0SENuFjpVN1YT1OP3YskXNEJB3bTuKINepJ_eHyqh-L5IipbI95GI/s1600/6.PNG&quot; height=&quot;320&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Step 7.&lt;br /&gt;
Enter user name&amp;gt;&amp;gt; Login name &amp;gt;&amp;gt; default schema enter &quot;dbo&quot;&amp;gt;&amp;gt; Celect check box db_owner&amp;gt;&amp;gt; Select check box db_owner &amp;gt;&amp;gt; Click Ok&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1IBngVusumQnCICzAr02MbIU7YHuZ6at_4_TU1RE9b-fUFFxAVygGfuODM9mXGpk8pCck8zmCUQqpyKTI29klPdMgPnTqXBsWLn-kwAJIRlVHOxU_5tJi8ZWDEcIyUfXa0jTlIw1XKSA9/s1600/7.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1IBngVusumQnCICzAr02MbIU7YHuZ6at_4_TU1RE9b-fUFFxAVygGfuODM9mXGpk8pCck8zmCUQqpyKTI29klPdMgPnTqXBsWLn-kwAJIRlVHOxU_5tJi8ZWDEcIyUfXa0jTlIw1XKSA9/s1600/7.PNG&quot; height=&quot;284&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You are done with user creation.&lt;br /&gt;
To make sure user is created and working, please re-login using your newly created user name.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/7107748113997756446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/7107748113997756446' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7107748113997756446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7107748113997756446'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2014/02/how-to-create-user-login-in-sql-server.html' title='How to create User Login in Sql Server 2005/2008'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/08251499341033355118</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy4e6YV20DBogDUnSBd03dR-8EilCnxvZyD-UP1udvH3Q2xtDZVbaX4XaqN06Mzx9IPh1O_zFtleSkT3hb04xmW6i6RXvuqz2YZLtqPgdXZ997uoQjcoqTPW8YeOAdiEioClpTv2Llj0A7/s72-c/untitled.PNG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1284909942222648886</id><published>2013-01-12T01:36:00.001-08:00</published><updated>2013-01-12T01:36:40.693-08:00</updated><title type='text'>How to Expose/Access Sql Server to Internet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Task - Expose Sel Server to Internet or Remote Access via IP&lt;/b&gt;&lt;br /&gt;
OS - Windows Server 2008 R2&lt;br /&gt;
Sql Version - Sql Server 2008 R2&lt;br /&gt;
&lt;br /&gt;
To expose the server to internet we need open port for sql server (default port is 1433)&lt;br /&gt;
&lt;br /&gt;
To open a port in the Windows firewall for TCP access&lt;br /&gt;
&lt;br /&gt;
1. On the Start menu, click Run, type WF.msc, and then click OK.&lt;br /&gt;
2 . In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane (upper right corner).&lt;br /&gt;
3. In the Rule Type dialog box, select Port, and then click Next.&lt;br /&gt;
4. In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine, In my case we are using the default which is 1433. Click Next.&lt;br /&gt;
5. In the Action dialog box, select Allow the connection, and then click Next.&lt;br /&gt;
6. In the Profile dialog box, I am going to Leave Domain turned on and turn private and public off. Then click Next.&lt;br /&gt;
7. In the Name dialog box, type &quot;Allow SQL 1433 Inbound” and for a description I am putting in the same. Then click Finish.&lt;br /&gt;
&lt;br /&gt;
Then go to Sql Server Configuration Manager.&lt;br /&gt;
1.&amp;nbsp;On the Start menu, Click Microsoft Sql Server 2008 R2&lt;br /&gt;
2. Click on Configuration Tools.&lt;br /&gt;
3. Sql Server Configuration Manager.&lt;br /&gt;
&lt;br /&gt;
And follow the attached images&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj05BMXuc5eMJcIA2CK-zquuSEWBtV8JIy_ukt6pjG-qdqSfcG2SrOXFyFwUJDVUV0stejsmbOgiQ9BGwhfcbqbpRQ65RJpXqb3xAIJD2t74Dv5nKUEykpCJkHJCMtBJEVH9Av6DyE9OrQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;199&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj05BMXuc5eMJcIA2CK-zquuSEWBtV8JIy_ukt6pjG-qdqSfcG2SrOXFyFwUJDVUV0stejsmbOgiQ9BGwhfcbqbpRQ65RJpXqb3xAIJD2t74Dv5nKUEykpCJkHJCMtBJEVH9Av6DyE9OrQ/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
================================&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1Viq5wfamcgaZNPzwIM9Hr1oOb0JdDNtpjhRlHeVgToc7gsNXZUu-CqsOaMDatmRgq9Ev36s3unfVBSxP0CroZBcAfSsce6U_FxaXCjKSejaLUdeneVQ8Tz1TBO4CdsxC0oInW0evj1k/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1Viq5wfamcgaZNPzwIM9Hr1oOb0JdDNtpjhRlHeVgToc7gsNXZUu-CqsOaMDatmRgq9Ev36s3unfVBSxP0CroZBcAfSsce6U_FxaXCjKSejaLUdeneVQ8Tz1TBO4CdsxC0oInW0evj1k/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Now you need to access the Sql server like &quot;IP\sqlexpress&quot; in name, please don&#39;t try only with IP address.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1284909942222648886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1284909942222648886' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1284909942222648886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1284909942222648886'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2013/01/how-to-exposeaccess-sql-server-to.html' title='How to Expose/Access Sql Server to Internet'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj05BMXuc5eMJcIA2CK-zquuSEWBtV8JIy_ukt6pjG-qdqSfcG2SrOXFyFwUJDVUV0stejsmbOgiQ9BGwhfcbqbpRQ65RJpXqb3xAIJD2t74Dv5nKUEykpCJkHJCMtBJEVH9Av6DyE9OrQ/s72-c/1.png" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1440666267419557354</id><published>2012-04-07T06:30:00.001-07:00</published><updated>2012-04-07T06:40:38.877-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server"/><title type='text'>Server Application Unavailable IIS Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Generally the cause of Server Application Unavailable is the .net framework.&lt;br /&gt;
&lt;br /&gt;
Error Snapshot&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTzcvxc03fSijSZEm-7dva-8KLmph_pyyvumkPryTRs1CfdkA_WIOL_ABl0Ek2LKVR_Jvu3nrI4YJdOOEg2Hvl7EOkH2O_MYuhrgy8vsjgLnj0fM_Um5p1tUwOklVaN4MTr64bY8WqwA/s1600/Error.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;53&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTzcvxc03fSijSZEm-7dva-8KLmph_pyyvumkPryTRs1CfdkA_WIOL_ABl0Ek2LKVR_Jvu3nrI4YJdOOEg2Hvl7EOkH2O_MYuhrgy8vsjgLnj0fM_Um5p1tUwOklVaN4MTr64bY8WqwA/s320/Error.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
For ex. one of our site is in version 1.1 and the recently added site is in 2.0 or later or any other different versions running on the IIS.&lt;br /&gt;
&lt;br /&gt;
How to Resolve:-&lt;br /&gt;
We need to create a new application pool on the IIS and assign the same to the version of the site.&lt;br /&gt;
Following image illustrates how to check the version of site.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSIVZtzNMc5nwU7GedSFifrJsSTVT8yu18FTiZdN_7key0QPIa0v-WvlmcM_isWxhHoQOyK-9YHuJiwLAJCEtZ7vbPePWJm8X-Zr-bnf49OcW2avNYkPGXE1Pss0rbI7uSZcpSD3cHU4E/s1600/4_0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;309&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSIVZtzNMc5nwU7GedSFifrJsSTVT8yu18FTiZdN_7key0QPIa0v-WvlmcM_isWxhHoQOyK-9YHuJiwLAJCEtZ7vbPePWJm8X-Zr-bnf49OcW2avNYkPGXE1Pss0rbI7uSZcpSD3cHU4E/s320/4_0.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
For ex. Pool3_5 for version 3.5 and&amp;nbsp; Pool4_0 version 4.0 .&lt;br /&gt;
Following image illustrates how to create new Pool.&lt;br /&gt;
&lt;br /&gt;
Step 1:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMiSNQiKLugT54EnzXNMSDTJF-jXiC8Hu6oiNc6Vl3dvxh7DAFoYYh123LOEOreKPhKRY2lzRavOmJO06TaRTpOW8cy-IUEE3XgKK2_1RQ8pjg06rF_AqV61hJsW818h_FsSJFyYkGxsQ/s1600/NewPool1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMiSNQiKLugT54EnzXNMSDTJF-jXiC8Hu6oiNc6Vl3dvxh7DAFoYYh123LOEOreKPhKRY2lzRavOmJO06TaRTpOW8cy-IUEE3XgKK2_1RQ8pjg06rF_AqV61hJsW818h_FsSJFyYkGxsQ/s320/NewPool1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 2:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsXpXqG5oj6Kw7pXrZukL0E0MElTKTJStG4JvjQE_D8Y52MY0_bSX3BS4PLMrlX9ADGKM_twiVfxHh7RODpr_7tBGnQk2UwhwvcCwg2De-6_LlKLxd1o_pfsJoytEMhCj7Ywe1ckzpiyk/s1600/NewPool2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsXpXqG5oj6Kw7pXrZukL0E0MElTKTJStG4JvjQE_D8Y52MY0_bSX3BS4PLMrlX9ADGKM_twiVfxHh7RODpr_7tBGnQk2UwhwvcCwg2De-6_LlKLxd1o_pfsJoytEMhCj7Ywe1ckzpiyk/s320/NewPool2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Step 3:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPEZMP2-JfnIxyDlwALyhjQbDXj_QmoKAhh8KbwP1H5qx0nzZ0SQaeIkxwU_3WkCeo9IYwynkQaAW3eM_W_xHfwssZ0mUj6aUsKvvNPMpOMHsQ1YSJew598VfwgZ9vAIPeMz9XtQvI7rQ/s1600/NewPool3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPEZMP2-JfnIxyDlwALyhjQbDXj_QmoKAhh8KbwP1H5qx0nzZ0SQaeIkxwU_3WkCeo9IYwynkQaAW3eM_W_xHfwssZ0mUj6aUsKvvNPMpOMHsQ1YSJew598VfwgZ9vAIPeMz9XtQvI7rQ/s320/NewPool3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;You can also verify the IIS logs to locate the issue.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1440666267419557354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1440666267419557354' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1440666267419557354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1440666267419557354'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2012/04/sever-application-unavailable-iis-error.html' title='Server Application Unavailable IIS Error'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfTzcvxc03fSijSZEm-7dva-8KLmph_pyyvumkPryTRs1CfdkA_WIOL_ABl0Ek2LKVR_Jvu3nrI4YJdOOEg2Hvl7EOkH2O_MYuhrgy8vsjgLnj0fM_Um5p1tUwOklVaN4MTr64bY8WqwA/s72-c/Error.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-3004556113539428784</id><published>2012-04-05T05:26:00.002-07:00</published><updated>2012-04-05T05:27:29.742-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server"/><title type='text'>How to make a site default on IIS 6 Windows Server 2003</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;While setting up an new Web server with Windows Server 2003 and IIS 6.&lt;br /&gt;
&lt;br /&gt;
I have to set up my own custom domain (for ex. myname.com) as the default site on IIS. Means if I will run the server from IP my custom domain has to run.&lt;br /&gt;
&lt;br /&gt;
The process is so, easy we need to setup few things in custom site.&lt;br /&gt;
&lt;br /&gt;
Right click on Site&amp;gt;&amp;gt;Properties&amp;gt;&amp;gt;WebSite&amp;gt;&amp;gt;Click on Advnaced Button&amp;gt;&amp;gt;Leave the &quot;Host header value&quot; to be blank.&lt;br /&gt;
&lt;br /&gt;
Please refer the image..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidujXEu4oyRH7hyphenhyphen5g7iAkDP_o_ts5caygGhYOp-sZTLM117YuQdmnirEd3XqvcgFjptEn5JnhEdxw4B8dEM6jCODi-o6rrSgRNIuLnEWzHYKOJzW_H7eVKSoGP6EFiUHrHzouBRdUupCQ/s1600/Default.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;116&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidujXEu4oyRH7hyphenhyphen5g7iAkDP_o_ts5caygGhYOp-sZTLM117YuQdmnirEd3XqvcgFjptEn5JnhEdxw4B8dEM6jCODi-o6rrSgRNIuLnEWzHYKOJzW_H7eVKSoGP6EFiUHrHzouBRdUupCQ/s320/Default.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/3004556113539428784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/3004556113539428784' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3004556113539428784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3004556113539428784'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2012/04/how-to-make-site-default-on-iis-6.html' title='How to make a site default on IIS 6 Windows Server 2003'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidujXEu4oyRH7hyphenhyphen5g7iAkDP_o_ts5caygGhYOp-sZTLM117YuQdmnirEd3XqvcgFjptEn5JnhEdxw4B8dEM6jCODi-o6rrSgRNIuLnEWzHYKOJzW_H7eVKSoGP6EFiUHrHzouBRdUupCQ/s72-c/Default.png" height="72" width="72"/><thr:total>2</thr:total><georss:featurename>Punjab, India</georss:featurename><georss:point>31.750795683985153 75.517959219726549</georss:point><georss:box>30.269911683985153 73.992524219726548 33.231679683985156 77.043394219726551</georss:box></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-7949393236569238235</id><published>2011-11-08T03:37:00.000-08:00</published><updated>2011-11-08T03:37:31.219-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Server"/><title type='text'>Windows Event Starting up database DatabaseName</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Configuration:-&lt;br /&gt;
Windows Server 2003 R2 32 bit&lt;br /&gt;
Sql Express 2008 R2&lt;br /&gt;
&lt;br /&gt;
While checking for server event as a part of maintenance we a information which is occuring after every 1-10 seconds the information is Event &quot;Starting up database DatabaseName&quot;&lt;br /&gt;
&lt;br /&gt;
We found the solution and implemnted the same.&lt;br /&gt;
&lt;br /&gt;
You need to open &quot;Sql Express Management Studio&amp;gt;&amp;gt;Database&amp;gt;&amp;gt;Properties&amp;gt;&amp;gt;Options&amp;gt;&amp;gt;Auto Close&quot; and set it to false.&lt;br /&gt;
&lt;br /&gt;
For more information on this property, please refer&lt;br /&gt;
&lt;a href=&quot;http://blogs.msdn.com/b/buckwoody/archive/2009/06/24/sql-server-best-practices-autoclose-should-be-off.aspx&quot;&gt;http://blogs.msdn.com/b/buckwoody/archive/2009/06/24/sql-server-best-practices-autoclose-should-be-off.aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms135094%28SQL.90%29.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms135094%28SQL.90%29.aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.anitsolution.com/blog/autoclose.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;165&quot; src=&quot;http://www.anitsolution.com/blog/autoclose.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/7949393236569238235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/7949393236569238235' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7949393236569238235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7949393236569238235'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2011/11/windows-event-starting-up-database.html' title='Windows Event Starting up database DatabaseName'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-2364905231118119556</id><published>2011-10-10T02:41:00.000-07:00</published><updated>2011-10-10T02:45:35.999-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Googel API"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Smart TV"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>How to set focus on Table row using Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;We are developing Application for Google Smart TV and all is going well.&lt;br /&gt;
&lt;br /&gt;
We are using Table, Div or some other elements which cannot be focused on using .focus() of java script.&lt;br /&gt;
&lt;br /&gt;
We have used Table to show data in one of our page. Our target is to set the focus on first element of table i.e. first row.&lt;br /&gt;
&lt;br /&gt;
We tried different solutions suggested on web but nothing worked. All the posts are suggesting to use focusable controls like text box, check box etc.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/Finally%20we%20found%20solution%20on%20http://groups.google.com/group/mozilla.dev.tech.css/browse_thread/thread/42591922d95c6399&quot;&gt;Finally we found solution on http://groups.google.com/group/mozilla.dev.tech.css/browse_thread/thread/42591922d95c6399&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In the post &quot;Stanimir Stamenkov&quot; has used a term &quot;if you just define a &#39;tabindex&#39; on the element it becomes focusable&quot; I assigned  &quot;tabindex&quot; property to table row and then used .focus() and the focus reached to row.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this will help all who are looking for such nice solutions.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/2364905231118119556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/2364905231118119556' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2364905231118119556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2364905231118119556'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2011/10/how-to-set-focus-on-table-row-usning.html' title='How to set focus on Table row using Javascript'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1355533715447309888</id><published>2011-06-15T06:08:00.000-07:00</published><updated>2011-06-15T06:08:45.552-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>How to allow special characters in URL or query string</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I am using asp.net 4.0 with Sql server. I have an requirement to pass special characters in URL query string.&lt;br /&gt;
&lt;br /&gt;
for example my URL need to be like http://mysite.com/default.aspx?a=xyx(abc)&lt;br /&gt;
In the above URL my special character is &quot;(&quot; and &quot;)&quot;. While development I have not faced any issue but as I uploaded the files to serve it start giving error 404 (page not found) where ever I have use &quot;(&quot; or &quot;)&quot; special characters.&lt;br /&gt;
&lt;br /&gt;
When I started searching I have tried many solutions. but nothing works for me.&lt;br /&gt;
Then on some site some one has sugested to check IIS log.&lt;br /&gt;
&lt;br /&gt;
When I checked the log I found that I have Installed Microsoft URL Scan 3.1 on my server which is filtering the URL.&lt;br /&gt;
&lt;br /&gt;
So, I need to allow &quot;(&quot; and &quot;)&quot; on my server so, I decided to allow there characters in my URL.&lt;br /&gt;
&lt;br /&gt;
So, to add exception to URL Scan 3.1 you need to open urlscan.ini which you can find in &quot;%windir%\system32\inetsrv\urlscan\&quot;&lt;br /&gt;
&lt;br /&gt;
You can use 2 sections to allow special characters&lt;br /&gt;
1) DenyQueryStringSequences&lt;br /&gt;
2) AlwaysAllowedUrls&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DenyQueryStringSequences - In this section you can add and remove the allowed characters but this will allow for all the URLs.&lt;br /&gt;
&lt;br /&gt;
AlwaysAllowedUrls - In this you can define a single URL like &quot;/default.aspx&quot;.So, the special characters will be allowed to only single URL not to all the URL of the IIS sites&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1355533715447309888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1355533715447309888' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1355533715447309888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1355533715447309888'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2011/06/how-to-allow-special-characters-in-url.html' title='How to allow special characters in URL or query string'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1162633525475393916</id><published>2011-03-18T23:45:00.000-07:00</published><updated>2011-03-18T23:45:44.710-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Configure"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Sharing"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Remote connection"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>How to select data from another sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;We have a target to run a JOB on server to import data from another SQL server instance.&lt;br /&gt;
&lt;br /&gt;
For example take&lt;br /&gt;
Server 1 - Main&lt;br /&gt;
Server 2 - From which we have to import.&lt;br /&gt;
&lt;br /&gt;
If you have admin rights on both the servers you can &quot;Link the servers&quot; under &quot;Server Objects&amp;gt;&amp;gt;Linked Servers&quot; Right click on the same and provide all the parameters of server or as an alternate you can run following command.&lt;br /&gt;
&lt;br /&gt;
EXEC sp_addlinkedserver&lt;br /&gt;
@server = &#39;db1&#39;,&lt;br /&gt;
@srvproduct = &#39;SQLServer OLEDB Provider&#39;,&lt;br /&gt;
&amp;nbsp;@provider = &#39;SQLOLEDB&#39;,&lt;br /&gt;
&amp;nbsp;@datasrc = &#39;server2&#39;,&lt;br /&gt;
&amp;nbsp;@provstr=&#39;User Id=sa; Password=abc&#39;&lt;br /&gt;
&lt;br /&gt;
The above command parameters:-&lt;br /&gt;
&amp;nbsp;@server- An identification name of server.&lt;br /&gt;
@datasrc- Your server instance name or IP.&lt;br /&gt;
&lt;br /&gt;
Your SQL will look like:-&lt;br /&gt;
Select * from db1.dbname.dbo.tablename&lt;br /&gt;
&lt;br /&gt;
If sometimes the server will get changed, the above statement gives you the option to change the user name, password and server at any points of time without effecting the relevant SQL and SP written the basis of same.&lt;br /&gt;
&lt;br /&gt;
Second Method (You can use the same if you does not have admin rights to add Linked server)&lt;br /&gt;
&lt;br /&gt;
SELECT&amp;nbsp;&amp;nbsp; *&lt;br /&gt;
FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPENDATASOURCE(&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;SQLOLEDB&#39;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Data Source=Server2;User ID=sa;Password=abc&#39;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ).dbname.dbo.tablename&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
In the above case you have to hard code all the parameters which you have to change in all the SQL and SP if something will get changed in future. So, I prefer to use Linked Server &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1162633525475393916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1162633525475393916' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1162633525475393916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1162633525475393916'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2011/03/how-to-select-data-from-another-sql.html' title='How to select data from another sql server'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-3310447841611902429</id><published>2011-02-03T07:08:00.000-08:00</published><updated>2011-02-03T07:08:39.278-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="windows application"/><title type='text'>How to resolve &quot;crdb_adoplus.dl&quot; issue</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;With the launch of VS 2010, we start using VS 2010 and used the new improved IDE and features of VS 2010.&lt;br /&gt;
&lt;br /&gt;
While woring with a windows based application we have requirement to use Crystal Report. We are able to add and design a new Crystal Report without facing any problem.&lt;br /&gt;
&lt;br /&gt;
After writing the code to show data, we start getting a unique problem of &quot;crdb_adoplus.dl&quot;. We searched for many solution and finally find the solution.&lt;br /&gt;
&lt;br /&gt;
We added the following attributes in app.config&lt;br /&gt;
&lt;br /&gt;
&amp;lt;startup useLegacyV2RuntimeActivationPolicy=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.0&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/startup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, the final app.config will be :-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;
&amp;lt;startup useLegacyV2RuntimeActivationPolicy=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.0&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/startup&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reference : &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://social.msdn.microsoft.com/Forums/eu/vscrystalreports/thread/2503389c-6d25-48d3-bb15-25ed67f52f21&quot;&gt;http://social.msdn.microsoft.com/Forums/eu/vscrystalreports/thread/2503389c-6d25-48d3-bb15-25ed67f52f21&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/3310447841611902429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/3310447841611902429' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3310447841611902429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3310447841611902429'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2011/02/how-to-resolve-crdbadoplusdl-issue.html' title='How to resolve &quot;crdb_adoplus.dl&quot; issue'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-5327561806108835525</id><published>2010-12-24T00:05:00.000-08:00</published><updated>2010-12-24T00:05:22.317-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Client Side"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="FileUploading"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="SaveAs"/><category scheme="http://www.blogger.com/atom/ns#" term="Uploading"/><category scheme="http://www.blogger.com/atom/ns#" term="Validations"/><category scheme="http://www.blogger.com/atom/ns#" term="Web.config"/><title type='text'>How to set max limt of File Upload in Asp.net</title><content type='html'>Many times I faced the same problem with all my applications, that is Max size of file to be uploaded to server.&lt;br /&gt;
&lt;br /&gt;
By default, the maximum size limit of a file to be uploaded to a server using the ASP.NET FileUpload control is 4MB. You cannot upload anything that is larger than this limit. &lt;br /&gt;
&lt;br /&gt;
If you wants to upload a file more the size of 4 MB which is by default, you have to make some changes in the application&#39;s web.config:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;lt;system.web&amp;gt;&lt;br /&gt;
&amp;lt;httpRuntime maxRequestLength=&quot;xxx&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/system.web&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Below is the small description of the parameters attributes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;maxRequestLength&lt;/i&gt;&lt;/b&gt; - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is &quot;4096&quot; (4 MB). Max value is &quot;1048576&quot; (1 GB) for .NET Framework 1.0/1.1 and &quot;2097151&quot; (2 GB) for .NET Framework 2.0.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;i&gt;executionTimeout&lt;/i&gt;&lt;/b&gt; - Attribute indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by the application. The executionTimeout value should always be longer than the amount of time that the upload process can take.</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/5327561806108835525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/5327561806108835525' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/5327561806108835525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/5327561806108835525'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/12/how-to-set-max-limt-of-file-upload-in.html' title='How to set max limt of File Upload in Asp.net'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-3386541630048298679</id><published>2010-04-15T04:39:00.000-07:00</published><updated>2010-04-15T04:39:03.864-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Browser compatible"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="DateTime"/><title type='text'>How to Get/Set date time according to Different Time zones in C#</title><content type='html'>&lt;a href=&quot;http://www.4shared.com/file/GbYoHLMu/AnItSolutionTimeZones.html&quot;&gt;&lt;img src=&quot;http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png&quot; alt=&quot;download&quot;/&gt;Download code example&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In an Asp.net application I have developed a Forum in which I have requirement to show date and time according to the time zone of PC on which it is running, I had searched for too many examples on but all are using too complex java scripts and other methods to convert time into local time zone.&lt;br /&gt;
&lt;br /&gt;
Finally I decided to make my own solution for this problem&lt;br /&gt;
My solution is using “TimeZoneInfo” to convert the data to local time zone, this class allow me to convert time according to any time zone, but again I got another problem which is how to take time zone of browser. Again I search on net and finally come out with a code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function genarateDateValue()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var d = new Date()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var str=d.toString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i = str.indexOf(&quot;+&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var j = str.length- i;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str=str.substring(i, i+5);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setCookie(&quot;narender&quot;,str,365);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function setCookie(c_name,value,expiredays)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var exdate=new Date();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exdate.setDate(exdate.getDate()+expiredays);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.cookie=c_name+ &quot;=&quot; +escape(value)+((expiredays==null) ? &quot;&quot; : &quot;;expires=&quot;+exdate.toGMTString());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Sql Server still there is no method to covert from one time zone to another but My Sql Support converting date time according to provided time zone. &lt;br /&gt;
Following is the simple code runs on My Sql Prompt:-&lt;br /&gt;
CONVERT_TZ(dt,from_tz,to_tz)&lt;br /&gt;
CONVERT_TZ() converts a datetime value dt from the time zone given by from_tz to the time zone given by to_tz and returns the resulting value. This function returns NULL if the arguments are invalid.&lt;br /&gt;
If the value falls out of the supported range of the TIMESTAMP type when converted from from_tz to UTC, no conversion occurs. &lt;br /&gt;
mysql&amp;gt; SELECT CONVERT_TZ(&#39;2004-01-01 12:00:00&#39;,&#39;GMT&#39;,&#39;MET&#39;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &#39;2004-01-01 13:00:00&#39;&lt;br /&gt;
mysql&amp;gt; SELECT CONVERT_TZ(&#39;2004-01-01 12:00:00&#39;,&#39;+00:00&#39;,&#39;+10:00&#39;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &#39;2004-01-01 22:00:00&#39;&lt;br /&gt;
&lt;br /&gt;
Above is the method which we can use in My Sql which will return all the values from Database itself but if we are using Sql server we need to write our own code to convert time zone in C# code.&lt;br /&gt;
You can also download this code from link provided on top on this post.&lt;br /&gt;
public string DateFormat(string str)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReadOnlyCollection&amp;lt;TimeZoneInfo&amp;gt; timeZones = TimeZoneInfo.GetSystemTimeZones();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (TimeZoneInfo timeZone in timeZones)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeSpan offsetFromUtc = timeZone.BaseUtcOffset;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string offsetString;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string strHours = string.Empty;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string strMinutes = string.Empty;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strHours = offsetFromUtc.Hours.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strMinutes = offsetFromUtc.Minutes.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strMinutes.Length == 1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strMinutes = &quot;0&quot; + strMinutes;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strHours.Length == 1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strHours = &quot;0&quot; + strHours;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Convert.ToInt32(offsetFromUtc.Hours) &amp;gt;= 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strHours = &quot;+&quot; + strHours;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offsetString = strHours + strMinutes;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Request.Cookies[&quot;narender&quot;] != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Request.Cookies[&quot;narender&quot;].Value.ToString() == offsetString)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (str != &quot;&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime thisTime = Convert.ToDateTime(str);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeZoneInfo tst1 = TimeZoneInfo.FindSystemTimeZoneById(timeZone.Id);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime tstTime1 = TimeZoneInfo.ConvertTime(thisTime, TimeZoneInfo.Local, tst1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str = Convert.ToDateTime(tstTime1).ToString(&quot;dddd,MMMM dd,yyyy hh:mm:ss tt&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return str;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return str;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/3386541630048298679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/3386541630048298679' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3386541630048298679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3386541630048298679'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/04/how-to-getset-date-time-according-to.html' title='How to Get/Set date time according to Different Time zones in C#'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-4751914716598300966</id><published>2010-03-27T04:12:00.000-07:00</published><updated>2010-03-27T04:28:36.958-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Application Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Sharing"/><category scheme="http://www.blogger.com/atom/ns#" term="Desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Files Sharing"/><category scheme="http://www.blogger.com/atom/ns#" term="FileUploading"/><category scheme="http://www.blogger.com/atom/ns#" term="Uploading"/><title type='text'>How to zip a file or folder using C#</title><content type='html'>&lt;a href=&quot;http://www.4shared.com/file/250511543/9c4c0fc1/AnItSolutionZipFile.html&quot;&gt;&lt;img src=&quot;http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png&quot; alt=&quot;download&quot; /&gt;Download code example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I had searched a lot to make files zip using c#, all the solution provided only support to zip a single file but my requirement is to zip a directory selected by used, I had tried so many utilities but unfortunately all does not works for me.&lt;br /&gt;&lt;br /&gt;Finally I found a solution which is using Java utility to zip file. This solution is quite easy to implement and debug.&lt;br /&gt;&lt;br /&gt;To implement this solution you need to add reference of &lt;span style=&quot;font-weight: bold;&quot;&gt;“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vjslib.dll”&lt;/span&gt; to your application.&lt;a href=&quot;http://www.4shared.com/file/250511543/9c4c0fc1/AnItSolutionZipFile.html&quot;&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/4751914716598300966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/4751914716598300966' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/4751914716598300966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/4751914716598300966'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/03/how-to-zip-file-or-folder-using-c.html' title='How to zip a file or folder using C#'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-7568517323003165217</id><published>2010-02-20T03:24:00.000-08:00</published><updated>2010-02-20T03:36:20.522-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Browser compatible"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Client Side"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Validations"/><title type='text'>How to pass server values to Javascript using Eval()</title><content type='html'>In my application I have a target to show message if user does not have permission to navigate to another page. I can do this by using server code but it will make a round trip to server and make a bad user experience so, I decided to use java script.&lt;br /&gt;&lt;br /&gt;Following is the function of Java Script&lt;br /&gt;&lt;br /&gt;&amp;lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;function func_Message(obj)&lt;br /&gt;{   &lt;br /&gt;    if (parseFloat(obj)&amp;gt;0)   &lt;br /&gt;    {&lt;br /&gt;        return true;&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        alert(&quot;Please assign a value before viewing the details&quot;);&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And following is the code of Link Button from where I am passing value to Java Script Function&lt;br /&gt;&lt;br /&gt;                                &amp;lt;asp:LinkButton ID=&quot;lnk_Details&quot; runat=&quot;server&quot; Text=&quot;Details&quot; CommandArgument=&#39;&amp;lt;%# Eval(&quot;festi_id&quot;) +&quot;~&quot; + Eval(&quot;user_id&quot;) %&amp;gt;&#39;&lt;br /&gt;                                    CommandName=&quot;ViewDetails&quot; OnClientClick=&#39;&amp;lt;%# &quot;return func_Message(&quot; + Eval(&quot;user_id&quot;) + &quot;);&quot;%&amp;gt;&#39;&amp;gt;&amp;lt;/asp:LinkButton&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/7568517323003165217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/7568517323003165217' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7568517323003165217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/7568517323003165217'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/02/how-to-pass-server-values-to-javascript.html' title='How to pass server values to Javascript using Eval()'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-4217480142535380991</id><published>2010-02-20T01:24:00.000-08:00</published><updated>2010-04-06T23:50:10.025-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Application Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><category scheme="http://www.blogger.com/atom/ns#" term="User Defined Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Validations"/><title type='text'>Disbale JIT in .net / Application level Exception handling in .net</title><content type='html'>&lt;a href=&quot;http://www.4shared.com/file/225871583/5bda800d/JITHandling.html&quot;&gt;&lt;img src=&quot;http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png&quot; alt=&quot;download&quot; /&gt;Download Code Example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I was developing windows application for a well known company of World. This application was in C#.net 2005.&lt;br /&gt;&lt;br /&gt;As per requirement I have to show user defined message whenever an Exception occurs in the application.&lt;br /&gt;&lt;br /&gt;The answer is very simply write a simple Try{},Catch{} statement to handle exception.&lt;br /&gt;Suppose I have a code of 1000 line unwanted code and error handling creates extra thread while executing the application. I had search on the internet and found a solution to disable the JIT debugger. It works but still it is showing the application information related to functions etc. used in the code.&lt;br /&gt;&lt;br /&gt;Now, a major issue had risen from client, i.e. he don’t want to show JIT information to user  he wants to show his own message whenever any Exception occurs.&lt;br /&gt;&lt;br /&gt;Offf…. Now that’s the task to which needs to done. I cannot use Try{},Catch{} as  this decrease the application performance. Finally I came to the solution. I had wired an event with application to handle application error. Here is the code.&lt;br /&gt;&lt;br /&gt;static void Main()&lt;br /&gt;    {    &lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;            Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);&lt;/span&gt;&lt;br /&gt;        Application.EnableVisualStyles();&lt;br /&gt;        Application.SetCompatibleTextRenderingDefault(false);&lt;br /&gt;        Application.Run(new Form1());&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;    static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;            MessageBox.Show(&quot;Illegal operation or command.&quot;, &quot;Illegal operation&quot;,  MessageBoxButtons.OK, MessageBoxIcon.Warning);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;        }&lt;/span&gt;&lt;br /&gt;Now, run your code and click on the button, it will show are exception while you are running the application within the .net environment.&lt;br /&gt;&lt;br /&gt;Now browser the directory and Run you EXE file and again click in the button, &lt;span style=&quot;font-weight: bold;&quot;&gt;now it will not show exception rather show the message which you wants to display.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a good approach it will show exception and source in while debugging and show and user defined message in EXE&lt;br /&gt;&lt;a href=&quot;http://www.4shared.com/file/225871583/5bda800d/JITHandling.html&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/4217480142535380991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/4217480142535380991' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/4217480142535380991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/4217480142535380991'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/02/disbale-jit-in-net-application-level.html' title='Disbale JIT in .net / Application level Exception handling in .net'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-6319182260062122410</id><published>2010-02-09T02:55:00.000-08:00</published><updated>2010-02-09T03:52:48.853-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Back Up"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Configure"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>How to alter Auto Increment field in Sql server</title><content type='html'>It is not possible to remove Auto Increment field using Alter command in Sql Server.&lt;br /&gt;&lt;br /&gt;What we can use is &lt;span style=&quot;font-weight: bold;&quot;&gt;SET IDENTITY_INSERT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Take this following example this creates a table with auto increment field and still insert data to the same.&lt;br /&gt;&lt;br /&gt;Generally if you try to insert the data into auto increment field it will through error.&lt;br /&gt;&lt;br /&gt;But if we use &lt;span style=&quot;font-weight: bold;&quot;&gt;SET IDENTITY_INSERT &amp;lt;Table Name&amp;gt;ON&lt;/span&gt; it will allow you to insert data into auto increment field.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Note:&lt;/span&gt; Make sure after completing this operation you set the value to &lt;span style=&quot;font-weight: bold;&quot;&gt;SET IDENTITY_INSERT &amp;lt;Table Name&amp;gt;OFF&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--Create table and its columns&lt;br /&gt;CREATE TABLE [test].[Table_1] (&lt;br /&gt;    [Id][int] NOT NULL IDENTITY (1, 1),&lt;br /&gt;    [Name][nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL);&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;ALTER TABLE [test].[Table_1] ADD CONSTRAINT [PK_Table_1] PRIMARY KEY CLUSTERED ([Id])&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;SET IDENTITY_INSERT [test].[Table_1] ON&lt;br /&gt;GO&lt;br /&gt;INSERT INTO [test].[Table_1] ([Id], [Name])&lt;br /&gt;    VALUES (1, &#39;Narender&#39;)&lt;br /&gt;&lt;br /&gt;GO&lt;br /&gt;INSERT INTO [test].[Table_1] ([Id], [Name])&lt;br /&gt;    VALUES (3, &#39;Rohit&#39;)&lt;br /&gt;&lt;br /&gt;GO&lt;br /&gt;INSERT INTO [test].[Table_1] ([Id], [Name])&lt;br /&gt;    VALUES (4, &#39;Mohit&#39;)&lt;br /&gt;&lt;br /&gt;GO&lt;br /&gt;INSERT INTO [test].[Table_1] ([Id], [Name])&lt;br /&gt;    VALUES (5, &#39;Shipra&#39;)&lt;br /&gt;&lt;br /&gt;GO&lt;br /&gt;SET IDENTITY_INSERT [test].[Table_1] OFF&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;The above example simply insert the data into table without incrementing the  values and keep the error shut..&lt;br /&gt;&lt;br /&gt;If you try to  insert any data after &lt;span style=&quot;font-weight: bold;&quot;&gt;SET IDENTITY_INSERT [test].[Table_1] OFF&lt;/span&gt; it will through an error.</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/6319182260062122410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/6319182260062122410' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/6319182260062122410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/6319182260062122410'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/02/how-to-alter-auto-increment-field-in.html' title='How to alter Auto Increment field in Sql server'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-2150087561538683859</id><published>2010-01-19T23:04:00.000-08:00</published><updated>2010-01-19T23:05:07.036-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Error"/><title type='text'>C# too many database connections error</title><content type='html'>Every database is having some number of connection limits which you can increase up to an extend.&lt;br /&gt;&lt;br /&gt;But database can support up to an number of connections.&lt;br /&gt;&lt;br /&gt;This error occurs when we open a connection and forget to close that. Verify each line of your code and make sure you had closed the connection after completing your database operations.&lt;br /&gt;&lt;br /&gt;I had faced this error in C# My sql application. I had crossed verify my code and find a code where I am not closing my connection after completing my operations. I had simply write &lt;span style=&quot;font-weight: bold;&quot;&gt;connection.Close();&lt;/span&gt; and it had worked.</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/2150087561538683859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/2150087561538683859' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2150087561538683859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/2150087561538683859'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2010/01/c-too-many-database-connections-error.html' title='C# too many database connections error'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-5135481617876753831</id><published>2009-12-29T22:17:00.000-08:00</published><updated>2009-12-29T22:27:38.768-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- III</title><content type='html'>&lt;div style=&quot;text-align: center; font-weight: bold;&quot;&gt;Date Functions&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Date addition&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - (use +)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - DATEADD&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Function - Date subtraction&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - (use -)&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - DATEDIFF&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Function - Last day of month&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -                     LAST_DAY&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - N/A&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;Function -Time zone conversion&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -                     NEW_TIME&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                     N/A&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;font-style: italic;&quot;&gt;Function -First weekday after date&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -                     NEXT_DAY&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                     N/A&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert date to string&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -TO_CHAR&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - DATENAME&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert date to number&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -TO_NUMBER(TO_CHAR())&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - TO_NUMBER(TO_CHAR())&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert string to date&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -TO_NUMBER(TO_CHAR())&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - CAST&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Get current date and time&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -SYSDATE&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - GETDATE()&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Now()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/5135481617876753831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/5135481617876753831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/5135481617876753831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/5135481617876753831'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/12/sql-function-referenceoracle-vssql_29.html' title='SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- III'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-1493465458919022846</id><published>2009-12-29T22:01:00.000-08:00</published><updated>2009-12-29T22:28:39.606-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- II</title><content type='html'>&lt;div style=&quot;text-align: center; font-weight: bold;&quot;&gt;String Functions&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Convert character to ASCII&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - ASCII&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - ASCII&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - ASCII&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -String concatenate&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - CONCAT&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - (expression + expression)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - CONCAT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert ASCII to character&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - CHR&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - CHAR&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - CONCAT&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Return starting point of character in character string (from left)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - INSTR&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - CHARINDEX&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - INSTR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert characters to lowercase&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - LOWER&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - LOWER&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - LOWER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Convert characters to uppercase&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - UPPER&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server - UPPER&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - UPPER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Pad left side of character string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - LPAD&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                     N/A&lt;/span&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - LPAD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Remove leading blank spaces&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - LTRIM&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                     LTRIM&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - LTRIM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Remove trailing blank spaces&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - RTRIM&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -RTRIM&lt;/span&gt;&lt;br /&gt;     &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - RTRIM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Starting point of pattern in character string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - INSTR&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -PATINDEX&lt;/span&gt;&lt;br /&gt;      &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - INSTR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Repeat character string multiple times&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - RPAD&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -REPLICATE&lt;/span&gt;&lt;br /&gt;       &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - RPAD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Phonetic representation of character string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - SOUNDEX&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -SOUNDEX&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - SOUNDEX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -String of repeated spaces&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - RPAD&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;           SQL Server -SPACE&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;                            My Sql - RPAD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -Character data converted from numeric data&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - TO_CHAR&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -STR&lt;/span&gt;&lt;br /&gt;          &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function -            Substring&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - SUBSTR&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -SUBSTRING&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - MID&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Replace characters&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle - REPLACE&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -STUFF&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - REPLACE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Capitalize first letter of each word in string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -             INITCAP&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -N/A&lt;/span&gt;&lt;br /&gt;             &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Translate character string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -TRANSLATE&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -N/A&lt;/span&gt;&lt;br /&gt;              &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Length of character string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -LENGTH&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                    DATALENGTH or LEN&lt;/span&gt;&lt;br /&gt;               &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     LENGTH&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Greatest character string in list&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -GREATEST&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                    N/A&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Least character string in list&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -LEAST&lt;/span&gt;&lt;br /&gt;                 &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                    N/A&lt;/span&gt;&lt;br /&gt;                 &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql -                     Need To Update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Function - Convert string if NULL&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Oracle -NVL&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;font-weight: normal;&quot;&gt;SQL Server -                                        ISNULL&lt;/span&gt;&lt;br /&gt;                  &lt;span style=&quot;font-weight: normal;&quot;&gt;                 My Sql - Need To Update&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://an-it-solution.blogspot.com/2009/12/sql-function-referenceoracle-vssql_29.html&quot;&gt;Visit Part III (Date Functions)&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/1493465458919022846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/1493465458919022846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1493465458919022846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/1493465458919022846'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/12/sql-function-referenceoracle-vssql.html' title='SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- II'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-9088817099876727168</id><published>2009-11-23T00:25:00.000-08:00</published><updated>2009-12-29T22:16:59.683-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><title type='text'>SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- I</title><content type='html'>Generally the major issue we face while development is the availability of common functions in different database(s).&lt;br /&gt;&lt;br /&gt;I am facing this issue from last so many years. Then I had start preparing a table for common functions of different database(s).&lt;br /&gt;&lt;br /&gt;The commonly used databases are Oracle, Sql Server and My Sql. Their is so many other database(s) are also available but commonly I works on these database(s) only.&lt;br /&gt;&lt;br /&gt;Following is the common list of functions in different database(s):-&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center; font-weight: bold;&quot;&gt;Math Functions&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Absolute value&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - ABS&lt;br /&gt;SQL Server - ABS&lt;br /&gt;                My Sql - ABS&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Arc cosine&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - ACOS&lt;br /&gt;SQL Server - ACOS&lt;br /&gt;                 My Sql - ACOS&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Arc sine&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - ASIN&lt;br /&gt;SQL Server - ASIN&lt;br /&gt;                  My Sql - ASIN&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Arc tangent of n&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - ATAN&lt;br /&gt;SQL Server - ATAN&lt;br /&gt;                   My Sql - ATAN&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Arc tangent of n and m&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - ATAN2&lt;br /&gt;SQL Server - ATAN2&lt;br /&gt;                    My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Smallest integer &gt;= value&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - CEIL&lt;br /&gt; SQL Server - CEILING&lt;br /&gt;                     My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Cosine&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - COS&lt;br /&gt;  SQL Server - COS&lt;br /&gt;                      My Sql - COS&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Hyperbolic cosine&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - COSH&lt;br /&gt;   SQL Server - COT&lt;br /&gt;                       My Sql -  Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Exponential value&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - EXP&lt;br /&gt;    SQL Server - EXP&lt;br /&gt;                        My Sql -EXP&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Round down to nearest integer&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - FLOOR&lt;br /&gt;     SQL Server - FLOOR&lt;br /&gt;                         My Sql -FLOOR&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Natural logarithm&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - LN&lt;br /&gt;      SQL Server - LOG&lt;br /&gt;                          My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Logarithm, any base&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - LOG(N)&lt;br /&gt;       SQL Server - N/A&lt;br /&gt;                           My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Logarithm, base 10&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - LOG(10)&lt;br /&gt;        SQL Server - LOG10&lt;br /&gt;                            My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Modulus (remainder)&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Oracle - MOD&lt;br /&gt;         SQL Server -                     USE MODULO (%) OPERATOR&lt;br /&gt;                             My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Function - Power&lt;br /&gt;&lt;/span&gt;Oracle - POWER&lt;br /&gt;          SQL Server -                     POWER&lt;br /&gt;                              My Sql - POWER&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Random number&lt;/span&gt;&lt;br /&gt;Oracle -                     N/A&lt;br /&gt;           SQL Server - RAND&lt;br /&gt;                               My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Round&lt;/span&gt;&lt;br /&gt;Oracle - ROUND&lt;br /&gt;            SQL Server - ROUND&lt;br /&gt;                                My Sql - ROUND&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Sign of number&lt;/span&gt;&lt;br /&gt;Oracle - SIGN&lt;br /&gt;             SQL Server - SIGN&lt;br /&gt;                                 My Sql - SIGN&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Sine&lt;/span&gt;&lt;br /&gt;Oracle - SIN&lt;br /&gt;              SQL Server - SIN&lt;br /&gt;                                  My Sql - SIN&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Hyperbolic sine&lt;/span&gt;&lt;br /&gt;Oracle - SINH&lt;br /&gt;               SQL Server -                     N/A&lt;br /&gt;                                   My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Square root&lt;/span&gt;&lt;br /&gt; Oracle - SQRT&lt;br /&gt;                SQL Server -                     SQRT&lt;br /&gt;                                    My Sql - SQRT&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Tangent&lt;/span&gt;&lt;br /&gt;  Oracle - TAN&lt;br /&gt;                 SQL Server - TAN&lt;br /&gt;                                     My Sql - TAN&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Hyperbolic tangent&lt;/span&gt;&lt;br /&gt;   Oracle - TANH&lt;br /&gt;                  SQL Server - N/A&lt;br /&gt;                                      My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Truncate&lt;/span&gt;&lt;br /&gt;    Oracle - TRUNC&lt;br /&gt;                   SQL Server - N/A&lt;br /&gt;                                       My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Highest number in list&lt;/span&gt;&lt;br /&gt;     Oracle - GREATEST&lt;br /&gt;                    SQL Server - N/A&lt;br /&gt;                                        My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Lowest number in list&lt;/span&gt;&lt;br /&gt;      Oracle - LEAST&lt;br /&gt;                     SQL Server - N/A&lt;br /&gt;                                         My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Convert number if NULL&lt;/span&gt;&lt;br /&gt;Oracle - NVL&lt;br /&gt;                      SQL Server - ISNULL&lt;br /&gt;                                          My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Standard deviation&lt;/span&gt;&lt;br /&gt;Oracle - STDDEV&lt;br /&gt;                       SQL Server - STDDEV&lt;br /&gt;                                           My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;Function - Variance&lt;/span&gt;&lt;br /&gt;Oracle - VARIANCE&lt;br /&gt;                        SQL Server - VAR&lt;br /&gt;                                            My Sql - Please Suggest&lt;br /&gt;&lt;br /&gt;This is not the end of functions or post. I will post string and datetime functions in coming articles. :)&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://an-it-solution.blogspot.com/2009/12/sql-function-referenceoracle-vssql.html&quot;&gt;Visit Part II (String Functions)&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/9088817099876727168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/9088817099876727168' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/9088817099876727168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/9088817099876727168'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/11/sql-function-reference-oracle-vs-sql_23.html' title='SQL Function Reference:Oracle vs.SQL Server vs. My SQL Part- I'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-8679345066509579854</id><published>2009-11-11T00:00:00.000-08:00</published><updated>2009-11-11T00:09:07.261-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><title type='text'>How to get tables names in MySql (sysobjects in sql server)</title><content type='html'>In Sql server we have a table sysobjects which holds names of all the tables i.e. system and user tables.&lt;br /&gt;&lt;br /&gt;Like the same we have command “Show tables” which show all the tables of specified database.&lt;br /&gt;&lt;br /&gt;Syntax&lt;br /&gt;Show Tables from &amp;lt;databasename&amp;gt;&lt;br /&gt;&lt;br /&gt;Here is an example.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SHOW TABLES FROM MySql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you had already select a database you can only use&lt;br /&gt;Show tables to show all the tables in the database. For ex. Select database MySql and in Sql command window enter following text&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;SHOW TABLES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And click on Run.&lt;br /&gt;&lt;br /&gt;It will show all the tables which is avalible in the list</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/8679345066509579854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/8679345066509579854' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/8679345066509579854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/8679345066509579854'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/11/how-to-get-tables-names-in-mysql.html' title='How to get tables names in MySql (sysobjects in sql server)'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-3970391621756134566</id><published>2009-08-13T23:52:00.000-07:00</published><updated>2010-04-06T23:52:04.824-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Back Up"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="My Sql"/><title type='text'>How to take back up of my sql database using C#</title><content type='html'>&lt;a href=&quot;http://www.4shared.com/file/124947911/5b6162d4/AnItSolutionMySqlBackup.html&quot;&gt;&lt;img src=&quot;http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png&quot; alt=&quot;download&quot; /&gt;You can also download running code.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Taking a back up of my sql using C# is very easy but this also be termed as tricky backup. Like Sql server my sql does not provide built in stored procedures to take back up. For back up my sql use a Exe file named “mysqldump.exe”&lt;br /&gt;&lt;br /&gt;You will find this Exe file in “C:\Program Files\MySQL\MySQL Server 5.0\bin” folder of mySql.&lt;br /&gt;&lt;br /&gt;This file takes so many parameters for different options. But my task is to simply take a backup of single database&lt;br /&gt;&lt;br /&gt;To take a backup of single database following are the parameters&lt;br /&gt;&lt;br /&gt;mysqldump -u&amp;lt;usernane&amp;gt; -p &amp;lt;password&amp;gt; -h&amp;lt;servername or ip&amp;gt; &amp;lt;databasename&amp;gt; &amp;gt; &amp;lt;localtion to take backup&amp;gt;&lt;br /&gt;&lt;br /&gt;Please let me know if this helps you to perform your task easily.</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/3970391621756134566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/3970391621756134566' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3970391621756134566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/3970391621756134566'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/08/how-to-take-back-up-of-my-sql-database.html' title='How to take back up of my sql database using C#'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4318965216733027282.post-6382212660768988172</id><published>2009-07-17T01:29:00.000-07:00</published><updated>2010-04-06T23:51:26.063-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Auto Complete"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Client Side"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Dot Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql server"/><category scheme="http://www.blogger.com/atom/ns#" term="Web site"/><title type='text'>Auto Complete Example in Asp.net C# Using JQuery</title><content type='html'>&lt;a href=&quot;http://www.4shared.com/file/118435695/7211012a/EngMohammed_Auto-Complete_ASPNET_JQuery.html&quot;&gt;&lt;img src=&quot;http://i540.photobucket.com/albums/gg331/narendersinghkahlon/download.png&quot; alt=&quot;download&quot;/&gt;Download  Running Code Supporting JQuery&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Before writing this post I had written one another post which is using a pure JavaScript to show Auto complete or Auto delete example.&lt;br /&gt;&lt;br /&gt;My previous example is not using Jquery which is a famous and reliable way to present your data.&lt;br /&gt;&lt;br /&gt;One of the drawback of my previous example is it will become slow as I have to load a bulk data for auto complete box.&lt;br /&gt;&lt;br /&gt;I had received many comments on this post, some of them had appreciated and some of them had suggested using Jquery.&lt;br /&gt;&lt;br /&gt;One of my great readers had given an example of Jquey which I am posting to help you all. So, before posting this example I would like to say thanks to my reader &lt;span style=&quot;font-weight: bold;&quot;&gt;Eng. Mohammed Ibrahim &lt;/span&gt;who had suggested and helped me to help others.&lt;br /&gt;&lt;a href=&quot;http://www.4shared.com/file/118435695/7211012a/EngMohammed_Auto-Complete_ASPNET_JQuery.html&quot;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.anitsolution.com/feeds/6382212660768988172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4318965216733027282/6382212660768988172' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/6382212660768988172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4318965216733027282/posts/default/6382212660768988172'/><link rel='alternate' type='text/html' href='http://blog.anitsolution.com/2009/07/auto-complete-example-in-aspnet-c-using.html' title='Auto Complete Example in Asp.net C# Using JQuery'/><author><name>An IT Solution</name><uri>http://www.blogger.com/profile/11201763791917815178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='8' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdFOQN1NfH5bq8tt8j1unZFJ2EcPEQShAK4-Sp7v27n8TZEbXVXpRwcjyOm5sNJkzm0VBClpM6dbXDN7l0ZI6c3q1CoTvDlaYuwU8ztVPhyxw2vfCOuVTwDRW2Pj5HBg/s220/logo.jpg'/></author><thr:total>2</thr:total></entry></feed>