sql server add primary key on existing table
How do i add primary key to this table i show in picture..Pls anyone resolve this...!
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 ArticleCannot start sql server (cluster)
Hi.I have set up a cluster, identical in two environments. In vmware vphere 5.sql 2008r2 on server 2008r2 x64One of them will no longer start the sql service.Don't know exactly what has happened here,...
View ArticleData deleted, unallocated space NOT regained.
I need to regain UNALLOCATED SPACE inside a database file, so that I can avoid 'out of space' errors that stop queries from running.I've deleted about 12GB worth of data from a 20GB database, but no...
View ArticleReplication
Hi all,i am just started learning the ms sql server DBA.please tell me.Generally what kinds of issues happening in the REPLICATION..?thanksnaga
View ArticleGet a notification when free space into a database is going to terminate
Hi all,is there a way to receive a notification when free space (unused + unallocated) of a database is going to be spent?
View ArticleTime-out occurred while waiting for buffer latch type 3 for page (1:203),...
Strange effect when running a manual checkpoint in TEMPDB (don't ask me why I did this).It took 5min to complete and finally failed generating error: Time-out occurred while waiting for buffer latch...
View ArticleResource governour, howto see/proof setup is working ?
Hi all, I have a SQL 2008 R2 server with 20 databases in one instance. Users in one of those db's are causing somtimes high cpu usage and I want to avoid that.So I set up resource governour with a new...
View ArticleSQL Server 2005 Database Mail - Mail configuration information could not be...
I'm trying to setup Database Mail and send a test message, but it's not working.I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none...
View ArticleIs there any reference sites or configuration to run SQL DB in PCI-E flash...
Hi experts, I run our SAP/SQL in HP EVA 8400 now but the MA will be expired soon. I plan to migrate to an ex: P7400 mid-range storage. However, a consultant give me a very interesting idea. Our...
View ArticleWhy MODEL database recovery is full eventhough it is template for tempdb
HiWe all know that model database recovery model is full and tempdb is simple. But we also know that model database is template for tempdb. Then what exactly changes tempdb recovery model during sql...
View ArticleChanging sql collation settings in a sql failover cluster.
Hi,We have 5 branch offices and 1 head office, recently we installed a sql failover clustering with 2 nodes in the head office. The problem now is the 5 branch offices are having sql collation as...
View Article833 warnings when doing Transaction Log Backups
We have many instances of SQL Server 2008 Workgroup Edition that ran great on SQL Server 2008 SP1 however after these nodes have been upgraded to SQL Server 2008 SP2 or SP3 we have had an issue where...
View ArticleBuiltin\Administrators cannot login in SQL 2008 R2
I created a Windows Login, Admin2, and added that to the Windows Administrators Group.I then added the Builtin\Administrators login to SQL and assigned it to the Sysadmin Server role.I then logged into...
View ArticleTempDb getting full
Hi , I have a Sp which is generating Dynamic select query, that query returning some 75000 records. When I am runing this sp Its getting very slow after few minutes I am getting result like "Msg 1105,...
View ArticleWould a composite unique constraint also fulfill a need of a non-unique index...
Current Setup:Suppose if I have a table called [Table1] with the following fields in it (only relevant fields are shown)[RowId] int non null identity (1, 1) primary key[OwnerId] int non null has unique...
View ArticleHow to fix "There is insufficient system memory in resource pool 'internal'...
Server Setup Windows Server 2008 R2 x64. Installed Memory: 5GB Server also runs three sites on IIS. SQL Server 2012 Standard x64 (updated to CU5) Minimum Memory Setting (in SQL Server): 0MB Maximum...
View ArticleHow to increase row size in SQL 2008
Hi, While altering my table in sql 2008 standard. It throws errorWarning: The table "t1_Data" has been created, but its maximum row size exceeds the allowed maximum of 8060 bytes. INSERT or UPDATE to...
View ArticleHow to recover a database when log file is deleted
Hi,Please I need your help.It happened that there is a friend who is new to SQL server committed a fatal mistake. He was trying to fix a problem but made a bigger one. The problem was that the log...
View ArticleGetting the First Dataset from a Multi-Dataset Stored Procedure
I can get all the datasets with SQLCMD execution (ugly). Is there a better programmatic way? Thanks.CREATE TABLE #Space ( DB sysname, dbsize varchar(50), freespace varchar(50)); INSERT #Space EXEC...
View Article