change them from their current varchar datatype to date and datetime datatype
Hi Guys I still have not got answer to this problem. I have 100 colums in a table which are varchar datatype. I want to change them from varchar datatype to datedatatype. these colums are datefield...
View Articleremove text between (Branch)
Remove the text between (branch)CREATE TABLE #SampleData( SomeText varchar(1000)) INSERT #SampleData SELECT '( Branch is not CA and Branch is not MX)' UNION ALL SELECT '( Branch is not CA and Branch is...
View Articlesql server 2005 on windows8
Hi,I have new sys with windows 2008 OS.Can we install sqlserver 2005 ,vs 2008 on windows 8.or do I need to downgrade to windows7.
View ArticleCross table result
PNameFYearIncomeRAM2001 500 RAM2002 800 RAM2003 900 SHYAM2001 200 SHYAM2002 100 SHYAM2003 500And I need following result :PName2001 20022003RAM500 800900 SHYAM200 100500how can I do it without using...
View ArticleMS SQL 2012 Standard & Web Site/App - how many CAL's, do i need ?
Hello,I'm buillding a scenario with MS SQL server 2012 and i'm tring to determine how many CAL's i need.Scenario:I have one server and installed MS 2008R2 server, MS SQL 2012 and IIS Role hosting my...
View Articlepowershell sql server performance
Hi, I am trying to get performance data using powershell. When I run the command "get-wmiobject -list" I get classes likeWin32_PerfRawData_MSSQLSQLEXPRESS1_MSSQLSQLEXPRESS1Locks. However when I run...
View ArticleLicensing MS SQL 2012 Enterprise
My company has two servers with two physical processors with 8 cores each one. We want use MS SQL 2012 Enterprise in those servers. We calculated, that if license MS SQL 2012 per core costs near 6500...
View ArticleUnable to Access the data
Hi,User complained that unable to access the data in database when he runs the query. What may be the reasons. As a DBA When I ran the same query I can able to fetch the data.Please provide the reasons...
View Articlefind and replace
I have to get the query for data in an column and delete if the data exists My data is COLUMNA ------------- (Location is Asia and Location is Africa) and (Manager Name Kumar and Manager Name Kannan)...
View ArticleWhat are the agents involved in SQL Server Replication.
Hi All,Would you please correct me if I think wrong regarding the below agents involved in types of replications. Thank YouAgents Involved in Snapshot Replication: Snapshot Agent Distribution...
View Articlereplace with '' if text is and
declare @t table ( s varchar(8000) ) insert @t values('Location is Asia and'), ('(Location is Europe') select s from @t I want to find if the last character is and. if yes , remove the...
View ArticleSQL PASS 2012 Videos??
Hello, For those of us, who could not make it to PASS SQL meetings, we can get previous years videos for free on www.sqlpass.org and also can buy the latest ones . So, my question is , does...
View ArticleHow capture output of DBCC command in new table?
The dbcc sqlperf(logspace) statement returns the "Log Size (MB)" column indicating the physical size on disk of the transaction log for a given database. How can I capture that Log Size field into in...
View ArticleClustered Index
Hi,Why we can not create multiple clustered index in a table?ThanksShashikala
View Articledeclare @var varchar(50)='Application-04-03-2014.txt'i have the following variable and i want to print 2014-04-03 from the given variableneed help..want to do it using the string functions
View ArticleWhy do some SQL Server examples have a letter and a period before the column...
So I'm reading (very slowly) the Querying SQL Server 2012 Training Kit book from Microsoft Press. It's very good, but I'm progressing slowly. This may seem moronic, but I don't think the book explains...
View Articleget record from special charcter after removing
I have data inserted from XML into my table with char() values.I need to get eliminated in my query for filtering datadeclare @t table (s nvarchar(max) ) insert @t values('(Location is Asia and...
View ArticleUnable to install database engine
I am a student and I am trying to get SQL Server 2008 Developer edition to install. It keeps asking for a WMI server and I do not have one on my laptop. :) I am running Vista Ultimate 32 bit. I have...
View ArticleHow to find User Login Password in SQL Server?
Hi All,Earlier one of my team member has created a user login and password but forgot the password after few days and now we need to know the password of that login. Some of the application are using...
View ArticleSQL Server 2012 Transactional Replication with updateable subscriptioins
Hi All,It is heard that Transactional Replication with Updateable Subscriptionsisdeprecated in SQL 2012 so it is not possible to configure through the wizards but we can still configure it by using...
View Article