AX 2012 MDS connection Access is Denied
AX 2012 R3 installation with SQL Server 2014. When trying to set up the Master Data Services connection I get a message from AX Access is Denied. The Sql Server Log as these two messages in them. The...
View ArticleFull Text Search equivalent to like operator
Hi, I have some non sargable queries like below:[code language="sql"][/code]select * from dbo.test where name like '%john%'Upon talking to the application team, I f
View ArticleDuplicating nodes for xml path, combine child nodes
Hi, I'm sorry if this post is a little long, I am trying to include only relevant information. Currently I have a script exporting the contents of a temporary table to XML, however one of the child...
View ArticlePerformance when Inserting into nvarchar vs varchar
HiA stored proc was running v.slow.The problem was [code language="sql"]select fieldlist into #t from myview[/code]Time taken to select from the view doesn't change that&nb
View ArticleThe conversion of the varchar value overflowed an int column
the below script is return this error :The conversion of the varchar value '4103049600' overflowed an int columndeclare @jsondate varchar(40) = '/Date(4103049600000+0700)/'Set @jsondate =...
View ArticleDOES COLLATE DATABASE_DEFAULT CAUSE PERFORMANCE ISSUES AND HOW DO I GET...
I am updating an existing SP to point to a different database created outside of my control. Nearly every join in the code brings back a collation conflict error so I have changed the joins to COLLATE...
View ArticleFind out all the tables with VARBINARY column
Hi,Is there any way that to find out all the tables which include a VARBINARY type column?Thanks,
View ArticleSlow running query
Hi,I am trying to get some counts and it's running really slow. Any help would be really appreciated.The table has a call_id, start_time, and end_time. The table has thousands or records but I am...
View ArticleFormat of result
Hi all, im trying to do something, but have no idea how to acief this.Here part OF the DATA i'm withA select returns all the row next to each other( logic) Its a nemu structure 7 languages (only 2 here=
View ArticleLooking to match up balancing records
I have a view that is similar to the following one but with hundreds of records
View ArticleSQL Server: Loop Thru Semi-colon Delimited Lists and Perform Partial Matching
###Business Problem: I have a list of users and attributes that apply to the users (stored in user table). The complete list of user attributes is called userList. This list is delimited by...
View ArticleLooking to sort two queries by Date, Time
[code language="sql"]SELECT LTRIM(RIGHT(CONVERT(varchar(6), [ie].[Invoice_Number],100),7)) AS [Invoice#] --, FORMAT([ie].[DateTime], 'MM-dd-yyyy') AS [Void_Date]
View ArticleAutomated XML file
I was given this code from a vendor to export customer data from our ERP system into their system. I need to automate this and save it as a formatted (with CR's) XML file. [code language="sql"]SELECT
View Articledatetime
Hi experts, Why below statement giving the error and not considering as datetime.Please advise. Msg 242, Level 16, State 3, Line 1The conversion of a varchar data type to a datetime data type...
View ArticlePowershell : convert a file to UTF-8 without BOM + LF
Hi, I have an issue with files conversion in powershell.1. I try a bcp command to export a file (with a format file for convenience), Format UTF8 + LF.2. I convert it in UTF8 without BOM (but my LF...
View ArticleType or namespace name 'Runtime' does not exist in the namespace...
So I'm running into the following error after adding connection managers to an ssis package: "The type or namespace name 'Runtime' does not exist in the namespace 'Microsoft.SqlServer.Dts' (are you...
View ArticleViews based on Multiple tables causing Locks?
Hi, I have recently started at a new company and the way they have some data set up is as...
View ArticleBCP Error : A valid table name is required for in, out, or format options.
Hi,I wanted to do insert data from file into table without SSIS using select query instead of table, as I am calling udf for certain columns to do some logic in select query. But when I use BCP...
View ArticleAssign incrementing letters to same value
hi all,i have the following table[quote]OrderID PointOrder1 1
View Article