Powershell to import csv file
Hello all,Running sql 2008 sp1New to PowerShell. Can someone please check the syntax and tell me if something doesn't look right.Trying to load a csv file into a tableThe csv file is comma delimited...
View Articlelogin failed error
Hey friends,In my SQL server 2008 R2, I have found in error log contineously following error:Login failed for user 'domain\tomt'. Reason: Attempting to use an NT account name with SQL Server...
View ArticleTransaction Log backup error
We were trying to backup the transaction log for one of our databases that is in Full recovery mode. However, while trying to perform the backup we encountered the following error.Backup detected log...
View ArticleLogshipping and the time problem
Hi allI set the logshipping for a database, however it only run for one time. And I found the time of the server change to another day after the first logshipping.any idea about this issue ?
View ArticleStatistics and Tempdb
OS - Windows 2008 R2 SQL Server - 2008 R2 SP2 I executed the following t-sql to gather statistics info on a server: declare @temp1 table (DbName varchar(250), TableName varchar(250), IndexName...
View ArticleDatabase initial size question
Hi all,I've noticed that a such application's databases constantly grow in size, this is not a problem at all. But I've also noticed that theese databases' initial size grow (initial size = actual...
View Articlerestore while backup job is running
We are using sql server 2008, planning to migrate to sql server 2012.We have an ETL process (job 1) that runs each night to restore data from server-A to server-B; We also have a backup job (Job 2) set...
View ArticleRecovering 1TB of unallocated space?
Please read the post well. I posted somewhere and most of the posters assumed that the 1TB table is there. It's not. Also, the size of the MDF is 1.75TB, the HDD has 1.83TB used and 65.8GB is free.So...
View ArticleHelping interpreting SQL 2008 deadlock graph
One our of ASP.NET web apps was a deadlock victim while trying to update a column value on a record (batch table in our case). The app tried to update a column value for a single record to reflect an...
View ArticleVS 2012 Pro - How to print values in Textbox
Is it possible to print the property values of a textbox?ecb
View ArticleThe query has been canceled because the estimated cost of this query exceeds...
Hi Experts, I am getting below error while executing the stored procedure. The query has been canceled because the estimated cost of this query (3258) exceeds the configured threshold of 2500. Contact...
View ArticleSQL Server Agent Jobs not running 'SQL Server Agent is not currently running...
Hello All,We have sql 2008 R2 SP1 A/P cluster running on VM.SQL Server Agent jobs are not running. If I manually try to run the job it gives below error'SQL Server Agent is not currently running so it...
View ArticleSQL Express database file auto-creation error but web-config changed to Azure...
I have an app that is based on the new MVC4 template with SImple Membership provider.I've deployed the app to an Azure website and changed the connection string from a local express-database to an...
View ArticleImport data from Sql tables to Ms access
I need to transfer few tables from sql to ms access using query.Can some one please help in writing it
View ArticleExisting Table Partition
Hi,We have a existing table and it has two date columns (Datatype - Datetime) and it's very big table and we would like to make a partition table. This is a frequently accessed table. We need partition...
View ArticleMirroring status
hI all,In our production environment mirroring is configured for 2 databases ABC and XYZ. When i see the mirroring status through TSQL SP_DBMMirroringResults the status is showing synchronized and...
View ArticleSQL Server becomes Unresponsive
Hi, We are having this issue on our prod server from yesterday. Everytime this happens Server becomes unresponsive and I have to reboot the machine. Looks like this is being caused due to high...
View ArticleSystem.Data.SqlClient.SqlException (0x80131904): Timeout expired.
Hi, I have an application that has started failing with the above timeout error. Can anyone advise on the best way to identify exactly which stored procedure is failing? Can I use the Profiler for this...
View ArticleCreate Partition on Existing Table and then Separate the data and further...
Hi All,I have a existing table on Primary File Group sayTable Acola, colb, colc, coldNow i want to create partition on this table and the data should be distributed based on values in colcEx, i have...
View ArticleNeed a plan to "trap" intermittent blocking
Everything has been running fine for a few months then I get a phone call that everyone in a department using the same app is locked. sp_who2 shows that spid 80 is blocking at least 20 other users....
View Article