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

Email send delay & occasional failure, which is not a failure

We recently experienced some email anomalies that I'm trying to figure out. Up until about 2 weeks ago, we were running a SQL Agent job which dispatched 400 emails, one every 4 seconds, using...

View Article


Remove duplicates records and add unique key to the column

I have to  delete  duplicates records  which having  same date and same ID with below conditions and then  add unique key on date and ID SELECT SDATE , ID , COUNT(1) AS CNT FROM  OT_DTL GROUP BY SDATE

View Article


varbinary(max)

We have a third party database and most of the values are in varbinary(max).How do I evaluate those values into standard text?How do I see the values stored in binary text?How do I see the meaning of...

View Article

Trying to allow a non-sysadmin / privileged user to create / revert / drop...

I've got a developer who needs a fast, easy way to test changes to an application he supports, which has some "interesting" quirks when it comes to the various stored procedures in the database (values...

View Article

Creating Function that returns table with dynamic columns

Hello,This is the first time I am attempting to create a function.  I want to call it from my VB.Net application to load a datagrid.  The columns are dynamic, so I cannot name the columns becaus

View Article


Function return values

I have a function that returns a table of values and i like a way to list those values in a query so can see if a field existsreturns @WorkList Table(        rowid     &n

View Article

Getting count from millions of records and fulltext search

I have a query I ideally need to get to run in seconds but currently runs in minutes.  It may be that the size of the data is just too large but,(This is being run

View Article

DMV sys.dm_db_index_physical_stats: Detailed vs. Limited

When I run the following two queries.  I get drastically different results.   I don't understand why. 

View Article


the time to miss here to go nowe

[url=https://grizzliesvsspurs.info/]Grizzlies vs Spurs[/url][url=https://grizzliesvsspurs.info/]Grizzlies vs Spurs Live[/url][url=https://grizzliesvsspurs.info/]Grizzlies vs Spurs Live...

View Article


Loading Excel file through Sql Agent Job

Hello,I'm trying to load excel file into Sql server database using SSIS package. It runs fine, but when I create job using the same SSIS package it fails.Here are few details:Excel extension: .xlsxSQL...

View Article

Passing field value to report via URL

I have a drill down report that I want to modify so that it will open the child report in a new tabThis...

View Article

Trigger oddity question

We have a developer here who created an after insert, update, delete trigger on a table.  This trigger inserts, updates or deletes from a second table based on the action taken on the first, basically...

View Article

Sending data between servers in a non conventional way

Good day!I've got a massive headache trying to come up with a solution for a very particular scenario, I figure I could get some suggestions/wisdom around here.I'm building a booking system that its...

View Article


Tabs of One Excel Spreadsheet to Multiple Excel Spreadsheets

Hi,I have one excel spreadsheet with 10 different tabs named by Cities. I want these 10 Tabs of one excel spreadsheet to be split into multiple City spreadsheets.For Instance:Excel Spreadsheet Name :...

View Article

Return Text Answer if Match

Mornign folks,I've a query that returns a count for individual orders.I then did a union and at the bottom now have a sum of the count.[code language="sql"]SELECT CAST(Jobs.jobid as varchar(12) ) as...

View Article


Case Expresion Then Containing String of Text and attribute result?

I've a case expression that I'd like to look like this, but this isn't working.I'm trying to have it return text and the value of an attribute in my first THEN.Instead it returns NULL[code...

View Article

Drop/Create objects versus Alter

I am trying to put together some standards documents for development on a new team, and I received some sage advice from wiser heads than mine that we should always DROP/CREATE objects, rather than...

View Article


(Quickly) Delete records from a table, with condition

Hello all,I'm supporting a database that I inherited so now having to handle some issues that are now arising.  In particular, I have a stored proc which just started giving me fits. This proc builds a...

View Article

Count Joins Windows Function - Seeking Assistance

I select a list of Txns with counts of TypeA – all goodI select a list of Txns with counts of TypeP – all goodI combine the two select statements based on a main common

View Article

Subquery with multiple results?

I've two queries.The first, returns a single column with multiple results.[code language="sql"]SELECTOrders.IDFROM CompanyINNER JOIN User ON Company.usid = User.usidINNER JOIN Orders ON User.orid =...

View Article
Browsing all 3145 articles
Browse latest View live