Can a corrupted BAK file be restored ?
Hi,When we restore a database from backup file, end users say that some of the information is missed out.However, we have checked and confirmed the backup should be fine that night and the BAK file can...
View ArticleThis SQL code is not working
SELECT tt.[Member ID], tt.Contact, tt.DOB, cl.[Member ID], cl.Contact, cl.DOB FROM (SELECT cl.[Member ID], cl.Contact, cl.DOB,...
View ArticleCorrect installation order for SQL Server 2012 and Visual Studio 2012
What is the correct installation order for SQL Server 2012 Enterprise and Visual Studio 2012 Ultimate?I have read so many conflicting responses online and would appreciate if someone could clarify? Do...
View ArticleWindows 7 CREATE DATABASE permission denied in database 'master'. (Microsoft...
HiI have migrated to a new computer using Windows 7, 6 gig memory, I7 chip (old machine had xp) and have installed Visual Studio 2008 and SQL Server 2008 R2. I get CREATE DATABASE permission denied in...
View ArticleFileGroup And Files
hi,I'm new to SQL DBA. In our database some tables are partitioned on month column. Say for last 5 month they partitioned the table. So they created 5 files for each month and assigned it to 5...
View ArticleHOW - Importing DATE (in Oracle) type to SQL Server
I have a large text file created from Oracle database. One of the fields in the .txt file is a DATE (in Oracle) type. I am having hard time mapping it into any datetime data type (in SQL Server 2012)...
View ArticleNo access to Management Studio
I installed Microsoft SQLServer 2008 Express and I can only access Two functions: Import Export Data and Configuration Tools.There is no Management Studio
View ArticleSql server database login-With Enforce password policy
hello,we have a existing sql server login and i want to enforce paswword policy for the existing login.will the password expire or will it get locked if i check only enforce password policy.Thank...
View Articlesql server management studio
TITLE: Connect to Server ------------------------------ Cannot connect to SUMALIKA. ------------------------------ ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while...
View ArticlePowershell script to get the Disks that are offline
Hi I have a scenario where in i need to get disks infomation of 100+ remote servers using powershell script. I have below script which only giving the disk information which are online. Get-WmiObject...
View Articleerror while using BCP
I am trying to export the file using bcp and my error isC:\Users\rajesh>bcp Adventureworks.HumanResources.Department out c:\test\dept.txt -n -SLaasya -T SQLState = 37000, NativeError = 4060 Error =...
View ArticleSQL SERVER 2008 Partitioning
Hi,I need a complete reference document for partitioning concept in SQL Server 2008. Please someone guide me by giving a web link or a PDF document.Thanks in Advance.Regards,Jaypee
View ArticleHow query twice on same column in where clause of sql query
The above data denotes contacts who clicked on particular link.When user click on a link its linkid and contactid will saved to database.Now from the above data i need contacts who clicked on link id...
View ArticleWhile debugging, what can you do in the SSMS Command Window.
Using SQL 2008. Come from a .NET background. I know in .Net what to do with the command window. But I have not been able to figure out what to do with it while debugging in SSMS. Can you give me some...
View ArticleNeed help with manipulating datetime data types
I have an existing process (that I cannot change) that purges old data from tables that contain a varchar column with a yyyymmdd date. For convienance sake, let's say that table1 now has a datetime...
View ArticleHow do i add time "23:00:00" to a date data type? I have mentioned the code...
DECLARE @FIRSTDATE date = '2014-07-06'. I need to add time to this without initializing it on the first place. SO basically it should look like '2014-07-06 23:00:00'. As far as i know it can be done...
View ArticleCan an asterisk be used in an Append Query or some other way?
Hi friends,Is there anyway to merge two or more tables reflecting the view with all the columns in such a way that similar ones are used ones and additional ones also included in a way other than using...
View ArticleCan we extract blob objects from sql database to a human readable format?
Hi All,I have question How can we extract blob objects from Sql database to human readable format ?Blob includes Images, text and docs.Thanks MougBest Regards Moug
View ArticleI can't uninstall sql server express
I'm running Windows 7 64 bit and trying to install SQLEXPRWT_x64_ENU.exe PLEASE HELP... AT LEAST HELP Me GE GET IT OFF MY SYSTEM.LOsing patience, and my mind. Thanks in advance.Kay
View Article