Member Seraching in Cubes
Hello All,I have a specific member to search in a cube/perspective. I have the member name with me. All I need to know is if that member exists in dimension and hierarchy do we need to specify that...
View ArticleSplit into multiple rows after certain character
Hi,I need to remove the number and semicolon and # and just get the text and insert as two rows . CREATE TABLE #Split ( ID INT, Texts NVARCHAR(100) ) INSERT INTO #Split (ID,TExts) SELECT 1,'136;#BRZ...
View Articlejson search
we have json getting stored in one of the tables and how can we search inside the json.
View ArticleHow to join one table to another that needs pivoting?
Hi All,I've inherited a database that contains VMWare server information such as CPU, RAM, Disks, etc.And I need to run a monthly report that shows the server spec for each VM.VCenter is polled for...
View ArticleWhat data should be converted/formatted in DB, vs in-app?
Hi all,I see a few posts where it's mentioned that certain processing, like 24 to 12 hr Time should properly occur in the application layer.Is there an article or list of best practices about what...
View Articlesplit one column into two based on numbers (NOT PIVOT)
I have a column something like belowNumber1452234515235642162895631628742330245123314518313245263231458142I need to split into two columnsNumber A Number B14522345 3024512315235642 3145183116289563...
View ArticleLinked server timeout within a query
I know I can find out the status of a linked server using sp_testlinkedserver. However the query takes quite sometime until it returns "Login timeout expired". Is it possible to change the timeout for...
View ArticleFirst and Last data
from the below table I need the Last_data and last_data from 6 month. with different DB_nameso my output would look like :DB_name backup_start Backup_finishStock_any 8/1/2016 8/1/2016Stock_any 1/1/2017...
View ArticleDesing of a table and Hirerarchy - IP's
want to build a table, which contains different ip and there sub-net. when i pull the table i want to get result in way i know who os the root, who is the son's, and son on for example : 10.0.0.0...
View ArticleDuplicate data n times
Dear NG I have a table "Beginn" with a datefield (Datum), a Price field (Wert) and a counter field (CNT). The problem which I have is I need to create a loop which sets new values to datum, Wert while...
View ArticleImage data type
Hi Guys, I need to design a database for a website that will store logos and documents. My question is, what would be the best way to go about storing the images? Should I use file stream or store the...
View ArticleQuery help
Maybe my skull is a little too thick today but I cannot figure out why this is not grouping correctly: SELECT CAST(Coalesce (RIGHT(EDI_Batch_Number,4), 1325 ) AS VARCHAR(4)) AS 'Batch Number'...
View ArticleHow to extract overlapping date ranges from a table of date ranges
Would appreciate help and or hints to the following scenario:: Magazine subscriptions are registered on a per subscriber basis with subscription id, subscriber id, start date, and end date. A...
View ArticleWindowing function with conditions?
Hi, I have the table below: [code="sql"]CREATE TABLE [dbo].[ATABLE]( [EVENT_ID] [int] NOT NULL, [EVENT_RANK] [int] NULL, [MIN_AGE] [float] NULL, [MAX_AGE] [float] NULL ) ON [PRIMARY] GO INSERT...
View ArticleGROUP BY in SQL Server 2014
Hello all, The same query with a group by clause I try to run on SQL Server 2005 and on SQl Server 2014 but it seems that every time i run the same thing on SQL server 2014 gives me a different output...
View ArticleQuery help filling in dates and data
I have a data table and a calendar table. I need to fill in the gaps to have a row for each day. I need the dates to be filled in as well as to use the previous valid value for sequence and action....
View ArticleRestricting Data View
I have a situation where I need to give a login a restricted view of data in all tables in a database. Every table includes a "MemberID" column. What I need is a login that has full select access to...
View ArticleCheck for file existence and send email if no file found in SSIS
Hello, I'm using a script task to check for file existence in a folder. If the file found proceed with the data load, if not send an email to the users. if the file is found then it proceeds to data...
View ArticleHelp Eliminating Duplicate Data
I have a table in my database that has some product dimension information, however some of it is duplicated in a way and I want to eliminate the duplicates. The problem is that the duplication is not...
View Article