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

Possible to create Index on partition table for specific partition only in...

Hi All,Is it possible to create Index on partition table for specific partition only in sql server 2012? Please anyone can provide the syntax?I know we can rebuild an index for specific...

View Article


Database Mail not sending emails

Hi, I am not able to send emails using database mail. can you please help me in fixing the issue. Server : SQL SERVER 2008 R2 Enterprise Edition (64-bit)     Windows: Windows SERVER 2008 R2 Standard...

View Article


Unable to create Table in SSMS 2005

Hi all,i have a problem when i try to create DB or new Table or Open table definition i got this error messageUnable to cast object of type 'Microsoft.SqlServer.Management.Smo.Urn' to type...

View Article

Can we create synonyms for database name

 In my stored procedure I am pointing two data base so i have to call object like dbname.schema.objectname ,, but there is chance of database rename, so can we create synonyms for database and strat to...

View Article

How many recursions finished already?

Hello,My recursive CTE query is dealing with quite massive data volume (tens of millions of records) and there could be up to 3.5k iterations thus the query is running for many hours. Naturally, this...

View Article


How to Import From the Xlsx-XML(XLSX file Saved in XML Format) Data in to SQL...

Hi  All ,My name is Srinivas.I have one question ? Any one please help how to read the data from Xlsx-XML Template ( Xlsx Template is saved in XML Formate) from SQL Server query . If we Open this...

View Article

How to fix the orphaned users..

Hi ,we have 200 orphaned users, those 200 users how to fix it with out generate the scripts.

View Article

automatation of killing blocked sessions

is there any automated procedure or script for killing blocked, suspended and sleeping sessions?other than manually executing kill spid in the command line?

View Article


Issues with reporting percent log space used, between DMV and DBCC

Using SQL Server 2012 SE 11.0.2100, I am getting two different sets of values when querying for log space between the DMV and the DBCC command.  Querying using the DMV. select instance_name as DBName,...

View Article


How to store decimal numbers as options group values?

Hello all,I have a major problem! I spent 10 days in making a survey using Access 2007 trying to impress my boss by doing something new, so after I filled the forms with option groups I discovered that...

View Article

Find unused databases

Hi Experts,I know this is a question asked before. We need to figure out the databases in our servers that arenot being used. We could check from audit logs, profiler trace and some DMV's. But is there...

View Article

Image may be NSFW.
Clik here to view.

WAITSTATS cause for concern or no?

Hi All,Am diagnosing a 'slow' application and looking at the database server first. I ran Paul Randall's waitstats script and here is the output.Couple questions as i'm going through this:1) Even...

View Article

Fastest way to read a 600MB table (in memory)

 I cannot get more than 15-19mb/s is there any limitation that I need to know about?The query is a simple select not doing sorting and the database is read-only : "select * from tablename"Tried local...

View Article


SQL Server 2008 R2, Error: 701, Severity: 17, State: 123, There is...

In the error log, I get: 2013-06-02 00:00:37.78 spid22s     This instance of SQL Server has been using a process ID of 1268 since 5/15/2013 4:12:15 AM (local) 5/15/2013 8:12:15 AM (UTC). This is an...

View Article

about 10 INSERT statements issued and taking long

Hello dear Gurus,I issued about 10 insert statements all at same time (selected all and executed) and the SQL Server is taking too long. Now, I want to know which of the 10 statements have completed...

View Article


Kill Kpid

Hi AllIt's possible to kill a kpid from TSQL ??

View Article

Shrinkfile exhausting space in transaction log for relatively small amount of...

I have multiple file database where the ndf file 9  is 134g in size but 122g of it is free due to a massive amount of table deletions of histrical tables.   The last 12g is most recently created tables...

View Article


Running SQL 2008 R2 but server showing up as sql 2005 (9.0.4035)

I have installed and run 2008 R2 for some time--no problems. use as backend for VS2008 coderecently I tried to restore one of my developer databases with a backup from a production server running...

View Article

Sql server taking high memory

Dear All,We have a server sql server 2008 r2 64 bit(enterprise edition) on windows 2008 64bit(enterprise).Our ram size is 16gb.In this sql is using 10gb. Due to this we are always reaching memory...

View Article

calculate table size of many tables

Hi,I want to calculate the size of multiple tables in one shot. Please suggestRegards

View Article
Browsing all 5123 articles
Browse latest View live


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