Help with SProc & SSRS
Hi experts,I need some ideas on how to best implement a report I am working on.There are 2 parts in this report – Client detailed Account transactions and a Summary to show a Sum of all the...
View ArticleSQL Transaction Lockout time period elapsed error
Hello everybody,Our team had decided to use transactions in a stored procedure. The master stored procedure calls several procedures to refresh the reporting tables. The transaction was added to ensure...
View ArticleNeed help in Getting Server CPU, Memory and Disk drive utilization and send...
Hello Friends,I need your help again for getting a script which can provide server cpu,memory and disk utilization and send an email with the plotted graph for 30 minutes interval for last 1 day....I...
View Articlefind total money of parent node of mlm tree according to a particular pattern...
<pre> hi friends actually i am working on a mlm project in which members are added in a tree pattern, and get the payment accordingly. My table structure is as follow: Id...
View Articlehow to know which is the latest differential backup on a single database
Hi,Please let me know what is the latest differential backup is taken on my database.
View ArticleRegarding Dynamic PIVOT in SQL Server 2005
i rare use PIVOT in sql server but now requirement is something that i have to use PIVOT. my table structure is something like CurDate Warranty_Info ------- -------------...
View ArticleERROR LOGGING IN STORED PROCEDURES
Hello, I need to build a error logging framework to have stepwise log. We are using SQL server 2008 R2.The requirements are to have detailed error logging in the stored procedures based on an input...
View ArticleWeird BCP thing error
Not sure if this is the right forum but I am having issues with BCP.exe. My out command is copying out 4 rows to a data file but my in command is only writing 2 of those rows to the database. Also...
View Articlecte advantage
I have a main data table?I am writing a sproc to get data from this table and have to do some calculation pivoting. Is it better to pull all the data I need at once in CTE and then pull from CTE to do...
View Articletransaction log drive full
Directory where sql server trsansaction logs are there is fullPlease suggestBest regards,Vishal
View Articleneeed help in query formation
hi guys I have an applicaation in which govt sector dept user sent file to another user... eg. home dept user sent 1 file to defence dept user. and there is facility that defence user will receive...
View ArticleT-SQL Performance Issue with UNION ALL
SQL Version: 2008 R2Problem: I have created a View (udvEEOReportSummary) using a UNION ALL to join the records from two Views. View #1 udvEEOMcHughHours runs in about 25 seconds if ran by itself....
View ArticleConverting UTC Time To Local Time in T-Sql
Hi All,I am getting DateTime in UTC time (UTC time (Coordinated Universal Time or Greenwich Mean Time)). I want to Convert this in my Local DateTime (Melbourne DateTime). How to achieve this in simple...
View Articlehow can i make the code below work in sql server 2012?
SELECT * FROM Employees ORDER BY CASE idWHEN id <1600 THEN 1WHEN id <1700 THEN 2WHEN id <2000 THEN 3END, lastname;sukai
View ArticleReuired sql assistance in msql 2008
Based on source1 & source2 data should be inserted / deleted in output tables. Initially these fields -fieldcd, field6cd,field7cd in ouptut tables will be inserted thru this code. Additionally,...
View Articlerestricting any loaner from borrowing unreturned Item
Hiii I have a loan table with 4 columns in SQL . GeneralID (items am loaning my frnds), LoanerID (People who long my staff), DateLoaned (a date I loaned a frnd an item) and DateReturned (a date he/she...
View ArticleExec storedprocedure results don't have header info?
I have requirement to send the weekly database size (day by day size) in the form of email attachment?i created sp with below :GO ALTER procedure [dbo].[GETDBSIZEWeeklyReport] as set nocount on select...
View ArticleCustom, partial distinct
Hello,I have following table which has repeated codes in the Code column for each names.How can I eliminate the rows justconsequently duplicated codes for each names?CREATE TABLE #T ( Name nvarchar(50)...
View Articleproblem handling single quotes
Hi,I am having an issue trying to pass single quotes:SET @ImpDirectory = 'C:\Users\doug\Documents\Projects\Wrapaway\Wrap History Files\1206\' SET @ImpAgentFile = 'agent.txt' SET @FldTerminator = '{'...
View ArticleHelp Constructing Update Satement
I am almost a complete newbie to the UPDATE statement. I have a SQL Server 2005 instance with two databases. I'll call one Hawk and one Eagle. Hawk has a table called HawkInfo. DDL Is as follows....
View Article