Hi
1) If i have a table of 1TB,and the fragmentation is 85%,apart from rebuild index,what other options(other than reorganize index) do we have to reduce fragmentation?2) If MODEL and MSDB databases are...
View ArticleHow to pass ID of One Table to Another Table
my first table has two field ID is identity=yes,JOB_ID int--------------------------Second table job_id is identity=yes name nvarchar(50)what I have to do if I have to pass second table job_id in...
View ArticleDistributed Transactions and Linked Servers
I'm somewhat of a novice with SQL Server but I'm learning rapidly from an application I'm developing that uses SQL Server very heavily. In conjunction with the development of this application, I have...
View ArticleUsing INFORMATION_SCHEMA.TABLE_CONSTRAINTS
Hi Am trying to get the schema of a table from the following INFORMATION_SCHEMA.TABLE_CONSTRAINTS whethere its a good approach.Because in MSDN they have mentioned getting schema is not advisable.
View ArticleUncommitted transaction with code wrapped in transaction
The following query to about 2.5 hours to run and the commit block was hit because the message in that block in it was shown. It looked like it ran successfully, but I got "There are uncommitted...
View ArticleHow read data column wise if any null value then we have to read next column...
Hi,How to read data column wise if any null value then we have to read next column ...etc.I have Tablecol1         col2      col3         col4     col51              1            2...
View ArticleSQL log file
Dear all,I have a SQL 2008 R2 installed on a SCCM server and the Report Server database log file has grown massively (almost 400GB). However I have attempted to shrink it via the SQL server management...
View ArticleSP_WHO2 and KILL sessions
There is one app that opens a lot of sessions to a database and never closed for that app. At some point, there are 100 connections.1) My question is, what happens when the user(s) closes out the...
View Articlesql connecting problem form ip of local server
hello sir i have counfigured sql server 2008 r2when iconnect sql database engine using  ip\"instance name" it show me error  (ip address of local server) i got same error when i am connecting only ip...
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 Articleunable to unistall sql server
Hi guys, i have installed sql server 2012 express edition in my laptop (win7). mistakenly the roots folders (C:\Program Files\Microsoft SQL Sever) got deleted.now i am unable to unistall the sql server...
View ArticleNeed help in asp.net website connection with database
Please help urgently need connection of sql server database with asp.net website.I want to create three different database tables for my asp.net website project1]student table2]faculty3]admin...
View ArticleTriggers / Automatic Data Checks
I have a database that saves the filepath of a certain file to a network drive. The problem I am experiencing is that it gives an error message that it could not connect to the server, and consequently...
View ArticleI just downloaded SQL Express Server 2012 on my Windows 7 PC and...
I just downloaded SQL Express Server 2012 on my Windows 7 PC and...it says it installed correctly.1) I have two links on my "Start Menu" All Programs link: one is SQL Server 2012 and SQL Server 2008....
View ArticleCheck point execution
Hi Team,How can we check checkpoint execution was executing in sql server 2008 R2 due to this not able take database backupCould you please suggest me.Execution was completed or not.Regardssubu
View Articlehi
I have series of Backup's, and when i try to restore them,out of which few backup files did not restore,what are the possible reasons and how to resolve it?
View ArticleTroubles Exporting SQL databases from Azure
1. If I connect via SQL Server Management Studio and choose Export Data Tier Application to local disk, it never ends 2. If I export via Azure web portal, it takes few hours 3. The only way that works...
View ArticleSQL Bulk Update using Update query in SQL Table
Hello All,I want to update data in sql table depends on some condition. I am getting excel sheet from client and want to change value of field say Status = c.Client is sending excel sheet with 300...
View ArticleTroubleshooting Memory
Hi allWhen troubleshooting what I suspect is memory pressure, which performance counters would I look at together?I've been advised that just using PLE is not enough and that it needs to be used in...
View Article