Viewing 15 posts - 9,196 through 9,210 (of 10,144 total)
sabarichandru (12/10/2008)
Hi chris,i need a o/p in column .
This will do it:
DECLARE @InputDate DATETIME, @DayCount INT
SET @InputDate = '01-12-2008'
SET @DayCount = 1 + DATEDIFF(dd, @InputDate, GETDATE())
SELECT DATEADD(dd, 1-N.number, GETDATE())...
December 10, 2008 at 4:42 am
Can you see the database ODS in the output generated by this:
SELECT a.* FROM OPENROWSET(
'SQLOLEDB',
'Trusted_Connection=yes;Integrated Security=SSPI;DataSource=''10.0.172.53'';' ,
'SELECT [name] FROM master.dbo.sysdatabases') AS a
December 10, 2008 at 4:23 am
Rootman (12/10/2008)
But I want to return a specific column, say column 2 from a table.
In other words I want to use the table as a sort of...
December 10, 2008 at 4:12 am
Rootman (12/10/2008)
Is it possible to select columns by their ordinal position? If so , could anyone please help me with the syntax?Many thanks
SELECT *
December 10, 2008 at 3:54 am
sabarichandru (12/10/2008)
i need to display dates as a O/P which falls between two date inputs .
Eg:
input 1 ...
December 10, 2008 at 3:50 am
debjani.bedajana (12/9/2008)
Hi Gail,Sorry to bother you. Wondering if you could find some solution. Thanks for your help.
Debjani
Hi Debjani
Can you please let us know what the remaining problems are?
December 10, 2008 at 3:12 am
pino_daddy (12/9/2008)
We are aquiring companies around teh world and for UTC we need to have one time zone....
December 10, 2008 at 2:56 am
Dan Epps (12/9/2008)
Yep...tomorrow's prices with yesterday's technology!
Ironic this...prices are tumbling and yesterday's technology is robust!!
December 10, 2008 at 2:32 am
pino_daddy (12/9/2008)
SELECT ROW_ID, CREATED, dbo.ConvertGMTToEST(CREATED)
FROM S_SRV_REQ S
returns 959,970 rows in 48 seconds
This query:
SELECT ROW_ID, CREATED
FROM S_SRV_REQ S
returns 959,970 rows in 4 seconds
Want to know how to speed up the...
December 9, 2008 at 11:49 am
Kelvin Phayre (12/9/2008)
I then took a different tac. I...
December 9, 2008 at 11:21 am
Hi Joe, I'n not reall sure what's going on there!
Here's a simple test setup, with a sp taking 6 parameters, three of them being output params.
It should be sufficient...
December 9, 2008 at 10:55 am
pvar (12/9/2008)
December 9, 2008 at 10:40 am
Ian (12/9/2008)
The product table contains a lot of records roughly 2800 and the productCategory table has roughly 3850 - should I include all the date?
No, twenty or so should be...
December 9, 2008 at 10:21 am
pvar (12/9/2008)
I am sorry, I should have provided that info. The field type is tinyint so the values are 0 & 1. Thanks.
No problem. This will do:
SELECT * FROM (
SELECT...
December 9, 2008 at 10:19 am
pvar (12/9/2008)
I have a table with 4 boolean fields. I need to find the records that have more than one boolean field set to true. That means records with A...
December 9, 2008 at 10:10 am
Viewing 15 posts - 9,196 through 9,210 (of 10,144 total)