Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

Passing different values

Hi All, I am passing a parameter as @col1. I need to set col3 to 100 if @col1 =1 else col3 will be any value that is passed in. Is there any way, I can remove the else statement and write one update...

View Article


Update statement

Hi All, I am passing three date variables in the stored procedure. Depending on whichever variable has value in it, it will be assigned to the Testdate column of the testable. Only one variable will...

View Article


Trigger on Table

Hi All, Please can I get some assistance with this trigger. I created the trigger and it's working. However, when I insert a new record in the payment table, it reduces all the patient_accountbalance...

View Article

passing a date value is not updating the table

Hi All, have the follwoing stored prcoedureCreate procedure Test( @TestDate1 smallDatetime = NULL, @TestDate2 smallDatetime = NULL, @TestDate3 smallDatetime = NULL,)ASUpdate TestTable Set @Col1 =...

View Article

Bugs in pivot

Hi,please check some bugs in pivotALTER PROCEDURE Emp_Shift1(@empcode INT,@FromDate datetime,@EndDate datetime)AS BEGIN--DROP TABLE #tCREATE TABLE #t( [Date] date, [Empid] INT, [shift] int,[shifttype]...

View Article


Using Condition in Select

hi,Trying to find the below conditionIf he is shift 1 shifttype 1 then the record comes from employee tableif he is shift 2 shifttype 4 then the record comes from shiftscheduler table So consider in...

View Article

Column Store and Segment Elimination with #Temp table Join

Hello SSC Members,I am not sure if many SSC members have started to use Column Store indexes but I have a question on if this is possible or perhaps another way to write the SQL.We currently have a...

View Article

CALCULO DE PORCENTAGEM COM CONDIÇÕES

good afternoon ,I'm hum code that brings me the values ​​of the fields Table , however When I " * 100 / " it 's all me 100 % Being que value would be the amounts of ordserv . generated /...

View Article


trying to order an alert i created that sends out blocking spids

IF Object_id('tempdb..#blocked') IS NOT NULL DROP TABLE #blockedselect '201' spid,'200' BlockingSPIDinto #blockedunion allselect '199','202'union allselect '202','0'union allselect '200','0'union...

View Article


trying to use ssdt to deploy to a sub directory

Hi Again I am using ssdt 2015 to create sample reports , one thing I cannot seem to do is deploy to a sub folder. I have a report and I deployit to the ssrs server...

View Article

Simple SQL challenge - who can solve

Hi,Simple little requirement.Need to display first date of each of the 12 months prior to current date, i.e. "Last Twelve Months" for reporting purposes.i.e. today is 10th May 2016 so we need...

View Article

Openquery On VIEW No Data Return

Hi, I dont speak so much english...sorryI have a views and tables in a server Oracle, in my server (sql) I try to access by openquery, query works fine on table but view return only structure of...

View Article

Checking condition in 2 tables

i have 2 tables one is emp and another is emp1Step 1 : IN Stored procedure pass input empid,from_date and end_dateEx: EXEC shift1 9999,'2016-05-01','2016-05-20'First date it has to check for the entry...

View Article


Wood Dining Chairs For Sale UK

W.o.o.d D.i.n.i.n.g C.h.a.i.r.s F.o.r S.a.l.e U.K. G.o t.o s.o.l.i.d.w.o.o.d..b.e.d.s•c.o•u.k

View Article

Issue: 'Select Into' with identity column

Hi everybody. I noticed a strange behaviour using a 'select into' statement with an identity column in source table.Usually I put the identity field in a cast statement in order to avoid its...

View Article


T Sql Query

Good day Experts,I am new to Sql and i have a stored proc with a colomn name @BackupDrive2 nvarchar(1).The stored proc is fine as it is,However i was asked to add that BackupDrive2 to a query in ssrs...

View Article

LDAP-Authentification with SQL-Server

I have different Applications using VB 6.0, VB.NET and Compact Framework 3.5. Now my client demands LDAP-Authentification (Active Directory) for all of it.All Applications using the SQL-2014-Server and...

View Article


Go in SP

We never use GO at the end of SP in sql 2005 and we never had any issues from application.Now we migrated to sql 2014 and we are getting errors in application. When we use GO at the end of SP it goes...

View Article

Multi-Table Hierarchies in SSAS 2014 Tabular

is it possible to make a hierarchy out of multiple tables in SSAS 2014 Tabular? For example, let's say there is a Division table and a Department table. Each Division contains one or more Departments....

View Article

Furniture For Sale Kidderminster UK

F.u.r.n.i.t.u.r.e F.o.r S.a.l.e K.i.d.d.e.r.m.i.n.s.t.e.r U.K G.o t.o f.u.r.n.i.t.u.r.e.f.o.r.s.a.l.e.-.u.k.•.c.o.•.u.k

View Article
Browsing all 3145 articles
Browse latest View live