Inserting multiple record in one insert statement
CREATETABLE [dbo].[employee]([empid] [varchar](10)NULL,[empname] [varchar](100)NULL,[salary] [int] NULL,[mgrid] [varchar])There are following two ways.1.Insertinto employee...
View ArticleLearn SQL Queries --Part One
CREATETABLE [dbo].[employee]([empid] [varchar](10)NULL,[empname] [varchar](100)NULL,[salary] [int] NULL,[mgrid] [varchar]) CREATETABLE [dbo].[phone]([empid] [varchar](10)NULL,[phone] [varchar])...
View ArticleLINQ Basics
LINQ BASICS Language-Integrated Query (LINQ) is a new feature introduced in visual studio 2008 and .NET Framework 3.5. Developers can write the queries in the code to retrieve the data from various...
View ArticleDeveloping Will Power and Self Discipline
An effective method for developing and improving these abilities is to perform certain actions or activities, which you would rather avoid doing due to laziness, procrastination, weakness, shyness,...
View ArticleThe server has rejected the client credentials WCF Error NetTCpBinding
Hi,When I created my WCF Service and Host it on server I found following Error.“The server has rejected the client credentials”.I resolved it with following changes.1. At Server Side in Web.Config i...
View ArticleThe remote server returned an error: (415) Cannot process the message because...
Hi,I Created my WCF Service and it was working properly when i was making its service reference in my local machine.But the problem came when I hosted this WCF Service in the Production Server.When I...
View ArticleSteps to Host WCF Service with netTCPBinding in IIS 7.0
HiStep1. Add Non-HTTP Activation from Features Wizard.Step 2. Following services should be enabled for net.tcpNet.TCP Listener Adapter and Net TCP Port Sharing Service.Step 3. IIS should be enabled...
View ArticleLinq To SQL Step By Step in VB.Net
Hi,Following are steps to Linq To SQL Step By Step in VB.Net.Step 1. Create a New Web Project.Step 2.Add new item à Dataà Linq To SQL Classes.Name[ConDB.dbml]Step 3. Add DataBase à NorthWind.Add...
View ArticleHow to Restore SQL Server 2005 Suspect Database
EXEC sp_resetstatus 'yourDBname';ALTERDATABASE yourDBname SET EMERGENCYDBCC checkdb('yourDBname')ALTERDATABASE yourDBname SET SINGLE_USER WITHROLLBACK IMMEDIATEDBCC CheckDB ('yourDBname',...
View ArticleCollation issue : Cannot resolve the collation conflict between...
Hi,I faces issue Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI" in the equal to operation.My application is developed for English and Chinese...
View ArticleSearching text in Stored procedures
SELECT OBJECT_NAME(id) FROM syscommentsWHERE [text] LIKE '%ms_redo%'AND OBJECTPROPERTY(id, 'IsProcedure') = 1GROUP BY OBJECT_NAME(id)
View ArticleAlter table Change Data Type in SQL Server
Hi,Following are the few inportnat queries whih is needed when one need to alter table.1. Alter table and change data type.alter table tbldelegatesALTER COLUMN de_lastname VARCHAR(50)2. alter table add...
View ArticleSQL Server 2012 : New TSQL Features
New T-SQL Features in SQL Server 2012/* 1. IIF Function*/DECLARE@aint= 10;DECLARE@bint= 40;SELECTIIF(@a>@b,'TRUE','FALSE')ASResult;/* 2. CHoose Function*/SELECTCHOOSE(...
View ArticleWCF Tutorial -Contracts
WCF-ContractsWCF (Windows Foundation Communication) is a platform can be used to build service oriented applications.We can send data as asynchronous messages from one service endpoint to another. A...
View ArticleSql Server Function Returns date in YYYYMMDD Format
Create FUNCTION [dbo].[fn_YMDDate]( @dateParam varchar(10))RETURNS Varchar(10)ASBEGIN DECLARE @Return Varchar(10) Declare @YYYY varchar(4) Declare @MM varchar(2) Declare...
View ArticleLINQ Data Providers
LINQ Data ProvidersThe Following lists the core data types LINQ supports in the .Net FrameworkProviderDescriptionLINQ to ObjectsThe LINQ to Objects provider enables you to query in-memory collections...
View ArticleBasic LINQ Query
LINQ QueriesBasic LINQ Query OperatorsFrom (Specify the Data Source)In LINQ query first step is to specify the data source that you want to query.Dim custdata = from cust in...
View ArticleASP.NET Ajax framework failed to load client side framework
ASP.NET Ajax framework failed to load client side framework I face below errors at a same time.ASP.Net Ajax framework failed to load client side frameworkMicrosoft JScript runtime error: 'Sys' is...
View Article