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

SEPARATE WORDS TO ROWS (Convert Comma Separated)

I have a table Sample with data stored like belowID | STRING |------------------------------------------------------------------1 | 'ENGLAN SPAIN' ITALY 'FRANCE GERMANY' BRAZILI need the output...

View Article


Round(9.x,0) Error where x >=5 and x <= 9)

The following statement select ROUND(9.5, 0) gives error:Msg 8115, Level 16, State 2, Line 1Arithmetic overflow error converting expression to data type numeric.at SQLExpress 2005 and SQLExpress2014...

View Article


Case sintax in a SQL Store Procedure evalauting 2 Query options

what will be the best way to write this code? I have the following code:BEGIN declare status_sent as nvarchar(30) SET NOCOUNT ON; case status_sent =( select * from TableSignal where ID=(SELECT id_ FROM...

View Article

I need a list of best books on SSAS.

I want to learn data mining, MDX, SSAS in detail and how it is used for reporting and help in business. Anyone who read such books and start their career?Please suggest good books.

View Article

sudden increase in Table size

HiI save Table size and recs. no every day. and check it some days.[code="sql"]...insert into @texec sp_msforeachtable 'exec sp_spaceused ''?'''...[/code]But Today I saw sudden increase size in a...

View Article


Minimizing Locking on Update statements

Hi All, I have a main table called Stock for example. One process ( a service ) inserts data into this table , as well as updates certain fields of the table periodically. Another process ( SQL Job )...

View Article

Urgent SQL Developer vs Enterprise edition 2012/2014

Hello DBAs.We have a tool that has sql server enterprise edition to be used as the database. But Is enterprise edition used in production environment same as the developer edition used in Development...

View Article

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


How to add .sql script into a table row

I have one environment where we get number of changes everyday. It takes time to take backup of database and then apply the script. I am thinking to automate it as 1. SQL Script (Hot-fix) will put in...

View Article


Performance Issue with UNION ALL in View

Hi Guys, I have a performance issue with one of the views when I join the view with a temp tableI have 2 Views - View1 and View2.There is a third view - view_UNION where the view_UNION = SELECT * FROM...

View Article

Transaction isolation level

Dear friends.I need in your opinion.I use one russian ERP system. In this system documents like in other system make transaction in managerial and accounting systems. We operate with objects, and have...

View Article

Integrating SQL 2014 with SQL 2000

I have somewhat of a dilemma to overcome. Basically the company I look after runs SQL 2014 they recently purchased a new company and now need to integrate services with the current 2014 platform and a...

View Article

Bug with IN?

Hello,I've run into what seems like a bug in SQL Server.If I use an IN clause with a SELECT statement where the inner query uses a field name that doesn't exist, but DOES exist in the outer query, the...

View Article


rewriting below query

Theleft outer joins are causing the query to retrieve more data... can someone help or suggest rewriting the query ? SELECT ls.accid, ls.TerminationDate, MAX(P.lchg) , MAX(PP.lchg) , MAX(TL.lchg) ,...

View Article

Pivot - dynamic columns

hi to all,I just wonder how to to solve this...The first select is running fine but due to extra values added to the table the list of manual difined columns must be added manualy each time new values...

View Article


CI with Always on Availability groups ?

Im exploring the idea of both CI and 2014 Availability groups in DEV at the moment. current prod environment is 2008 with some legacy 2005 that needs uplifting before a move to 2014 in prod is...

View Article

Query modification

I am using this query. It gives me Total bytes and Free bytes in MB. I want to include free % in same query, But I am not able to do so. It is giving me either 0 or different values. Can anyone help...

View Article


Permission to connect a database

I am new here and new to SQLExpress. Just went through Teach Yourself MSVS and loaded MS SQL Express. So, I am pretty new to this forum as well as the tools I am trying to pickup.I run into this...

View Article

Need Ammunition for Developers Doing Select *'s

I just started working at a software company that has never had a DBA. The database that evolved over time has 1157 Tables with over 28000 columns. Some table are small but many have 200+ columns.The...

View Article

SP and table query fails with object not found error after assinging sysadmin...

Hi All,I have dw schema in the database, owned by user dw.The login name is dw. The login had db_owner right in the database. The default schema for the login on the database is dw.Now Once I assign...

View Article
Browsing all 3145 articles
Browse latest View live