trying to use ssdt to deploy to a sub directory
Hi Again I am using ssdt 2015 to create sample reports , one thing I cannot seem to do is deploy to a sub folder. I have a report and I deployit to the ssrs server...
View ArticleCalculate time difference based on condition - SQL Server
Dear All,My requirement is to calculate the failure time, I just want to know the difference in hours where the status is 'I' and it shouldnt calculate if status is A CREATE TABLE...
View ArticleCalculate time difference based on Status field
Dear Team,My requirement is to calculate the failure time, I just want to know the difference in hours where the status is 'I' and it shouldnt calculate if status is A [hr][b]StatusTime-- Status...
View ArticleMust declare the scalar variable "@value4".
Dear Team,We are getting error while executing below code. Please help.SET QUOTED_IDENTIFIER OFFDECLARE @value5 INTdeclare @qry varchar(500)DECLARE @value4 varchar(20)DECLARE @database_name...
View ArticleQuery Designer vs Query Window Speed
I just noticed that query I run in the Query Designer runs faster than when I run it in a query window in SSMS. From my observation, the query in the Query Designer took less than a minute to run while...
View Articledo table types support default constraints?
I'm trying to create a table type that has columns w/ default values and i'm running into issues. Is this not supported?
View ArticleCreate Excel with macros
Is it at all possible to create an Excel file (.xlsm) from data in a SQL 2014 database that would also include VBA macros, data validation and form controls? I can have a template of the Excel file...
View ArticleHelp with conditional joins
Hello,I am fairly new to T-SQL and new to the forum. I was given the below query to see if there was a way to optimize it to be manageable. After trying to dissect and deconstruct it I could not avoid...
View ArticleSQL Server Agent Step Failing
I've been reading articles and trying to find a solution. To keep it simple I have the most basic update statement possible. I stripped all the extra code and ran literally just the update statement....
View ArticleHow to place a file into a file directory.
Hi I have this code, which is just a part of my code:[quote]SET @Attachment = @FilePath + @ReportFileNameSELECT @SQLCommand = 'BCP "SELECT * FROM ##!TableName!" QUERYOUT ' + @FilePath + @ReportFileName...
View ArticlePattern Matching 101
I'm new to SQL and having come back from a training course, I'm trying to apply what I learnt against our data for all the course modules:One of the simple things I looked at was filtering - and I did...
View ArticleTime out to run a procedure on Sql 2014
We migrated one DB SQL 2005 to SQL 2014 with all objects. Compatibility mode was changed to 120.The problem is happening to us is that after migration, implementation of procedures was fast but...
View ArticleGenerate SQL Scripts - Schema and Trigger
Hi ALL,Generating scripts for all the tables (Schema only) and triggers with single file per object mode.Here am getting the Table schema and trigger script in same sql file.I want the script file and...
View Articleselect * from Exceptions$
Hi, I have inherited a sproc that writes out error messages to an excel file. It build up a dynamic sql command and then executes it. Inside the command is the line "SELECT * FROM [Exceptions$]" To be...
View ArticleCast Varchar to Float Resulting In (Scientific) E Notation
I have a pipe delimited text file which I bulk insert into a SQL table with all fields being of data type varchar. The problem I'm having is that when a value has four or more consecutive zeros after...
View Articlethe destiny imperative
the destiny imperative to adolescents as their bodies experience hormonal changes which achieve physical and eager changes. Yet again, a young woman's experience through youthfulness will affect her...
View ArticleIs COLLATE able to sort for line break characters?
Hi,I was working with some address data and came across a few Zip Code entries that were proceeded with a carriage return and line feed. I attempted to remedy this using collation, but I was unable to...
View Articlefaster index rebuild from prod server verse local computer.
when i run the rebuild index on my local it takes longer than when i run it on the prod server which is a much more powerful server. Not sure what processing would be done locally when i run the...
View ArticleExecute Oracle packages (control-M) using SQL Agent and Powershell
Hello,I need to execute a bunch of Control-M Oracle jobs and packages using POWERSHELL. These jobs will be scheduled using SQL Agent. I have the following code (see below), and I am assuming that I can...
View ArticleLimit CSV file to actual data length rather than field length
I have a nightly job that sends out a csv file to our supplier. They then upload the data from there. The problem is that the field length is 20 characters. The actual data may be up to 20 but most...
View Article