Viewing 15 posts - 676 through 690 (of 1,409 total)
karunakar2351 (9/4/2013)
I have a table with column name is
proposaldata
123456
542213
and other table column is
proposaldata
000123456
000542213
so i need to compare to this columns of different table s but 123456 and...
September 4, 2013 at 4:16 am
This will give you the desired results:
;WITH CTE_XML (Detail, DetVal, Data1, Data2, Data3) AS (
SELECT
DetTbl.Detail
, Data.DetVal
,DetVal.value('(/keys/Key/KeyID[. = "Data1"]/../KeyVal)[1]', 'varchar(50)') AS [Data1]
,DetVal.value('(/keys/Key/KeyID[. = "Data2"]/../KeyVal)[1]', 'varchar(50)') AS [Data2]
,DetVal.value('(/keys/Key/KeyID[. = "Data3"]/../KeyVal)[1]', 'varchar(50)') AS...
September 4, 2013 at 4:02 am
MSDN, Technet and BOL have very extensive explanation about the backup process.
Just start reading 😉
http://msdn.microsoft.com/en-us/library/ms175477(v=sql.90).aspx/css
http://technet.microsoft.com/en-us/library/ms187048(v=sql.90).aspx
September 4, 2013 at 3:07 am
Double post, please reply only to the following http://www.sqlservercentral.com/Forums/Topic1491178-1550-1.aspx
September 4, 2013 at 2:55 am
gurbanov.1984 (9/4/2013)
create procedure yerde
@phone decimal(18,0),
@unvan nvarchar(200),
@yunvan nvarchar(200),
@Sentar smalldatetime,
@naryadN smallint,
@naryadtar smalldatetime,
@sebebi nvarchar(200)
as
insert yerdeys(
phone ,
unvan ,
yunvan ,
Sentar ,
naryadN ,
naryadtar ,
sebebi
)
select
@phone,
(select top 1 *from phone where phone=@phone),
@yunvan,
@Sentar,
@naryadN,
@naryadtar ,
@sebebi
update...
September 4, 2013 at 1:48 am
Junglee_George (9/4/2013)
Please help to write the SQL query in a more cleaner way...CASE ISNULL(TCBOV.cboValueName, '') WHEN '' THEN ''
ELSE TCBOV.cboValueName
END
Thanks
You don't have to use a CASE statement...
September 4, 2013 at 12:57 am
Without the table definition and some sample data it is hard to analyse your query and give you better solutions. But I'll give it a try.
I noticed you use 8...
September 4, 2013 at 12:20 am
I'm not familiar with LiteSpeed, so I don't know how much a LiteSpeed restore script differs from a native SQL restore script.
This is the approach you need to follow: Compare...
September 3, 2013 at 11:54 pm
Take a llok at this article by Brent Ozar. It will answer most/all of your questions.
http://www.brentozar.com/archive/2013/08/what-is-the-cxpacket-wait-type-and-how-do-you-reduce-it/
September 3, 2013 at 7:32 am
You can not give alias names to a column being updated inside an update statement. Remove the text "AS PhaseType", "AS SDAAFV" and "AS TQPIComment" from the update statements.
September 3, 2013 at 6:10 am
Yes, only latest SP and optional latest CU.
Btw: Microsoft recommends to only install CU if you experience issues solved by the CU. Quote: Apply it only to systems that are...
September 3, 2013 at 4:30 am
From the Microsoft site http://support.microsoft.com/kb/935897:
Cumulative update (CU)
•The update can be requested by any customer, regardless of their support offering.
•The update is released every 2 months.
•The update contains the following:
???All previous...
September 3, 2013 at 4:03 am
Ryan Keast (9/3/2013)
I've cracked it guys.....
Because you perform a calcultation with the values out of the COALESCE I suggest you set a numeric value as second parameter instead of a...
September 3, 2013 at 3:49 am
Put the fileds in the outer query inside CASE statements:
SELECT ....
, CASE
WHEN APP.APPOINT IS NULL
THEN 0
ELSE APP.APPOINT
END AS 'Number of Appointments'
, CASE
WHEN CARDED.Carded IS NULL
THEN 0
ELSE CARDED.Carded
END AS...
September 3, 2013 at 3:45 am
Take a look at the following article: http://technet.microsoft.com/en-us/library/ms345449(v=sql.105).aspx
Keep in mind that it's possible the reported dependencies are NOT up-to-date. Some objects can be created when the depending object(s) does not...
September 3, 2013 at 2:14 am
Viewing 15 posts - 676 through 690 (of 1,409 total)