Viewing 15 posts - 4,771 through 4,785 (of 10,144 total)
-- details of tables called [student]
-- or columns called [mark2] etc
-- in the 'current' db
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('mark2', 'mark3', 'mark4', 'mark5', 'mark6')
OR...
April 23, 2013 at 3:24 am
Kumara1011 (4/22/2013)
But when i am using count(*), it showing difference.
i found that in background one command is executing i.e.,
DBCC...
April 23, 2013 at 1:39 am
Divya Agrawal (4/22/2013)
ChrisM@Work (4/22/2013)
Divya Agrawal (4/19/2013)
INSERT into @T
select 1,1,'ProgramCompletionStatus - ProgramNotCompleted, '
union all
select 1,1,'InputValidationStatus - Success, IsValidUserID - Yes,...
April 23, 2013 at 1:21 am
jcrawf02 (4/22/2013)
Brandie Tarvin (4/22/2013)
The SO looks at...
April 22, 2013 at 6:57 am
Jeff Moden (4/22/2013)
ChrisM@Work (4/19/2013)
This is an unusual transport file with metadata (partial, column names only) and data as string on the same row.
BWAAAA-HAAA!!!!! I say the same thing everytime...
April 22, 2013 at 6:36 am
darren.morgan 32557 (4/22/2013)
Could it be ignoring rows that have a null value for the field you are performing sum on?
-- No
SELECT COUNT(*), SUM(Total)
FROM (
SELECT ID = 1, total = 10...
April 22, 2013 at 6:00 am
sravan.here (4/19/2013)
April 22, 2013 at 5:27 am
Divya Agrawal (4/19/2013)
INSERT into @T
select 1,1,'ProgramCompletionStatus - ProgramNotCompleted, '
union all
select 1,1,'InputValidationStatus - Success, IsValidUserID - Yes, IsValidProgramID -...
April 22, 2013 at 1:25 am
sravan.here (4/19/2013)
I have just provide a simple example here.
But the maximum column names (with csv)...
April 19, 2013 at 5:36 am
rodjkidd (4/19/2013)
wolfkillj (4/19/2013)
ChrisM@Work (4/19/2013)
Sean Lange (4/18/2013)
patrickmcginnis59 10839 (4/18/2013)
Time and again I've read in the news folks absolutely ruin their own lives over dumb forum stuff even when posting under what...
April 19, 2013 at 5:30 am
surendiran.balasubramanian (4/19/2013)
SELECT CtryId, WrkflwId, Dt
FROM stepHistory H
WHERE EXISTS
(SELECT * FROM
...
April 19, 2013 at 3:24 am
Luis Cazares (4/18/2013)
Please take a look at the article linked in my signature to obtain better...
April 19, 2013 at 2:55 am
Sean Lange (4/18/2013)
patrickmcginnis59 10839 (4/18/2013)
Time and again I've read in the news folks absolutely ruin their own lives over dumb forum stuff even when posting under what they perceive as...
April 19, 2013 at 2:52 am
sravan.here (4/18/2013)
Yes please see the Create table script for source table and the insert script as well
CREATE TABLE yt
([ID] int, [Name] varchar(14), [text] varchar(21))
;
INSERT INTO yt
([ID], [Name], [text])
VALUES
(1, 'SID,DOB', '123,12/01/1990'),
(2,...
April 19, 2013 at 2:49 am
Stephen Yale (6/18/2008)
.....How do I do it without using a cursor?
.....
Here's one way:
CREATE FUNCTION [dbo].[IF_Calendar]
(
@StartDate DATE,
@EndDate DATE,
@FirstWeekDay VARCHAR(10)
)
RETURNS TABLE WITH SCHEMABINDING AS
RETURN
(
-- inline tally table
WITH E1(N)...
April 18, 2013 at 9:43 am
Viewing 15 posts - 4,771 through 4,785 (of 10,144 total)