Click here to Skip to main content
15,897,187 members
Home / Discussions / Database
   

Database

 
GeneralExcel Oledb Pin
Devius21-Feb-05 13:38
Devius21-Feb-05 13:38 
GeneralPlease HELP! Data Source Configuration Wizard Pin
Member 169642421-Feb-05 7:13
Member 169642421-Feb-05 7:13 
GeneralEXCLUDING DATA USING DATE AS PARAMETER Pin
Brendan Vogt20-Feb-05 19:28
Brendan Vogt20-Feb-05 19:28 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Colin Angus Mackay20-Feb-05 19:54
Colin Angus Mackay20-Feb-05 19:54 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Member 174480620-Feb-05 21:17
Member 174480620-Feb-05 21:17 
GeneralSQL Server Replace Text/Characters Pin
Brendan Vogt20-Feb-05 19:27
Brendan Vogt20-Feb-05 19:27 
GeneralRe: SQL Server Replace Text/Characters Pin
Colin Angus Mackay20-Feb-05 19:58
Colin Angus Mackay20-Feb-05 19:58 
GeneralCreating New Table and Pump data from ActiveX Pin
Mehbub19-Feb-05 3:27
Mehbub19-Feb-05 3:27 
I want to create a new table in SQL Server, which will populate Date, weeks, months and years. I want the dates starting from 1st January 2004 and finishing on 31st December, 2008. Basically i want to use this table as a mapping, so i know if dates are in between this range this is week 1, if dates are in between this range this is week 2, somthing like this.

I know this is possible in a sql query by writing case statement. But this is a lot of coding.

I was just wondering if someone could tell me how could i create a table like this by using DTS (ActiveX VBScript). Some kind of loop....

The problem is i do not know how to create a new table from ActiveX and insert data into it from ActiveX. Just letting you know that you can create/truncate table by using "Excute SQL Task". But it does not let you to create a workflow in between ActiveX and "Excute SQL Task". I think i got to create the connection in the ActiveX but not sure.

Can someone help, please? I am looking for a table like this :

Date_Time Week_No Month Year
3/1/2005, 09:01:44 PM 1 Jan 2005
4/1/2005, 09:01:44 PM 1 Jan 2005
.....
10/1/2005, 09:01:44 PM 2 Jan 2005
11/1/2005, 09:01:44 PM 2 Jan 2005
...

Thanks
Bob
GeneralRowNumber in results. Pin
ABBASI_RA18-Feb-05 23:52
ABBASI_RA18-Feb-05 23:52 
GeneralRe: RowNumber in results. Pin
Mike Ellison19-Feb-05 19:53
Mike Ellison19-Feb-05 19:53 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 1:37
ABBASI_RA20-Feb-05 1:37 
GeneralRe: RowNumber in results. Pin
Mike Ellison22-Feb-05 9:48
Mike Ellison22-Feb-05 9:48 
GeneralRe: RowNumber in results. Pin
SimonS20-Feb-05 1:47
SimonS20-Feb-05 1:47 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 2:40
ABBASI_RA20-Feb-05 2:40 
GeneralBack up database Pin
GoldenStar18-Feb-05 22:56
GoldenStar18-Feb-05 22:56 
GeneralRe: Back up database Pin
Colin Angus Mackay19-Feb-05 1:10
Colin Angus Mackay19-Feb-05 1:10 
GeneralRe: Back up database Pin
GoldenStar20-Feb-05 10:13
GoldenStar20-Feb-05 10:13 
GeneralSome help with this SQL statement Pin
Tom Wright18-Feb-05 7:05
Tom Wright18-Feb-05 7:05 
GeneralRe: Some help with this SQL statement Pin
Michael Potter18-Feb-05 9:02
Michael Potter18-Feb-05 9:02 
GeneralRe: Some help with this SQL statement Pin
Tom Wright18-Feb-05 12:48
Tom Wright18-Feb-05 12:48 
GeneralAppend Column to Row Pin
Anonymous18-Feb-05 4:30
Anonymous18-Feb-05 4:30 
GeneralRe: Append Column to Row Pin
Michael Potter18-Feb-05 9:18
Michael Potter18-Feb-05 9:18 
GeneralMigrating from Acess to Oracle Pin
ashish kabra18-Feb-05 2:38
ashish kabra18-Feb-05 2:38 
GeneralSQL Server row size Pin
Talal Sultan18-Feb-05 0:51
Talal Sultan18-Feb-05 0:51 
GeneralRe: SQL Server row size Pin
Mike Dimmick18-Feb-05 4:28
Mike Dimmick18-Feb-05 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.