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 ArticleDatabase 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 ArticleUnable 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 ArticleCan 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 ArticleHow 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 ArticleHow 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 ArticleHow to fix the orphaned users..
Hi ,we have 200 orphaned users, those 200 users how to fix it with out generate the scripts.
View Articleautomatation 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 ArticleIssues 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 ArticleHow 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 ArticleFind 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 ArticleWAITSTATS 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 ArticleFastest 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 ArticleSQL 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 Articleabout 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 ArticleShrinkfile 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 ArticleRunning 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 ArticleSql 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 Articlecalculate table size of many tables
Hi,I want to calculate the size of multiple tables in one shot. Please suggestRegards
View Article