Viewing 15 posts - 106 through 120 (of 761 total)
I think this is what you are looking for...it would dynamically flatten your data :
--Creating Table
CREATE TABLE #Test
(
ProductID int,
MainMasterFeatureID int,
--MasterFeatureValue Varchar(100),
ChilFeatureName varchar(100),
ParentFeatureName varchar(100)
)
--Inserting Sample Data
INSERT INTO #Test
SELECT...
January 13, 2013 at 11:04 pm
raghuldrag (1/8/2013)
i ve 5 tables now i wanna make a join with in that and i m done join
now the problem is how to pass...
January 9, 2013 at 11:58 pm
If the values in the node column can be dynamic then you can do a Dynamic Cross tab as follows :
--Creating Table
Create table Ex1
(
ID Int,
Name Varchar(30),...
January 9, 2013 at 11:53 pm
Karthik could you brief us upon the requirement a bit??...It won't be that much of an effort......Plus you might get opinions that might make this requirement easier for you cause...
January 7, 2013 at 5:04 am
It depends.
If the insert and updates are not inter-related then I would suggest that you put them into different transactions as this would lead to holding of Transaction Locks...
January 7, 2013 at 3:18 am
VegasL (1/5/2013)
Thanks vinu512 for posting the initial solution, along with showing me the correct way to use the create table function.
I'm glad I was of some help.
You should...
January 7, 2013 at 2:08 am
I already have Results1 and it's silly to do it again just to calculate Results2.
I am assuming that Results1 is a data set that you are selecting a table....
January 4, 2013 at 10:21 pm
Yes it is correct.....if the Destination Table is created by the Import/Export Wizard....
Is it still not working??.....I thought you had got it working.....Please post the detailed Error message.
January 4, 2013 at 9:47 pm
All the tables.....do you mean including the parent table which is being referenced by the Child Table??.....If that is so then the Foreign Key Constraint can be created as the...
January 2, 2013 at 8:54 pm
ananda.murugesan (12/31/2012)
Generate Script source database and create newdatabase with another name and all other structure and PK, FK ,Identity every thing same...
January 2, 2013 at 1:49 am
dwain.c (1/1/2013)
vinu512 (12/31/2012)
January 1, 2013 at 10:17 pm
Satish's Query is partially correct but it doesn't break the records on th basis of Column1. You would nee to do a Correlated Subquery for that as follows:
--Creating Table...
December 31, 2012 at 3:29 am
The table you are trying to insert data into has a Foreign Key Constraint. Which means that it is referencing another table for values in the Foreign Key column. It...
December 31, 2012 at 2:16 am
Thanks....Happy New Year to you guys as well and everyone at SSC 🙂
December 31, 2012 at 1:58 am
SJanki (12/28/2012)
vinu512 (12/28/2012)
Is this what you are looking for?[/code]
Thank you Venu512, This was the quick help I really needed to produce the year end report!
You're Welcome....By the way...
December 28, 2012 at 10:19 pm
Viewing 15 posts - 106 through 120 (of 761 total)