Quantcast
Channel: SQL Server Database Engine forum
Browsing all 12554 articles
Browse latest View live

Difference between SQL 2005 Standards and SQL 2012 Standards edition

Hello All,Can someone please tell me what are differences between SQL 2005 Standards and SQL 2012 Standards editions.We are migrating so we need to all the differences for development and...

View Article


enabling Change data capture on database

While Enabling CDC on database I am getting below error, Can any body help me please... Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal, Line 193Could not update the metadata that...

View Article


Which user for a contained database - SQL Server 2012

Hi,if I've a contained db and I need to create an user for this db in order to porting this contained database to different servers inside the same domain, which type of user do I need to create?For...

View Article

Table valued function caching wrong column names

I have two Table-valued functions where one uses the other in a manner as below.CREATE FUNCTION f1 ( @@iduser INT ) RETURNS TABLE AS RETURN ( SELECT [idf2] AS idf1, 0 AS [status],* FROM...

View Article

Memory dump files are creating in Sql server 2008 log folder which occupying...

Hi All,Frequently we are facing the issue with memory dump files which will creating space issue on the drive...Each dump file occupying around 100 or 200 MB and it will creating every 1 mint..please...

View Article


Batch Files user/password v3

Hello, My initial issue was inserting my passoword/username, which I resolved. Now my issue is running the query. Any suggestions?Below is the code:@echo off color 2 cls echo this code opens winsql,...

View Article

Create Foreign Key to Unique Filtered Index

Hello, First, I have a parent table which contains a composite Primary Key of KeyValue1, KeyValue2.There is a bit column in the table which mostly has values of 0, but occasionally has a 1.I want to...

View Article

Find Report Name based on Report ID

How do I find out the report name based on the report id ('D12C939B-4309-4364-A025-BFDB5203EE0B')?

View Article


Problem to create it

Hi, when creating thiscreate view view2 as (select id1,fig_type,fig from (select id1,figtp1_ft1_mk1,figtp2_ft1_mk1,figtp3_ft1_mk1,figtp1_ft1_mk2,figtp2_ft1_mk2,figtp1_ft1_mk3,figtp2_ft1_mk4 from view1)...

View Article


SQL 2012 - Are Tuning Advisor Results Specific to a Particular Machine/Instance?

Hello,I'm starting to analyze application queries with the Tuning Advisor and my manager wants to know if the recommendations returned are applicable across servers, instances, and databases of...

View Article

Image may be NSFW.
Clik here to view.

Not able to access database from a remote machine using SQL Server Management...

Hi,I have a DB_BOX with SQL Server 2008 R2 installed. I can access the databases on the local machine using SQL Server Management Studio but it is not accessible from other machines, though the...

View Article

How to use auto increment with "nchar" data type

HelloI have a table that I want the value in one column to be generated automatically with "T-XXX" pattern which"XXX" is a number. Can Microsoft SQL Server do that?

View Article

View what queries have been run in SQL 2005

I've been asked to have a look at building an MI mart from a transactional DB.  The source Db is in SQL 2005. The transaction logs are showing that there are approx. 35-40 timeouts per day while the...

View Article


Derived table 'tablename' is not updatable because a column of the derived...

Hi Guys,I have a With CTE table expression ,this cte gets the value from startdate and enddateI need to insert this startdate and enddate into a table ,while inserting into table,i got the below...

View Article

SQL Server Database Connectivity with Visual Studio 2012 - Help Needed

Hello,I am having Visual Studio 2012 and SQL Developer 4.0 installed on my system with Windows 8 - 64bitI want to shift a VS project with an SQL database connectivity to another new Laptop (above...

View Article


What to look for in Execution plans ?

Hi Pals, Assuming the query execution is slow , I have collected the xml plan. What should I look for in the actual execution plan . What are the top 10 things I need to watch out for?I know this is a...

View Article

How to isolate poor performance caused by NETWORK

Hi Friends,I would like to know a way to isolate sql server bad query performance is caused by NETWORK and not the sql server.Are there any specific tips and tricks in ssms, waitype of specific perfmon...

View Article


SQL Server Express 2012 Install fails Repeatedly

I have tried to install SQL Server 2012 Express with tools on my Windows 7 Home Premium system.  it has failed twice.  I then tried to install just the LocalDB version and that installation ran to...

View Article

how optimize based on execution plan info ??

 dear all,I have a simple store procedure which make a field selection and based on it update a particular column.problem I have when executing this procedure and check the execution plan, I have a...

View Article

Why did I suddenly get a bad execution plan?

Greetings. 2008 R2, SP1.We've got a sproc  that runs all the time with sub second response. All of a sudden this morning the query started timing out at 30 seconds. We got the execution plan saved off,...

View Article
Browsing all 12554 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>