get updated data
Hi,In the below query im expecting distinct CPSTatus and CPStatusCmmetns but it displays duplicate SCheduleSELECT Stuff((SELECT Distinct [CPStatus] +' \n ' + [CPStatusComments] FROM [EFIWorkStatus1]...
View ArticleCapture Data
I have this table called A which get inserted in Table B. Everyday the table A get truncated and new data are refresh from Table B. Table A however have a lot of data that is not related to B. NOw I...
View ArticleConvert varchar(20) date to date that looks like mm/dd/yyyy
Good afternoon,I am a total novice at SQL and have been tasked to change a varchar(20) date column (shows up as m/dd/yy) to show up as mm/dd/yyyy. I've looked at the previous posts, but being a novice,...
View ArticleNumbers of SQL Server CAL license required ?
Hi,We are going to set up a SQL Server 2012 Server with 2 instances. The first instance has 25 maximum number of concurrent users and the second one has 10 concurrent users.Does it mean that we need...
View ArticleCan't buy SQL 2008 R2 in Australia
I live in Australia. I have an evaluation edition of SQL Server 2008 R2 which has expired and I want to licence it for development work. As directed I went to the web site advised by SQL Server (your...
View ArticleCannot start the SQL server service after you install Active Directory
Good Morning,Im the system admin for a small company. We have a dedicated domain controller but it is the only one. To get a second domain controller up and running on our domain, I installed the AD...
View Articlei have declare two varibles in date and datetime ? with varible type?
i have declare two varibles in date and datetime ? with varible type?declare @date varchardecare @datetime varchar1here i need to increment that declared varible likeset @date=@varchar+1set...
View Articlemsdb..sysjobhistory vs msdb..backupset
What is the difference between these 2? msdb.dbo.sysjobhistory vs msdb.dbo.backupsetThe reason I'm asking is because I have a weird situation here - only 1 day of backup history is insysjobhistory. I...
View Articlehow to apply business rules with out breaking to patch missing data
Hello Experts, I am very new to SQL And i have no idea how to apply below rules Data is polling for every 5 minutes so 12 time intervals per hour 6:00 -->1...
View ArticleHow do I write a query to give back the records only with today's date?
For example the date format is "2014-05-01 16:31:35.897" is a column called "EffectiveStartDate' I tried using where EffectiveStartDate like '2014-05-01%' but that returns nothing.
View ArticleDelete from 3 tables
I have 3 tables I need to delete partial data from.ObservedSpeciesCollectionMethodID CollectionMethodID ObservedSpeciesID--------------------------------- ------------------ -----------------109150...
View Articleupload the sql database to host and manage it
helloi have window 8.1sql server express 2014visual studio 2013 expressi have built a database and i am ready to copy it to the host.not in vs or in sql.s i have found the.. connect to remote server..i...
View ArticleBackups
I have a job set to run once a day to create a backup of my databases. They are scheduled staggered.When I look at the Log FileViewer and I select SQL Server for the log to look at I see the message...
View ArticleNon sysadmin Users running a job
According to BOL, only sysadmin users or owner of the job are allowed to run jobs.I'm not too concern with viewing the jobs becuase the job will executed from sp.How do I allow non sysadmin users to...
View Articlesql server database backup from lan.
Hello All,i am using sql server 2008r2 express. two computers are connected through lan. sql server is installed on one computer which is server. second one is client and using database from server...
View ArticleSQL Server 2012 AdventureWorks database attachment issue
Hi Folks,I have SQL Server 2012 installed on Virtualbox, and I have downloaded the AdventureWorks2012.mdf and I am having trouble attaching it with SS Management Studio.I copied the file on to a USB...
View ArticleSQL Server - 1st Time User
First of all, I have no idea what I am doing. I have no idea if this is the correct version that I should be using or not. I have never used SQL Server before.I am trying to study for exam 070-461. I...
View ArticleCredentials issue with MS SQL Express 2014
Hello,I have kind of simple issue but I failed to resolve it. Here's the issue: I have SQL Server Express 2014 installed on my PC. I have to use SQL Server authentication. As 'sa' I created login and...
View ArticleBest use services SqlServer
hIIf i have to migrate a database sqlserver, which is best : ssis or engine database, although with both i migrate with ssis package or tsql...but i supose that ssis is best migrate: transform and copy...
View ArticleProblem in SqlServer while doing RDA....
Hello, I'm developing a project using RDA. My mobile device has SQL Server CE and the server PC with IIS is set for this job. I developed a simple application at first, I wanted it to access a db named...
View Article