Quantcast
Channel: ฟอรัม Getting started with SQL Server
Browsing all 8428 articles
Browse latest View live

the column in the table do not match an existing primary key

I've got two tables tbl_Workshop and tbl_Materialtbl_Workshop has columns workshopID, workshopTitle, materialIDtbl_Material has materialID, name, workshopTitlewhen I'm trying to create a relationship...

View Article


left substring

declare @ch varchar(200) declare @result varchar(200) set @ch = 'US , CA- I have been there' BEGIN set @result = LTRIM(RTRIM(CAST(@ch as varchar(max)))) set @result = substring (@result,...

View Article


Issue using "Create View" Permissions

A dev needs to be create views in a sql 2008 database. (They already belong to db_reader, db_writer DB roles for that DB). I ran this:use <myDB>GRANT CREATE VIEW to <myUser> But when he...

View Article

data type for duration

What should be the datatype for duration? Like I've a seminar database and I want to mention its duration 5hrs 30mins like that.

View Article

SQL Server 2012 Standard edition installation

Hi,I am planning to install Sql server 2012 standard edition on one of our windows server 2012 standard edition.Can some one please guide me through process of installing sql server per CAL'sWe are...

View Article


Become our FIRST Microsoft TechNet SQL Server Guru of 2014!!

Happy New Year!Time for a fresh start!We're looking for the first Gurus of 2014!!This is your chance to make your mark on the Microsoft developer community.All you have to do is add an article to...

View Article

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 Article

remove 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 Article


sql 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 Article


Cross 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 Article

MS 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 Article

powershell 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 Article

Licensing 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 Article


Unable 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 Article

find 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 Article


What 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 Article

replace 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 Article


SQL 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 Article

How 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 Article

Clustered Index

Hi,Why we can not create multiple clustered index in a table?ThanksShashikala

View Article
Browsing all 8428 articles
Browse latest View live