Quantcast
Channel: ANJEP IT » T-SQL
Browsing latest articles
Browse All 10 View Live

T-SQL Make SLECT statement only on fields with data in

If you need to make a data dump of a table but don’t want to have all the empty fields, they just run this script and it will create the needed select statement that you can copy paste into a new...

View Article



Check if file excist in SQL report

Hi, I needed a script to check if a picture file excist for use in my data set. This is the normal SQL script: But that will not work from inside the report manager, but if you build it into a function...

View Article

Image may be NSFW.
Clik here to view.

Create Table of contents (TOC) in SQL Reports

Hi all, This night I finished a advanced report with with table of contents with page numbers of cause it’s all dynamics and data is feeded from a Microsoft CRM database but that could be any data...

View Article

Image may be NSFW.
Clik here to view.

Scribe and Microsoft CRM

Hello All, It’s a while since I last had written something – but I’d like to share some experience about Scribe which I have worked a lot with the last few months on various projects. Project 1:I have...

View Article

Validate email address with T-SQL and regular expressions

I needed an easy way of validation email addresses in a SQL database, this is the outcome from it: –Select all records in the entity select id, name, emailaddress from table1 –The except compare the...

View Article


T-SQL Script to Check / repaire a SQL database

Hi, I needed  to repaire a CRM database today and found this script handy: Change the database mode to single user: EXEC sp_dboption ‘DynamicsHML_MSCRM’, ‘single user’, ‘true’ And when done set it back...

View Article

Check for missing index on SQL database

To get an indicator on the missing index’s on your SQL you can use the script below. It’s taken from this the MS BlogURL:...

View Article

HOW TO Lookup Scribe CRM adapter error messages in MSMQ based integration

OOTB it’s not possible to see the complete error message from the CRM API if you get an error in your integrations using the Scribe Console API. But the call stack is in the system, hidden inside the...

View Article


Monitor Microsoft CRM Async log with Scribe

Use the script below to monitor the entries you have in the async log – you can make some rules based on how many days it have been waiting etc. SELECT TOP (10000) MAIN_FilteredAsyncOperation.name,...

View Article


Image may be NSFW.
Clik here to view.

Issues when importing attachments with Scribe to CRM?

I became aware that when doing a normal Query against a SQL database with my binary attachment data like SELECT * FROM ATTACHMENTS It only took the first 128K of data from the column with the...

View Article
Browsing latest articles
Browse All 10 View Live


Latest Images