Rounding off issue.
The number_value column from the source should be multiplied with two multiplier columns. The multiplier columns might not have values for some records i.e. there are null values. The logic is to...
View ArticleSSIS
I am trying to get some details for one of my SSIS migration project. I need to find all of the SSIS .dtsx files which are located on file system storage and they are getting executed by the SQL...
View ArticleNewbie question - SQL server / development
I would like to connect to real estate transaction data service (RETS), download data and do some calculations, set up alerts etc.Is there a free version of SQL server that I can download and use? I...
View Articleif some old fucntions are not supported in version then how to chnage those...
HI Champs,I want to upgrade sql server 2005 to sql server 2014 . In case if some old function may not support by new versions, then how can i subsitute alternate for that ?IS there any possibility like...
View ArticleHow to roll back all changes if not all statements executed successfully?
I have a script contains multiple statements to update multiple tables. How can I make sure that either all statements get executed successfully or no changes apply to the tables (in case one or more...
View ArticlePowershell script to find Windows Server reboot date
HelloI am searching for a Powershell script which picks Windows Server names from SQL server table(eg: Instance.DB.tbServerList) & writes last reboot date to SQL server table(can be same or...
View ArticleTrigger a report by sending email
Hi friends,I have a report that gets a Customer_Number parameter and sends a mail with that customer's data.I want my users to be able to get this report's results by sending an email to a certain...
View ArticleRelation between SQL Server login and session
Hi peopleI have question, how can I determine the relation between MS SQL Server user (SQL login ) and his session , when it connect to SQL ServerThank in advance
View ArticleIndexedView question for heavy loaded database
Hi folks.I know you'll say "you have to experiment it" but I need your opinions. Here are key points of project:its credit card transaction project. Meaning once record inserted its never updated.there...
View ArticleQuery to Split the String as rows and columns in SQL
I have a string that contains series of parameters with separators.i need to split the parameters and its values as rows and columns.e.g string = "Param1=3;param2=4,param4=testval;param6=11;..etc" here...
View ArticleQuery for listing views in a database involving tables from other databases
Hello, Can anyone provide me with a script to get the list of views in a database, involving tables from other databases??...appreciate your help..am using SQL server 2014
View ArticleMetadata about current query
I'm curious if there is a way to gather any metadata about a query that was just ran, or about a dynamic query passed in as a parameter, such as being able to "dynamically" return a list of columns in...
View Article【HELP】T_SQL LIKE CLAUSE
Hi All,In my column (FilePath) contains the values as below,FILEPATH---------------\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C12\29P\\Dpo-doctest1\Citibank...
View ArticleSQL Server- Export Data without html formatting
I need to export some Database data into a text file. My Query looks like this: SELECT Category1, Category2, Category3 FROM dbo.tbl1 WHERE Category1 = 'JP-4' AND Category2> 4;This works fine to get...
View ArticleEXISTS queries that can't be written any other way
Hello. All examples of the EXIST operator I know of use correlated subqueries that could be also written as a join with no performance gain or loss. Can anyone give me an example of a subquery that can...
View ArticleUse of Ceiling
Hi AllLooking to update pricing with .99 for anything over a certain value and other prices for other values. This is the first pass on this I had. Does this seem a reasonable solution or how SHOULD it...
View ArticleTransaction isolation level and implicit transactions
I'm investigating a poorly performing procedure that I have never seen before. The procedure sets the transaction isolation level, and I suspect it might be doing so incorrectly, but I can't be sure....
View ArticleUsing value from cloumns to generate a new value for new column
Hi I've data as below[quote]account period01 period02 period03 period04[/quote][quote]1111 null null null null[/quote][quote]1112 782 null null null[/quote][quote]1113 null null null...
View ArticleSelect part of a text string...
I have a problem where I need to select all top level file paths from a string value in SQLSo I have a column "Locations"Example Data:X:\folder\anotherfolder\X:\folder\yet another...
View ArticleAdvice on best approach?
Hi,I would really appreciate some advice on best approach here.I´m building a "report tool" where users can log in and register opening hours.The "end user"/website visitor will see a simple overview...
View Article