Viewing 15 posts - 2,971 through 2,985 (of 8,761 total)
This is quite easy when using FOR XML PATH, here is a quick example
😎
USE TEEST;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#EmpMaster') IS NOT NULL DROP TABLE #EmpMaster;
CREATE TABLE #EmpMaster (EMP_ID INT,Ename VARCHAR(50))
IF OBJECT_ID(N'tempdb..#EmpDetail')...
October 29, 2016 at 2:33 am
mah_j (10/29/2016)
you will need this index on the dbo.Transaction
CREATE UNIQUE NONCLUSTERED INDEX [INDEX_NAME] ON [dbo].[Transaction]
(
[InvoiceUID] ASC,
[IsSuccess] ASC,
[TransKind] ASC,
[TransactionDate] ASC
)
INCLUDE ( [CardNumber],[ReferenceNumber],[SeqCounter],[UnqReferenceNumber]);
and this index for the dbo.Invoice
CREATE UNIQUE NONCLUSTERED INDEX...
October 29, 2016 at 2:01 am
Are there no indices on the table?
😎
October 28, 2016 at 9:01 am
Suth (10/28/2016)
I'm currently trying delete data from a large database with the below code... But its taking quite a long time to delete 1000...
October 28, 2016 at 8:27 am
Question, did you try to attach the mdf with ATTACH_REBUILD_LOG?
😎
October 28, 2016 at 6:04 am
Quick suggestion, use wildcard for the namespaces
😎
USE TEEST;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'tempdb..#Data') IS NOT NULL DROP TABLE #Data;
SELECT
CONVERT(XML,'<PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<Catalog>My_CAT</Catalog>
<Cube>My_Cube</Cube>
<DbpropMsmdOptimizeResponse>1</DbpropMsmdOptimizeResponse>
...
October 28, 2016 at 6:00 am
torrid.inundate (10/28/2016)
/*
The following example displays the current date and time, uses CAST to change the current date and time to a character data...
October 28, 2016 at 3:20 am
Quick suggestion, use the CONVERT (link to BOL) function to explicitly convert the string values to the datetime data type rather than depending on any implicit conversion
😎
October 28, 2016 at 12:43 am
SQLSalas (10/28/2016)
Although it says it was enabled in the configuration, there were 2 traces with...
October 28, 2016 at 12:38 am
SQLSalas (10/27/2016)
October 27, 2016 at 11:49 pm
hegdesuchi (10/25/2016)
If I have Target Table with columns :
Target_ID,
name,
createdate which is...
October 27, 2016 at 11:43 pm
albanamino09 (10/27/2016)
I need to round some values in a column, with a step of 30.
For example,
every value from 0.1 to 29.9 to be rounded to 30,
every value from 30,1...
October 27, 2016 at 7:00 am
arto.ojala (10/27/2016)
I guess this has got something to do by conversions, when having numbers in char or varchar-column, and using...
October 27, 2016 at 5:49 am
Brandie Tarvin (10/27/2016)
Eirikur Eiriksson (10/27/2016)
Brandie Tarvin (10/27/2016)
BrainDonor (10/27/2016)
Phil Parkin (10/26/2016)
Any clairvoyants here today?I knew you were going to ask that...
I foresee that question being asked again in the very near...
October 27, 2016 at 5:44 am
Viewing 15 posts - 2,971 through 2,985 (of 8,761 total)