Viewing 15 posts - 166 through 180 (of 761 total)
I can see that you have edited your sample data, but only the part that I quoted in my last post. From what I can see, there are still issues...
November 7, 2012 at 10:42 pm
sapen (11/7/2012)
Thanks for the script
You're Welcome Sapen. 🙂
November 7, 2012 at 8:48 pm
You can use the following script to query the Error Log and get result for all Database backups and restores:
Declare @ArchiveNum Int
Declare @Arch_Temp Table(ArchiveNo Int, Date DateTime, LogFileSize BigInt)
Declare...
November 7, 2012 at 4:50 am
adhikarideep (11/6/2012)
Source DB1.TB1 [ID, EAN, ASIN, NAME, CONDITION]1,1001,20001,ps2,COD2,new
2,1002,20002,xbox,HOLA,new
3,1003,20003,xbox,Spider Man,used
I understand the requirement but you're Sample Data is not correct. The above quoted part shows that the table...
November 7, 2012 at 4:14 am
Attaching an Excel sheet is not called providing readily consumable sample data. Please check the link in my signature and post sample data as shown in the link. This time...
November 7, 2012 at 1:35 am
This would also work fine for your requirement:
Create Table Ex
(Id Int Identity(1,1),
Value NVarchar(5) )
Create Table Ex1
(Id Int Identity(1,1),
Value NVarchar(5) )
Insert Into...
November 6, 2012 at 3:12 am
That was a really nice catch Mr. Moden..........I came up with the exact same query as Dwain......never thought of the scenario that you mentioned. I guess this foresight comes with...
November 6, 2012 at 2:53 am
From what I understood from reading your requirement and looking at the image you uploaded....i have come up with the following....I think it should work for you:
Select Employee, MIN(Effect_Date) As...
November 6, 2012 at 1:53 am
"sp_MSforeach.." procedures are undocumented and according to Microsoft are for Internal use only.
If what you are trying to do is an Adhoc requirement then it is fine to use...
November 6, 2012 at 12:43 am
Yes, Inserting a few million records just takes a few seconds.....I have a feeling you are getting data from one table....performing RBAR operations on the data and then Inserting the...
November 4, 2012 at 10:01 pm
You can understand the a-z of Indexing at the below link.....hope it helps:
November 4, 2012 at 9:30 pm
The pleasure is all mine Mr. Moden......I have learnt a lot from the articles here at SSC.....and its a pleasure that i could recommend a few of those to other...
November 4, 2012 at 9:13 pm
Jeff Moden (11/2/2012)
BriPan (11/2/2012)
but for the quick response below are the steps
1)use split function fn_Split(search google you will get this one)
2)apply this split function on...
November 2, 2012 at 10:09 pm
kingdonshel (11/2/2012)
November 2, 2012 at 4:06 am
You can get it as follows:
Declare @SampleIDs Varchar(100)
Set @SampleIDs=(Select SampleIDs From Sample1 where AutoID=1)
;With CTE
As
(
Select Item from dbo.dbo.DelimitedSplit('1,3,4',',')
UNION
Select Item from dbo.dbo.DelimitedSplit(@SampleIDs,',')
)
Select STUFF((Select ','...
November 2, 2012 at 4:02 am
Viewing 15 posts - 166 through 180 (of 761 total)