Quantcast
Channel: Forum SQL Server Database Engine
Browsing all 15694 articles
Browse latest View live

When I run sys.dm_db_index_physical_stats the database for 5 minutes the main...

SELECT index_type_desc,object_id, avg_fragmentation_in_percent FROM sys.dm_db_index_physical_stats(5,prod,Lauotse, uyrti , 'DETAILED')where index_type_desc='CLUSTERED INDEX' and...

View Article


SQL Server error - Cannot Open User Default Database error 4064

Any idea on this?user is part of active directory and has windows authentication and still getting error....any thoughts?master is default db..thanksPlease Mark As Answer if it is helpful. \\Aim To...

View Article


Unable to use GO 1000 with SQL command in SQL Agent Job

I am trying to use below code in JOB to capture requests, but it seems that the code is not executing properly in SQL Agent Job, when I run the same code in query analyzer it caputre the...

View Article

Deadlock on Communication Buffer

I've read this happens with parallel query processing, but thats its.  Can anyone shed a little more light on what I'm seeing.

View Article

Database crash lands in recovery mode

Transaction log got full while a cluster index online rebuild (sort in tempdb) was in progress, this crashed the database and put in Recovery mode for long hours. I have extracted the events from error...

View Article


Snapshot Isolation not Taking Affect

Although the stored procedure sets snapshot isolation to on with the following line:SET TRANSACTION ISOLATION LEVEL SNAPSHOT;The queries that are run in this stored procedure return data that was...

View Article

statistics

Hi all,what is the statistics in ms sql server and what is the use of statistics......?thanksnaga

View Article

plan explosion?

I have a piece of code which is doing some odd things, one of which is generating a bad plan - or at least a few million bogus reads and 10 seconds of CPU instead of 100ms, when the value is null.  The...

View Article


Image may be NSFW.
Clik here to view.

SQl server agent for named instance not starting

Hi In one of my machine (sql server 2005 ) we have 3 instances 1 default and 2 named (all are using same service account), i am not able to start sql server agent for named instances (no details in...

View Article


Question about an odd use of constraints

I can go into more detail if necessary but the simple question is this: Is it possible to constrain a colunmn such that the column has to be UNIQUE AND allow NULL values?

View Article

SQL Server 2012 AlwaysON HADR Setup

I have few question regarding always on integration with AD and DNS Server. As I understand WSFC need to be enabled for alwayson HADR setup in 2012 and we need IP reserved for each nodes, ClusterName...

View Article

SQL Server 2005 Database Mail - Mail configuration information could not be...

I'm trying to setup Database Mail and send a test message, but it's not working.I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none...

View Article

If i use "mssql server 2008 r2" and "oracle 10g" simultaneously in one...

I want to use "mssql server 2008 r2" and "oracle 10g" simultaneously in one server.But, i worryed about collision problem... is there any errors?

View Article


Find data import duration by a Windows Service

HI,We have a windows service which pulls in data from a file share daily. How can I find out, how long does it take everyday to finish the data import process?Thanks!Thanks very much, Manoj Deshpande.

View Article

How to determine why duration of a query varies.

I have a complex SQL query generated by a C# object model layer. Using SQL Profiler I have monitered the database which is only used by this application. For the same query the duration varies between...

View Article


how to multi-target for vista, windows 7 and windows 8 using sql server express

the original application was built for .net 3.5 using sql express 2008 mdf file with connect string ofData Source=.\SQLEXPRESS;AttachDbFilename=c:\MDF\StringTmp.mdf;Integrated Security=True;Connect...

View Article

Image may be NSFW.
Clik here to view.

sql server add primary key on existing table

How do i add primary key to this table i show in picture..Pls anyone resolve this...!

View Article


Simple membership provider "looses" connectionstring after timeout

Steps to reproduce:In VS2012, create a new ASP.NET MVC 4 Application.Change the connectionstring in web-config to point to an Azure SQL DB.Set  [Authorize(Roles = "Admin")] on the About Method in the...

View Article

SQL Express database file auto-creation error but web-config changed to Azure...

I have an app that is based on the new MVC4 template with SImple Membership provider.I've deployed the app to an Azure website and changed the connection string from a local express-database to an...

View Article

Creating one or more indexes on composite primary key?

So I have this new table, and I want to create a compound primary key on.  How do I handle the index with this situation ?The table will typically be queried with a join to it with a condition that...

View Article
Browsing all 15694 articles
Browse latest View live


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