BCP reports no errors but inserts no rows
Hi all,I have a Job that creates .CSV files at predetermined intervals (the delimiter is a tabstop) and every 5 minutes I have to retrieve These files one at a time and Import them into the relevant...
View ArticleGet ProductConfig With Lowest Prise
Hi I Have 3 Tables Please Help me to Get This Result :ProductId - ProductConfigId (With Min Price) -MinPrice - HasGift1 > 3 > 70 > 12 > 4 > 700 > 13 > 7 > 820 > 0 5 > 9...
View ArticleSQL server 2014 MultidimensionalProject with oracle database
Hi All, I am very new to sql server and SSDT.I need to create reports for the application that build in ORACLE database. I have installed the oracle client in the server but now we needs to connect the...
View ArticleBetter Suggestion For Paging ?
We have This Query : SELECT * FROM VW_1 WHERE F1 Like '%|13|%' ORDER BY F2 DESC OFFSET (1 - 1) * 10 ROWS FETCH NEXT 10 ROWS ONLY SELECT ceiling(COUNT(*)/10.0) as pagecounter, COUNT(*) as itemcounter...
View ArticleMemory Optimised Tables and Indexes
I'm just beginning to experiment with memory optimised tables. I have two sets of near identical tables - one set normal, the other set memory optimised with DURABILITY=SCHEMA_ONLY - and am running...
View ArticleSuggestion for replace a function or method
We Have 2 Tables :1- Table Prod2- Table Group>>>>> every Prod May be on one or more GroupsWe have a view that is base of a page with search on fields. In this view we have one Record for...
View ArticleQuery to combine two tables based a third table!!
I have three tables A, B, C respectively. Table C is used to map table A and B. Three tables are below:Table...
View ArticleMigrating Sybase database to SQL Server 2014
Hello,Not sure if this is the right forum.I am working on solution on migrating Sybase database to SQL Server 2014 and have few questions and a quick response will be appreciated:1. Does SSMA support...
View ArticleLinking a Parameter to multiple values
Attempting to build a report were you can place a specific code in the parameter field and it will return all row values based on that particular code. I have a similar report that works great, but the...
View ArticleEntity Framework and Infinity
Hi!Working in a project using Entity Framework (Code First)...Until now the project has been connected to a (generated) SQL Server Compact 4.0 database,but now we want to connect to a SQL Server (at...
View ArticleHow to calculate Difference
I saved Table size in a log table . Then now I have These records :InfoDate ---- SizeMB ---- TableNameD1 ----------- 100 --------T1 D1 ----------- 250 --------T2 D1 ----------- 70 ---------T3 D1...
View Articlechange DATE format to DD/MMM/YYYY
I have created a table with a field Register_Date in DATE format. However, it results showed me 21/12/2008 I would like to change it to 21/Dec/2008 How do I change that using SQL command? I tried to...
View ArticleMMM DD YYY to YYYYMMDD
I have a column that is a datatype varchar(12) and is displaying dates as MMM DD YYY (i.e. "Jul 11 2014"). I need to get it into a yyyymmdd format (i.e. "20140711"). I have tried to...
View ArticleCreating CLR Functions in non-default dbo Schema
I have created several CLR functions which I have assigned to the schema 'fn', rather than the default 'dbo', via a post-deployment script.As far as I know, it is not possible to specify the schema...
View ArticleColumns List with and with out identity Column in a table
Hi, I have the following 2 Query's - case when Table has no Identity Column and other with identity Column . I am planning to make it to single Query .Could some one help in resolving this issue Thanks...
View ArticleConvert/Insert all files in a directory
My task is to convert jpeg's to binary and then insert them into a table called "images". I need to convert/insert all jpeg files in a directory. I'm able to accomplish the task if the files are...
View ArticleGenerate Records For gaps To Create A Chart for every Date
I want to generate diagram for score in every day - From Regdate For every User to now(But Users Have only scores in some...
View ArticleSQL Server 2014 Cube creation
Hi All,I am creating a cube for my appliation with the use of MSBI. I am using sql server 2012 and for the back end I connected with oracle database.Till creation of CUBE is goes smothly while...
View ArticleNested Cursor example
select * from empselect * from deptselect a.empno,a.ename,job,sal,b.deptno,b.dnamefrom emp ajoin dept bon a.deptno=b.deptnowhere a.deptno=10Declare @Empno int,@Ename nvarchar(20),@Job nvarchar(20),@Sal...
View ArticleConvert 6 digit letter to month and Year
Can any one share how to convert 6 digit number to mm/yyyy.Thanks in Advance.
View Article