To caps first letter of each word
Hi, could you please help me, i want to convert column's value in a specific order. currently i have a column(businessname). e.g. i have a value in that column like "KESSTECH IT SOLUTIONS GH LTD" then...
View ArticleNULL Value
When i am running a SP i am getting an output multiple times for a particular Id. Ex Below: Customer ProductCategory SPARE_PART sRevisionLevel sPartNumber IBIBlockID sEquipmentNumber Amazon.com...
View Articlealter column with default value
alter table enquiry alter column RejectReson int default 0 I want alter the column data type with default value zero,but it is not happening.
View Articlecustomized quarter calculation in sql
Hi Team, We have got a customized quarter list from client which we need to take reference to get data in SQL. Could you please help. 30-Oct 29-Jan AS Quarter1 30-Jan 30-Apr AS Quarter2 01-May 30-Jul...
View ArticleParameters Sniffing
Hi, I have a SP which runs fast without parameters but when i define parameters like @customer and @location and then run the SP it takes lots of time to execute. Can someone help me on this?
View ArticleOR operator taking time
Hello, I have a SP which goes to long run by adding a OR statement in the where clause. Can someone help as how to resolve this?
View Articlecreate a table theough sp
i want create a table just like this-: declare @datetime datetime declare @date varchar(20) select @datetime=(GETDATE()-1) select @date=convert(varchar(10),@datetime,112) print @datetime print @date...
View ArticleLook up and Update
Hi All, I have one new table named IBC which contains the below columns: Model1 Model2 Model3 Model4 Model5 Model6 Model7 ResultingModel ResultingIBType ID I have one old table named XYZ which contains...
View ArticleI am trying to send the results of sqlquery to an email in excel sheet using...
The results of my query has 701 rows. but when executing the msdb.dbo.sp_send_dbmail. i am receiving the email in excel sheet but all the rows are not displaying in the excel sheet only top 40 rows are...
View ArticleCREATE TRACE for ONLY DML COMMANDS
how to enable trace for only DML statements which was executrd by only the sysadmin users
View ArticleFind the stored procedures which has table variable on it
i want to find the stored procedures,Just procedure name. which has table variable on it
View ArticleGender count for employees based on experience in incremental order
i have a table name 'users' with columns username ,userid,gender ,joiningdate i want report for male female gender count for based on joining date 0-6months,6-12months,1-2 years,2-3 years,4-5...
View ArticleInsert multiple column from one table into two coloums in another table
i have a tablename called emp EmpID Amount Empid1 Amount1 Empid2 Amount2 Empid3 Amount3 1 2000 2 2000 3 2000 4 2000 1 1500 2 1500 3 1500 4 3500 1 1000 2 1000 3 1000 4 1000 need to insert this table...
View ArticleCannot able to set email alert for high cpu usage alert in sql server
![alt text][1] email will trigger if i set falls below option but if i select rises above option it does not send emails i want to set email alert if cpu utilization goes to 60% and above (sql server...
View ArticleTranspose Rows to Columns
I have the table with this information. No. CPR Name Modules 1 80000 SS TT1 1 80000 SS TT2 1 80000 SS TT3 2 52222 MM TTMd 2 52222 MM TTGH 3 6666 BB YUH 3 6666 BB BBG I want the data to be transpose as...
View Article