How to restrict data in multiple databse file having to growth reistriction...
Hi, I have created two database files(primarygroup-mdf) in single database, both files have max growth ristriction 200 GB. I want data insertion should be started in second file only after first file...
View ArticleI can not restore my backed up database
Hi guys, I want to backup Database and restore it again, but after backup and try to restore it error message appear: SqlError The media set has 2 media families but only 1 are provided I can not to...
View ArticleSQL 2008 Primary Data file fragmentation
I have 500 GB total database size. It has a primary data file mdf file with 320 GB size currently in the primary FG. When the primary data file was 200 GB I added 2 data files to the primary file group...
View Articledoes DBCC FREEPROCCACHE while force the sp to be recompiled?
Hi All, Every nite we run certain import jobs on various tables, once done with imports, we run a job to update the stats we run below maintenance commands. 1.Updateusage (0) 2.sp_recompile...
View Articlewhy LDF file is not decressing even after taking tlog
Hi, i have ldf file as 15 gb and i taking t-log backups for every two hours and my ldf file is not decressing and getting low disk space.. My question is why Ldf is not coming down? if we take t-log...
View ArticleWhat does "Splitting Implicit Transactions" means in SQL Server?
What does "Splitting Implicit Transactions" means in SQL Server?deepak
View ArticleSSIS and SSRS running parallely
Hi, I created an SSIS package which truncates few tables and reloads data. User run SSRS reports on this database. What happens when a user tries to run a SSRS report (fetches data from the same...
View ArticleRESTORE database [Test] FROM...
While restoring DB, i found this command be executed: What's the meaning of this command RESTORE database [Test] FROM VIRTUAL_DEVICE='VDI_0D684B14-FB1B-4D57-860F-F426EB0C0FDE_0',...
View ArticleSame set of SPs executed with Same Parameters, But CPU is Higher in First Set ?
Hi. i executed 4 SPs with 4000 different parameters and obtained average CPU as follows SP 1 - 0.247 SP 2 - 0.235 SP 3 - 0.337 SP 4 - 0.129 The next Day, the same 4 SPs were executed; but CPUs were...
View ArticleHow to run the query and show the plan?
Hi All, I am on SQL Server 2008. I want to run a query and also see the plan which was used in that exact query run, on sql command prompt (not SSMS). How can I do that? If I do "set showplan_text on"...
View ArticleDeadlocks missing information - temp objects?
I am experiencing deadlocks in an application (example below) but the information about these from the management views does not have a lot of information in them. 1. The sql handles have no...
View ArticleSms to mobile phone using SQL server
hello every one any body please help me how to send SMS through SQL SERVER to mobile phone and how to schedule using sql to send automatically.
View Articlean application open huge number of connections
Hello, i have an application connected to SQL server 2008 x64 SP2 and open huge number of connection in spite of the medium number of users are really using this connection i took random 5 min it was...
View ArticleUnable to open physical file - Operating system error 5: 5(error not found)...
I am trying to attach a database to SQL 2005. This database has not previously been attached. I have only just installed SQL. I get the following message: Unable to open physical file...
View ArticleSQL 2012 won't start SQL Agent nor initialize the EventLog
Hello, I have a SQL 2012 Standards 64bits on top of a Windows 2008 R2 SP1 acting also as Domain Controller. Servers is installed in C:\Program Files\... . Default instance is installed in D:\SQL...
View ArticleTSXCache.bin missing
I am working with a 2008 msx and 2005 sp3 tsx. When attempting to send maintenance plan to tsx I get an error saying the tsxcache.bin cannot be opened. The file is not there. I can fake a file of...
View ArticleSQL user authtication fails
Dear all, I have SQL express 2008 R2 on which so far I was connecting to it using Windows account. I have install it to support SQL authentification mecanism. Now I need to create a SQL user account to...
View Articleschema does not exist or you do not have permission to use it SQL Server 2012
I created two schemas inside the same database by right-clicking the Security node and selecting New -> Schema. They are both owned by dbo. In SSMS new query window I am able to create tables...
View ArticleWired problem with index on view - error 1947
Hello all, In AdventureWorks database (SQL 2008, 2012 - no difference) I have a view defined as follows: create view [dbo].[SalesOrderAddressView] with schemabinding as select soh.SalesOrderID,...
View ArticleGetting object-id of an object on which a lock just timed out.
I use ODBC API to talk to SQL Server. If SQLExecDirect returns SQL_ERROR, I use SQLGetDiagRec to get information about the error. If SQLGetDiagRec returns a native error of 1222, you know it is a lock...
View Article