Query performance
Some of developers have made modifications to database structure like indexes and later observed that the performance of queries have degraded. As per the information of the developers all the changes...
View ArticleHow to call procedure from function. Getting error Invalid use of...
Hi!I am trying to call procedure from function but getting following error.Invalid use of side-effecting or time-dependent operator in 'INSERT EXEC' within a function.Actually I want table valued...
View ArticleLinked Server to File Folder Security Issue
Here is my Problem:1. I have sql 2008 R2 running on my LocalHost.2. Created Data Base [Customer].3. Created Linked Server [CUSTOMERLINK] USING Microsoft Jet 4.0 to link to Drive F:\Data which has DBF...
View ArticleHow can I return a bitmap image from a custom assembly to an SSRS report?
I am using the QRCode4CS class ([url=http://qrcode4cs.codeplex.com/releases/view/74015]http://qrcode4cs.codeplex.com/releases/view/74015[/url]) to generate QR codes.I can use the following code to...
View ArticleWill SQL Server 2014 Support to Read BLOB (Byte Array)
Hi,Will SQL Server 2014 Support to Read BLOB.As we see in oracle we have some concept called [b]DBMS_LOB[/b].Where the byte array data are stored in a BLOB data type and based on the size we can read...
View ArticleBig Data Tech Grand Slam - #1 Corporate Quiz on Big Data
Big Data Technology Grand Slam is an initiative of India Big Data Week 2014 (IBDW2014) and UNICOM to run India's most prestigious Corporate Quiz on Big Data Technologies.for more Details-...
View ArticleUpdating a column in one table from another table
We have two tables with names X and Y.X has a,b columns. And Y has c,d columns.I want to update b column in X table with the values from d column in Y table on condition X.a=Y.c.Can u help me with this...
View ArticleTransform data into column
Hi All,May any one help me in query for the below scenerio : I have data like this in the table :IntRecpieID strName intMealtypeID Total100 ‘A’ 1 20101 'B' 2 30100 'A' 3 40Desired Output...
View ArticlePredict the output
[code="sql"]DECLARE @NUMBER INT = 10DECLARE @DATA CHAR(1)='#'DECLARE @OTHERDATA CHAR(1)='@'DECLARE @SPACEDATA CHAR(1)=' ' DECLARE @TEXT VARCHAR(MAX)DECLARE @LEFT INT DECLARE @RIGHT INT = 1DECLARE...
View ArticlePerfromance Issue with the Query...
Hi everyone,I have written one sql which is having performance problem.This table is partitioned on EVENTDATE column and having 10 crs records in it.The block of qry which slow down I am posting here....
View ArticleSQL Function to convert date time to string
Hi Experts,please help me in writing a SQL Function as belowthe input parameter for function should be datetime of sql datetimeformatand out put should be a string = yyyymmdd1 or yyyymmdd2 the last...
View ArticleComparing string with date
Hi Experts,i have to write a where condition where i need to compare string with datei have 2 columns FROMDATE and TODATE with datatype varchar(9)the strings in the columns looks like YYYYMMDD+'1' or...
View ArticlePassing Facet Properties to the ExectuteSQL() Function of Policy Based Mgmt
Here's a sample ExecuteSQL statement for a policy based management Check Condition. In this scenario, the Facet is set to "Database"; which will cause it to run the check below once for each database...
View ArticleSubtotal when vendorcode changed.
Hi Experts,i need to write a stored procedure for a table with below columnsfor instance the table had 5 columns like VendorCode | UnitPrice | Qty | Total(UnitPrice*Qty)...
View ArticleNTLM Authentication using SQL Server ODBC driver on Linux
Hello,I'm trying to connect to SQL server 2012/2008 using SQL Server ODBC linux driver(version 11.0.2270.0). When i connect using Windows credentials, a kerberos based server connection is attempted....
View ArticleUNABLE TO RETRIEVE data while using between operator
Hi Experts,I came across a weird issue this morningwhile using Between operator am unable to retrieve data that starts with second option,example am using select * from USER where vendor [b]between 'N'...
View ArticlePlease help
enter------------------------------intvalue--------out----------------intvalue2014-02-05 08:56:51.230 -- 1----2014-02-05 08:57:05.990--- 22014-02-05 08:56:49.320--- 1---- 2014-02-05 08:57:03.490---...
View ArticleHierarchical order by TSQL
Dear Sircreate table Hierarchy(ParentID int,ChildID int)goinsert into Hierarchy values (101,1),(1,6),(101,2),(2,4),(2,5),(5,6),(5,7),(101,3),(3,5)Please refer the Hierarchical order Diagram in order to...
View ArticleWrapperSQl Script
Hi friends,I am trying to create a wrapper script for the SQL. I am trying to create a batch file, so that all the sql can be run together and can be directed to a flat file. will appreciate light to it.
View Articledense_rank
Team,Using of Dense_rank() and row_number will leads to any performance issue? if yes can please suggest other alternativeJohn
View Article