Skip to content Skip to sidebar Skip to footer

Return First Day Of Financial Year(april 1st) T-sql

First Day of financial year is April 1st. T-SQL Query to return April 1st for the getdate() Financ… Read more Return First Day Of Financial Year(april 1st) T-sql

Scala Slick 3 High Query Latency

I am running a very simple query using Slick. The actual database call, according to the logs, only… Read more Scala Slick 3 High Query Latency

Sql Server Error: Maximum Number Of Prefixes. The Maximum Is 3. With Join Syntax

Trying to run a cross-server update: UPDATE ASILIVE.CustomerManagementSystem.dbo.Sessions SET ASILI… Read more Sql Server Error: Maximum Number Of Prefixes. The Maximum Is 3. With Join Syntax

Super Slow Query... What Have I Done Wrong?

You guys are amazing. I've posted here twice in the past couple of days - a new user - and I&#… Read more Super Slow Query... What Have I Done Wrong?

How To Pass Parameter With Quotation Marks

I can do this in my query: SELECT * FROM OPENROWSET(BULK 'C:\myPC.file', SINGLE_BLOB) … Read more How To Pass Parameter With Quotation Marks

What Will Append If The Maximum Value Of An Identity Column Is Reached?

Possible Duplicate: What happens to the primary key Id? when it goes over the limit? what will ap… Read more What Will Append If The Maximum Value Of An Identity Column Is Reached?

How To Delete All Table Records In Sqlite?

I get JSON value from a server and save the data into a database in Sqlite in Android, I create a d… Read more How To Delete All Table Records In Sqlite?

Fastest Random Selection Where Column X Is Y (null)

Currently I am using: SELECT * FROM table AS t1 JOIN ( SELECT (RAND() * (SELECT MAX(id) F… Read more Fastest Random Selection Where Column X Is Y (null)

Sqlcachedependency Via Service Broker Notifications - Select Sensitive Only On Particular Columns

Is it possible to define a Notification on SELECT, but in that way: the Broker would reset Cache on… Read more Sqlcachedependency Via Service Broker Notifications - Select Sensitive Only On Particular Columns

What Boolean Value Return Assign Integer Or String To A Variable

Im using user variables to emulate ROW_NUMBER() OVER (PARTITION BY `wsf_ref`, `type` ORDER BY `wsf… Read more What Boolean Value Return Assign Integer Or String To A Variable

How To Set Xact_abort Within Ado.net

How can I set XACT_ABORT to ON (or OFF) from within ADO.NET ? Solution 1: Execute SET XACT_ABORT O… Read more How To Set Xact_abort Within Ado.net

Add A Comma (,) In Oracle

Given this query: select distinct subject_key from mytable Result: subject_key ----------- 9089… Read more Add A Comma (,) In Oracle

Sqlite: Autoincrement Primary Key Questions

I have the following SQLite query: CREATE TABLE Logs ( Id integer IDENTITY (1, 1) not null CONSTRAI… Read more Sqlite: Autoincrement Primary Key Questions

Script Out Server Properties And Database Properties

MSSQL 2014 If possible, can someone provide the tsql to extract the settings from the pages of Serv… Read more Script Out Server Properties And Database Properties

Conflicting Changes With Code First Foreign Key In Entity Framework

im using an adapter to be able to plug interfaces rather than concrete types into dbcontext. the ad… Read more Conflicting Changes With Code First Foreign Key In Entity Framework

Sql Server 2008 "identity_insert Is On" Error On Insert

I have Locale_Code table in two different databases CP and PP here is the insert script of my table… Read more Sql Server 2008 "identity_insert Is On" Error On Insert

Sql Query Help - Multiple Joins

having trouble with this SQL query. Here's the situation: I have three tables structured as fol… Read more Sql Query Help - Multiple Joins

How To Use Delete With Except Clause?

I'm trying to do some ETL from some single tenant DBs (per client) to a multi-tenant DB (all cl… Read more How To Use Delete With Except Clause?

How To Include An 'extension Or Update' As A Dependency In A Tfs Build?

I have a project I wish to build via TFS2013 which is failing due to a dependency on SQLite on the … Read more How To Include An 'extension Or Update' As A Dependency In A Tfs Build?

Remove Leading Zeros

Given data in a column which look like this: 00001 00 00026 00 I need to use SQL to remove anythin… Read more Remove Leading Zeros