SQL 2012 Restore Error
I am using SQL 2012 and am trying to restore a database A.bak over the top of an existing database B . I have ticked Overwrite existing database (With replace) and told it to relocate all files to the...
View ArticleAuthentication
Hi All,I know there are two kinds of authentications in sqlserver, Windows and SQL. Is there any query there any query which gives output as these available authentication like windows authentication...
View ArticleGetting absolute sequence number
In profiler there's an EventSequence field, but apparently it's an artifact of profiler and not available to a transaction.Is there any kind of absolute sequence number for transactions available to...
View ArticleSQL on VM, but disks on SAN
My question relates to what happens when you have to rollback the VM.If all your databases are on a SAN and the SQL Server is on a VM, but you rollback your VM, won't the state of SQL and the state of...
View ArticleUnable to create Full Text catalog after reverting from DB Snapshot in SQL...
After reverting to a database snapshot that contains Full Text indexes, it does not allow you to re-create Full Text catalogs until you either restart SQL Server Service, detach/attach the DB, or take...
View Articledisk I/O
We have a SQL server with 25 GB RAM, it is used for data warehouse. When the user restores one of their big databases, it slows down the network, and sometimes caused Exchange server down. The data and...
View ArticleSQL Health Check Script.
Hi,I need a SQL health check script, or powershell script, in where we just provide a servername as input in stored proedure or powershell and it shoots a mail to me with complete health check...
View ArticleSimple COALESCE(...VALUES...) throws severe error on SQL Server 2008
The following simple statements throws a severe error:SELECT COALESCE((SELECT Wert FROM (VALUES (NULL)) AS Werte(Wert)), NULL, 2)If reformulated with (nested) ISNULLs, the statement works.Is this a...
View Articlecan backup leave database in restoring state?
I recently had a problem with the 'model' database remaining stuck in RESTORING state and keeping SQL Server from starting up. I eventually recovered by restoring system databases from a 10 days old...
View ArticleSQL Server database with multilingual support
The requirement is to support multiple language in same database. I know, there are multiple process involved in this. There are design considerations in Database layer, Business layer and Presentation...
View ArticleStatistics update
Hi,we have one one sp which contains select statement which will be fired for every 15min when i tried to tune the query using recommendations of sql query optimizer in it. It was recommending to...
View ArticleSQL Server Always On Asyn replica and with(nolock) querys.
Hello everyone. Thanks in advance for your help. I’m setting up an SQL Server 2012 AlwaysOn in my work, but the system that access to the BD has a lot of querys with “with(nolock)” that are not...
View ArticleIndex on All Columns in WHERE Condition?
Yesterday (2013-04-04) Kimberly Tripp & Paul Randal gave a great presentation at the Microsoft offices next to Radio City Music Hall in New York City.Kimberly said: "Don't index all columns...
View ArticleRoundHouse versioning with SQL server
Hi All,Can anyone guide me to get through in ROUNDHOUSE version with SQL SERVER?Thanks in Advance.
View ArticleGetting Error:Conversion failed when converting the varchar value 'NULL' to...
Hi All,When I am using below query,i am unable to convert varchar datatype to int,i am getting the error as below:Conversion failed when converting the varchar value 'NULL' to data type int.The query...
View ArticleReagarding Query to get TOP Second Value from a table
Hi guys i need to get query for Second Latest Updated Value from a table (Note:Not The TOP Second Highest Value (or) TOP 2 values).MeterNo DateTime Load(kWh)00212...
View Article70% FILLFACTOR for Badly Fragmented Indexes?
Yesterday (2013-04-04) Kimberly Tripp & Paul Randal gave a great presentation at the Microsoft offices next to Radio City Music Hall in New York City.Paul said: For badly fragmented indexes start...
View ArticleResource governour, level out time ??
Hi all,I set up a workload group and associated resource pool to limit cpu usage for certain users to 30 %.If I now start a workload for a user in default pool (no limits) and shortly after the same...
View Articlenot able to add buildin admin as login ..sql server 2008 express edition
i have added my AD group in the local administration of the server ... but facing issue while adding a new login .. (SA is disabled on the instance)im getting below error Microsoft Windows [Version...
View ArticleSQL Express 2012 on server can't connect from client Windows 7 machine
I have installed SQL Express 2012 on our windows small business server. After installation, I recreated a database from a .bak file.Then I tried to create a dsn from my network Windows 7 machine and...
View Article