database of 1TB size.
In our production environment server,we have 1TB database and customer has requested to move it to different server say it as DR server,we did it by using backup and restore method, which has comsumed...
View ArticleCommand "ShowSqlServerObjectExplorer" is not valid
I am getting the message: Command "ShowSqlServerObjectExplorer" is not valid when I start SSDT.History: Installed VS2012, then service pack 4, then added SSDT-BII can click through the dialog, and then...
View Articlestored procedure
hi below procedure is for update or insert.but everytime it inserts new row with previous row data and updated one not updating existing row.ALTER PROCEDURE [dbo].[sp_WorkStatus] -- Add the...
View ArticleSQL Server 2012 + report builder - edition question
Hi,I need to implement small solution of DWH and reporting above it.I need to buy cheapest edition for that and my question is1a) Is it possible to have SQL STANDARD edition + SSRS reports + report...
View ArticleDatabase restore from backup--miss some transaction log backup files.How to...
One database with full recovery modelit runs full backup at 12:00 am on 1/1 one time.Then transaction log backup every 3 hours. 3:00 am, 6:00am,9:00 am, 12:00 Pm, 3:00Pm,6:00PM,9:00pm,12am......If we...
View ArticleHow to Detect Unique Key Violation And Priamry Key Violation Seperately
i want to detect unique key violation and primary key violation separatelyby usingcatch(SqlException ex)if(ex==2627)///then some codebut this number is same for unique key and primary keyhow to detect...
View ArticleI can't Setup SQL Server 2008 with SQL Server 2012
I use Windows 8.1 and I was setup SQL Server 2012 successfully , after that I want to setup windows server 2008 , but each time I was tray to setup the operation failed and this message show up to...
View Article2 sql server alerts.How to fix it? Thx.
Path: test1.tu.localLast modified by: SystemLast modified time: 1/15/2014 11:11:11 AM Alert description: D:\MSSQL\Data\tes1.NDF:MSSQL_DBCC10: Operating system error 665(The requested operation could...
View ArticleSQL server automation
How to create a scheduled maintenance plan with the help of Windows Powershell ?
View ArticleSQL Server 2005 performance decreases with DB size while SQL Server 2012 is fine
Hi,We have a C# windows service running that polls some files and inserts/updates some fields in database.The service was tested on a local dev machine with SQL Server 2012 running and performance was...
View ArticleGet the connected users count from sql server using powershell
Hi,I am working on SharePoint 2013,I am having SQL server 2012.I want to get the Connected Users count from sql server using power shell.Can any one please let me know how to implement.Thanks in...
View ArticleSQL Server Metadata DDL scripts
I need to get DDL scripts for few tables in SQL server. In Oracle I did the same using below querySelect DBMS_METADATA.GET_DDL('TABLE','TABLE_NAME','DATABASE_NAME') AS DB from DUAL";Any Idea how to get...
View Articleround function sql server 2012
need to use round function to round results of calculated column to 2 decimal places. Example 209.700000 to 209.70
View ArticleSQL Server 2012 Express startup
My windows 8.1 pro has sql server express installed. how do I turn it on or activate it? I want to set up an Access 2010 project.
View ArticleSQL Server 2012
I would like to install SQL server 2012 in my personal laptop (Window 8.1)What is the difference between SQL server 2012 developer edition and other edition except express.My question is if I continue...
View ArticleTrying to move NDF file to the PRIMARY filegroup
We have a DB with an MDF file and an NDF file on different filegroups: MDF is on PRIMARY and NDF is on XYZ filegroup.Is there a way to move the NDF file from the XYZ filegroup to the PRIMARY filegroup...
View ArticleTo make Three row values in a single row
Hi,Below is the Table Format i have.Here for the first Mail_ID i have 3 mail addresses.similarly for second ID too.I want First three rows to be in a single row.and so on...Plz help in doing...
View ArticleCreate database copies from Vb.net
Hello !I'm working on vb.net 2013 and sql server 2008R2.I have this situation to resolve :I have a database "DB1". I want to create a copy of this database on the same sql server with another name...
View ArticleHow to know where all my Update of a field created records (Like when we have...
How do I know where all( in which tables) the new records are created when I've updated a field in a Table.I've updated a field it displayed. actually it updated only one row in my original table1 row...
View ArticleUnexpected Growth of MDF file
Hi, How to find the reason and How to overcome unexpected growth of MDF file.User DB is 120GB,but today morning its reached 360GB suddenly. What might be the reason and how to get back...
View Article