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

Linked 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 Article


format number

How do you display data in thousands with 1 decimal? 10,500 ==> 10.5

View Article


Split 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 Article

First and Last data

from the below table I need the Last_data and last_data from 6 month. with different DB_name so my output would look like : DB_name backup_start Backup_finish Stock_any 8/1/2016 8/1/2016 Stock_any...

View Article

SSAS - dimensional security and drillthrough

I have a OLAP (mutidimensional) cube where I have implemented dimensional security by adding a MDX expression to a cube dimension (using the UserName() function).The security model works fine and the...

View Article


Overlapping datetime ranges.

Overlap in ranges. I have a set of data,rows which a start_time and a end_time. Each row should get a New_starttime, so that periods do not overlap. A period can not be split into two periods. Example:...

View Article

Index Seek - ConvertImplicit

Hi all!i'm running a stored procedure, which receives a single parameter and returns a single row to the client.The query inside is a select statement in a single table and the plan is just a non...

View Article

What 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 Article


Help an amateur out with a script/query

I have a somewhat rudimentary understanding of SQL, I've yet to encounter a situation where I needed to edit/work with xml files.  I have a single value inside of an xml file that I need to change....

View Article


Exporting HTML data from SQL to CSV

Hello, Is it possible to export HTML code to a CSV file and present the information has HTML?  I have attempted to do this using BCP but the export prints only the actual field values (HTML tags etc.)...

View Article

Filegroup for memory optimized tables and garbage collection

I've used FileTables and I know that I can run "sp_filestream_force_garbage_collection" to perform garbage collection on demand. I'm new to memory-optimized (MO) tables.  I created a filestream...

View Article

Data Masking in SQL Server 2014

There is much easier way to mask data in SQL Server 2016.But whats the way to mask data in SQL Server 2014 using Transact SQL.I want to mask number, Name and Email Address.Thanks in Advance.

View Article

Help converting a CURSOR in a function to FOR XML PATH

Hi,I‌ have been tasked with updating all functions that use cursors‌ to use FOR XML instead.  I have converted some standard ones, but I am not sure what to do when I have functions with nested...

View Article


Help with Openquery

Hi, I am migrating SQL from 2008R2 to 2014, and I met a problem I never had with Openquery, based upon a DB2OLEDB Linked Server.I'm tryng to execute this request in SQL Server 2008R2, and it works fine...

View Article

Addressing my biggest objection to using sys.sp_executesql…

Last week I did a code review for a stored proc, intended for a search screen, which used dynamic SQL. After working with the developer to fix a few issues I approved the code and passed it along to be...

View Article


sync two database in one database

hello all.I‌ have two Same Data base in structure not in Data( as Test1,Test2) and one Data base with different structure as Test3.in addition I Have 3 Tables (Users,Roles,Groups) in Test1,2,3 .Now I...

View Article

Convert hex encoded to text

Hi,How

View Article


Need help with deleting/updating duplicates in two tables

Hello All,I‌ am looking for some urgent help. Thanks in advance! ‌‌Below is what I have:T‌ables Info:‌1‌. Table ABC has below fields‌  a. ABCUniqueId (only 1 record/entry for each

View Article

Help with developing procedure for deploying SSIS 2014 project as part of TFS...

I have no problem finding articles and FAQ's on deploying SSIS 2014 projects from your local machine. However, I can't find anything on making it part of the TFS build/deploy process. What gives?...

View Article

what happens internally when you execute same query in multiple times

Hi folks what happens when you execute same query with multiple times w‌hen i set statistics io & time on why  it shows diffent duration /time‌ p‌lease reply<

View Article
Browsing all 3145 articles
Browse latest View live