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

SSIS Pass Variable of the date to a SQL Select OLE DB Data Source task.

I need to Pass Variable of the date to a SQL Select OLE DB Data Source task (or what ever).I want to store the date in a table and use it in the WHERE Clause.It is currently it is hard coded as...

View Article


Cannot specify a column width on data type ntext - SQL Server 2014 Enterprise...

Hi SQL experts,I am working on our product bug which reports problem in automatic creation of few dynamic tables with following error: [b][SQLServer]Column\, parameter\, or variable #002322: Cannot...

View Article


Select connection string in SSMS

Hello,I would like to be able to select the full SQL connection string and use it in a POWERSHELL script. Is there a query that I can run in SSMS that would return the full connection string?Something...

View Article

Creating a View in Another Database Using OpenQuery

Is it possible to use OpenQuery to create a view in a linked server's database? I tried it, but it didn't work for me.

View Article

Assembly Not Found After SQL 2014 Upgrade

I recently upgraded to SQL 2014 from SQL 2008 R2 and my SSIS packages created from 2008 no longer work. I traced the issue to a Script Task referencing a namespace in the assembly...

View Article


Help in a HTML query

I am preparing a report to generate failed jobs into an email. This is the script I am usingDECLARE @tableHTMLA NVARCHAR(MAX) ;SET @tableHTMLA = N'<font face="Arial" size="+1"...

View Article

Excel Formula issues from SSIS

Hello Experts,This is a question about Excel (xlsx) and not sql but I think I might get some help here.So I apologize in advance but if some know knew this...My SSIS package inserts dbsize data into...

View Article

Getting data from multiple servers

I am trying to get data from multiple servers..but I have been getting an errorMsg 7202, Level 11, State 2, Line 38Could not find server '' + @sn + '' in sys.servers. Verify that the correct server...

View Article


SQL Job Send Email

I have a SQL job that sends emails. How do you query/return list of emails sent on a certain day given the SQL job name?

View Article


Get the time difference of 80% of total record

Table Name : message_queue_detailsField Name : ID, MobileNumber, SubmitDate, MsgStatus, MsgIDTable Name : Message_IdentifierField Name : MsgID, TotalCountRequirement: I have 100 records in the table...

View Article

Case Statement

Hello,I am trying to write simple case statement based on attached spreadsheet. please see the attached document. It is both in xlsx and zip format.Here is the copy paste of spreadsheet but if the...

View Article

Full Text Search

Hi All,We recently enabled Full text search in SQL server 2014.We have an address table with AddressName column. Full text enabled on AddressName.AddressName sample data : 1234 N Main St Chicago IL...

View Article

Find Duplicate Records in Table and Update one of them.

Trying to figure a way to update the 2nd of 2 Duplicate RecordsREQUESTID OTHERSYSTEMID 951 454215 952 454215I would like to first search for all duplicate OTHERSYSTEMID'S in the table and then append...

View Article


bulk update statement based on Id

Hi All, I need to update two tables based on the third table ID. I am passing an ID of table 1 from my code as string with comma delimited so '1,2,3' and want to update two tables based on that ID. I...

View Article

any tool that obfuscates an entire database schema?

You know the fantastic SQL Sentry Plan Explorer Pro has an anonymizer feature that lets you share an execution plan with anonymized table/column names. I was thinking that perhaps there is a tool out...

View Article


Do you use DTC?

Would you use MSDTC? If not how would you handle transactions and error trapping? I am working on a project where I am inserting data from a SQL server DB (2014) to an Oracle DB (12c). To capture...

View Article

Question create XML from SQL for XML format

Would like to create XML format from SQL table Customers(col1,col2,col3) data with 1 row Only.<?xml version="1.0" ?><ALLRequests><TopHeader><Sensor user="myname" pw="mypassword"...

View Article


Cursor Removal

Hi,I've recently started a new job and have found cursors to exist pretty much everywhere. I'm trying to replace these to use set based T-SQl but I'm struggling to find a solution. We have mutliple...

View Article

OSQL leaving spid with sleeping status after each exec

Hi we have an ETL from one DB to another on the same server but we don't want to use SSIS and we want to exec all the ETL SP's at the same time for speed of the incremental loads currently about 60...

View Article

XML Data

[b]I have the below data as XML from WebRequest :[/b]Success1<![CDATA[ Id, Name 72711, Top Banner Asset ]]> <![CDATA[ Id, Name 4798, test123 ]]> <![CDATA[ Id, Name 72711, Media Zone...

View Article
Browsing all 3145 articles
Browse latest View live