Problem attaching a database to SQL server
HelloI am attempting to attach database AdventureWorksLT2012 to SQL Server...when I right click on the datbase and look at properties/security I do not see Authenicated Users listed...I am told that I...
View ArticleActive/passive Installation
please help me for setup active/passive SQL Server Cluster 2012 (windows server 2012).How it differentiate active/active with active/passive while installing ?Please Help meThanksRajesh
View ArticleSeveral hours ago, Microsoft released the SP4 for SQL Server 2008 and SP3 for...
Microsoft released the SP4 for SQL Server 2008 and SP3 for SQL Server 2008 R2. The updates Can be download from:>> SQL Server 2008 Service Pack 4>> Microsoft® SQL Server® 2008 R2 Service...
View ArticleDR
Presently we have sql server 2012 cluster,windows server 2012 can we setup logshiping, replication, alwaysON on the cluster database for disaster revcovery Please Help
View ArticleMoving database from one drive to another on same server
I am new to sql server world as I am a controls engineer who is being asked to manage an asset management system at our facility. We have a system that uses SQL 2005 Express. My database is on drive C,...
View ArticleSql server 2008 developer installation completed with failures
trying to in stall sql server 2008 developer but installation completes with failures. I get Error reading from file...
View ArticleDatePart function returns a asterisk
I found a DATEPART Function returning an asterisk this morning for a backup job dynamically building the backup path. I just thought I'd share it since I doubt they will fix it.--Run this in SSMSselect...
View ArticleSet flag in DB if the date is 5 days in the past
I've written some code using SQL that checks today's date and compares is to an entry in the database, which I have called EndDate. If the EndDate is within 60 days an email will be generated. If data...
View ArticleWhy do non-English characters show up as ??? in one table, but correctly in...
Hello,I'm using SQL Server 2008 R2, and have two tables, both of which contain fields of type nvarchar(max). If I insert data into these tables using Query Analyser, and include non-English characters,...
View ArticleSQL Query Help
HelloI have created the following Query in SQL which works:SELECT PT.[Date] , PT.[Customer Reference] , PT.[Agent] , PT.[Contact Reason] , AC.[Total Records] FROM (SELECT e2util_dateandtime AS [Date] ,...
View Article5 Days past a specific date
Hi,I have a date in the future, I want to update a field if the date (now) is 5 days past that date.My code I have doesn't seem to work:Use LOGONs ALTER TABLE ServiceExpiryMatrix DROP COLUMN EXPIRED...
View ArticleHow to improve tthe performance of query having more inner joins?
Hello Everyone,I have an query in a stored procedure consisting of 10 inner joins including with two table variables and one hash temp table.The query output is 7500 rows. But the stored procedure...
View ArticleMultiline select and count
I have a table:Users | Difficult ------------------------------ User 1 | Easy User 2 | Medium User 1 | Easy User 2 | Easy User 2 | Hard User 1 | Easy User 1...
View ArticleAugust TechNet Guru Winners!
The results for August's TechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/09/16/the-microsoft-technet-guru-awards-august-2014.aspx Congratulations to all our...
View Articlesql server bulk insert blob filename parameter
My problem SQL script:declare @filepath varchar(100)set @filepath = 'E:\foto\1.jpg' INSERT INTO [dbo].[MsQuestions] ([TestCategoryID], [LevelID], [TestTypeID], [QuestionText], [QuestionImg])select 1 ,...
View ArticleInserting Distinct Rows from One Table Into Another
I have a really basic question and I've seen the answer on the forum but it isn't working for me. I have one table that has a lot of data and I want to copy the Distinct value of one column and...
View Articlesql server 2008 r2 install registry key error during installation
My sql server 2008 R2 installation fails with the following error.Could not write value to key/SOFTWARE. Verify that you have sufficient access to that key, or contact your support personnel.How can...
View ArticleCreate login to sql instance and then login from command line
Hi,I have a sql instance on my local machine and I want to login via the command line using a named user.I can login as the current user with "sqlcmd -S localhost"If I try it with a named user "sqlcmd...
View ArticleSQL Server 2014 Installation Problem
I run the setup file and hit the New Standalone Installation Of SQL Server. When i enter the license key and accept the terms of use and pass the Product Updates and Install Setup Files, i see a...
View Articlehave problem with stored procedure
Basically, I would like to retrieve the SES10 from the table dbo.ses2010_blk$ when it matches both the input parameters of census2010 and the blkgrp. I wrote this stored procedure and it executed...
View Article