Viewing 15 posts - 8,881 through 8,895 (of 10,143 total)
Steve, can you post the following please -
The statement from the sproc which writes out the text file
A sample of the text file to show exactly what you are...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 27, 2009 at 4:23 am
Provided that there aren't any gaps in each group, then this will work:
DROP TABLE #ProductStatus
CREATE TABLE #ProductStatus (ItemCode varchar(20), Units int, Place varchar(5), Status int, StartDate datetime, EndDate datetime, Flag...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 27, 2009 at 3:09 am
Old-fashioned SQL works well too:
SET DATEFORMAT MDY
DROP TABLE #Temp
CREATE TABLE #Temp (Id_solution INT, Parameter_nm VARCHAR(50), Parameter_value VARCHAR(50))
INSERT INTO #Temp (Id_solution, Parameter_nm, Parameter_value)
SELECT 11111111, '"Data1":"Sample1"','9' UNION ALL
SELECT 11111111, '"Table1"','7' UNION ALL
SELECT...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 26, 2009 at 2:58 am
Hi Phil
Looking at your query, I reckon it can be simplified quite a bit - which would usually help with aggregation. Let's have a try.
Firstly, changing it so that the...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 25, 2009 at 4:20 am
Numerous udf's have been posted, search under split string, e.g. http://www.sqlservercentral.com/scripts/Miscellaneous/31913/
This[/url] excellent article shows how to do it with a tally table.
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 22, 2009 at 7:24 am
Lynn Pettis (1/21/2009)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 21, 2009 at 10:09 am
munishprathap (1/20/2009)
i can achieve this task by the following Query,please let me know your feedback
IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Note'
AND...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 21, 2009 at 7:01 am
Jeff Moden (1/20/2009)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 7:07 am
Christopher Stobbs (1/20/2009)
I'm with Jeff on this, why do you need to make the change?
Because...
There's no data in the table, although for the purpose of this exercise we must assume...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 6:19 am
munishprathap (1/20/2009)
at tht time thy dnt need to copy the table content
thy need only to change the data type Datetime to...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 5:45 am
munishprathap (1/20/2009)
No
If no other students are using it, why don't you simply script a new table using EM and copy the data into it?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 5:25 am
munishprathap (1/20/2009)
Ok thts greatits having 10 rows and one column have DateTime type with values.
Is this table heavily used at present?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 5:20 am
munishprathap (1/20/2009)
we cant predict no. of rows affected assume tht tables have 10 rows
How many rows do you have in the table right now?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 4:57 am
munishprathap (1/20/2009)
not lik tht,values entered in these column was datetime only but in future i need to make entries
only as bigint
How many rows are currently affected?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 20, 2009 at 4:50 am
GilaMonster (1/19/2009)
krypto69 (1/19/2009)
Like this Gail?
Exactly.
Would you mind editing your earlier post to do the same? It's nothing to do with the data or values, it's just to prevent the...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
January 19, 2009 at 9:33 am
Viewing 15 posts - 8,881 through 8,895 (of 10,143 total)