Find 'MAX' of an bit type - Further adventures in report writing
I hate the person who 'designed' a database I've inherited..... :)I'm producing a server status report in SSRS. One of the values I now need to return from the dataset select is from a bit d
View ArticleIdentify objects that do not use an Identity Column but a Lookup Table to...
I need to Identify objects that do not use an Identity Column but a Lookup Table to generate an Unique Identifier.I need to identify Stored Procedures, Views and Triggers.The table name and the...
View ArticleUpdate the column changes
Hi,i have 2 tables1 is Orininal table e structure2nd copy table with same structuredaily 2nd tables copies with new data.how to get the table data what are columns are updated daily,can any one
View ArticleGenerate two matrices based on a value
Hello,I can't solve a problem which is displaying two matrices in a report based on a value passed to matrix field. I have a base matrix which takes a filed value of 0 or 1. In report i should get two...
View ArticleQuery Help
Need help on a query to generate a two incremental values on below table.Both the BatchNo and BatchSequenceNo should begin at 1. The BatchSequenceNo should increment by 1, upto 500 rows.At 501 row, the...
View ArticleImport ODBC (DBIntegrator) data into SQL Server 2014 Database
I am trying to copy data from a DBIntegrator ODBC source into SQL Server using the Import Wizard. When I select a table on the Source list and click on <Edit Mappings...> , I get an error message...
View ArticleQuery runs faster in MASTER but slow in my own database.
I am not DBA, we have small team working on a small project and I need to take care of database, having little or no DBA experiance.I have created a view using 4 table with joins, When I run that...
View ArticleDisplay numers from 1 to Parameter!ParameterName.Value
Hello,I have a report with a parameter than can take values from 1 to 12. End user of the report can choose one value between 1 and 12. What i would like to do is to display numers in a matrix from 1...
View ArticleGroup multiples values together
I have three stocking locations. Two are within the same physical building but considered separate for other reasons. I want an inventory value to be grouped into one for that location.[code...
View ArticleIdentify Text in Stored Procedures to include Table Name
I need to Identify Text in Stored Procedures to include Table Name.The following only identifies the SP Name. What view and how do I join to get the table name.[code language="sql"]
View ArticleTerminating WinDbg without stopping service
I'm trying to avoid having the MS-SQL Service stop when I exit the debugger, after I have attached to it. Is there a trick to this? I run WinDbg with -pb, and have tried both "Stop Debugging", and...
View ArticleDynamic SQL Help needed: Why doesn't this work?
All,I'm working on a proc to do a recordcount of all tables and views in a database to compare to another set of tables/views in a different database as an auditing process for our ETL packages. I know...
View ArticleCombining 2 different datasets
Hi combine 2 datasets that have different column names, different data and different number of columns into 1 output.see example below.
View ArticleCopying Data
Hi,i have daily job which copies data from production to uat.i want to know know what are chnages on the uat data after job completion.Can anyone provide script for this.here is tablesprod...
View ArticlePoint Stored Procs At Read-only Instance of AG Group
I am migrating from a SQL 2005 to a SQL 2014 Always on EnvironmentWe have a set of stored procedures that take data out of our production database and place it in a secondary reporting database for a...
View ArticleLong running insert
Hi! Having problem with an insert that take very long time to complete, there is a warning about Type Conversion in expression and I think it could be the problem? Here is the Execution plan:...
View ArticleIntermittent Distributed Transaction Escalation (maybe)
Hello All,I have a stored procedure that has been running on a SQL 2008 server successfully for years but now I'm having intermittent failures after relocating the process to a SQL 2014 server. The...
View ArticleCh'eap Kitc'hen Units For Sale Leicestershire
Ch'eap Kitc'hen Units For Sale Leicestershire Go to ch'eapkitc'hens*uk*com
View ArticleExporting multiple rows to 1 CSV column using BCP
Hello, I am working on a data export where I want to export my SQL query to CSV. I have a row of data that I am trying to send to 1 CSV column and I want the data to appear as a list instead of a row...
View Article