Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

stored procedure issue

hi I have a issue with the like operator in the loop if I set the like operator to LIKE '[@a-b]%'when execute the SP with the parameter @a = a I got this in my wanado table[b]ContactName[/b]Antonio del...

View Article


get the price of last buy of each sell

Hi I need to get the sellprice of each buy corrosponding to sell , below is the table and required resulset.CREATE TABLE #temptable ( [Key] varchar(32), [KeyID] int, [KeyDescription] varchar(200),...

View Article


SQL Job : Dynamically change its Next Run Schedule

Hi,I have one sql job scheduled every 10 min to run. It mainly does some calculation and then dumps results into one table. It sometimes takes 6-7 minites maximum to complete and sometimes it completes...

View Article

SQL to sum last 12 month values from same table

What's the quickest way to sum "last 12 months" values from one date column and update 2nd column?e.g. original data contains "Date" and "Value", and we need to update new field "Date2" with the sum of...

View Article

Converting Varchar to Int Error

I have the below script and when i run it i keep getting the error "Conversion failed when converting the varchar value '?' to data type int" and i am unable to determine which line is causing the...

View Article


Healthy In Order To Gain Weight

Where To Buy Hypertone Force In South Africa GET Some exercise!!!. You don't to attend the gym all the time, but you do need at least 2 days a week of full-body weight training and four days full week...

View Article

Pivot Help

Hello,I am trying to use the following data structure to present the data to show each Title and Count by LocID but cannot seem to get it right. Should I be using a Pivot table for this or do I need to...

View Article

SQL 2014 performance is slow when migrated from sql 2008

We have online production database which is running in SQL Server 2008 R2. Now we are planning to migrate to SQL Server 2014.We notice SQL querys were performing very slow in SQL 2014 comparing SQL...

View Article


SQL Server Job Automatic mail - edit

Hi Team,Cofigured Index maintenance Job in SQL Server.alert mail from is getting like below.[b]Levercare Customer (Unify) – HHT <e-mail Address>[/b]How to alter the text before email Address in...

View Article


Cast 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 Article

Check constraint based on other tables

Hi, I have a number of tables each containing information about a different piece of machine tooling. Each piece of tooling has a tube diameter to indicate the size of tubing that it can be used for. I...

View Article

server side trace

Hi Guys,I am currently setting up a server side trace that will run constantly on a server for one particular database. The data is then being loaded back into a table.When looking back on some of the...

View Article

Error handling in my stored procedure

Posted in error

View Article


Seconds to hours??

I am pulling data from an Avaya system,What I am trying to do. Example, I am pulling from [dAgentBySkillsetStat].[TotalStaffedTime] which is the total time in seconds, of staffedtimeThe value I get for...

View Article

simple dynomic Transpose 2 column as 2 rows

Hi friends ,i would like to transpose powerunit_natlang and transmission_natlang columns. please some one help me.create table #urgent_2_11 (id int,cc_key varchar(50),technical_item_name_natlang...

View Article


Select name and count(records) from all tables in DB

Hi all!I have a db with app. 500 tables.Many af them are empty, or has just a very few records.Now i need to make a script, that creates tablename, count(records table) for all tables in the db.sorted...

View Article

Cross Database Procedure exexcution

Hello Everyone,I have 2 Databases DB1 & DB2 (Owner is 'sa' for both)Table1, SP1 both exists in DB1 (Schema is 'dbo')SP2 exists in DB2 (Schema is 'dbo')SP1 - Does a select on Table1SP2 - It is...

View Article


Error when i try to upload multiple rows

i have two pages the first one select.php shows 4 records when i can modify one value in each one but when i try to modify and goes to the second page upload.php an error ocurres.i try the update in...

View Article

Does express edition in sql server 2014 supports business intelligence ?

Hi All,Does express edition in sql server 2014 supports business intelligence ?I need to create a report and publish , will it be possible to express edition.If not what is the minimal requirement to...

View Article

Difference between ROW_NUMBER() and ORDER BY...DESC

Hi guysThis is just for interest sake from my side. I have the following code entered into Adventureworks2014:SELECT p.FirstName ,p.LastName ,ROW_NUMBER() OVER(ORDER BY s.SalesYTD DESC) AS 'RowNumber'...

View Article
Browsing all 3145 articles
Browse latest View live