Click here to Skip to main content
15,920,438 members
Home / Discussions / Database
   

Database

 
GeneralRe: Stored Procedures in C# Pin
Michael Potter11-Jun-04 4:31
Michael Potter11-Jun-04 4:31 
GeneralRe: Stored Procedures in C# Pin
VenkatFor.NET11-Jun-04 8:37
VenkatFor.NET11-Jun-04 8:37 
GeneralRe: Stored Procedures in C# Pin
mikasa11-Jun-04 9:13
mikasa11-Jun-04 9:13 
GeneralRe: Stored Procedures in C# Pin
Steven Campbell11-Jun-04 18:36
Steven Campbell11-Jun-04 18:36 
GeneralRe: Stored Procedures in C# Pin
Arjan Einbu15-Jun-04 2:00
Arjan Einbu15-Jun-04 2:00 
GeneralMFC/DAO temporary table Pin
IQ010-Jun-04 10:59
IQ010-Jun-04 10:59 
GeneralPlease i'm stuck with this !!! Pin
IQ012-Jun-04 9:00
IQ012-Jun-04 9:00 
GeneralDatabase Load COmmand Pin
asv10-Jun-04 8:33
asv10-Jun-04 8:33 
The database load command has two functions:



1) It will be used to populate database tables from CSV files

2) It will be used to update database tables from CSV files



The command might be run in Sun Solaris (sparc) or in Windows 2000

machine. We are assuming that will not get local access to their database

server, the access is probably happen over JDBC or/and ODBC.

Database will be Microsoft SQL Server 2000 SP3.



Please note that a updated CSV file will be loaded to the database

once a month (the function 2) above). The load command should

not duplicate existing rows in tables, and it should not cause

production downtime, i.e. it must not just delete all existing rows

(or drop existing table) and create all rows from scratch as

that kind of update would cause production downtime.



I have included few lines from beginning of two of the CSV files.

As you can see, the first line in CSV file lists the column names.

The corresponding database tables will have same column names to

make things easier. All columns won’t be VARCHARs, some

of them will be floating point numbers (longitude and latitude must

be floating point numbers in the tables).





--- postalcode.csv ---

"POSTAL_CODE","CITY","PROVINCE","PROVINCE_ABBR","AREA_CODE","CITY_FLAG","TIME_ZONE","DAY_LIGHT_SAVING","LATITUDE","LONGITUDE"

"A0A 1A0","AQUAFORTE","NEWFOUNDLAND","NF","709","N","3.5","Y","47.007050","-52.95195"

"A0A 1B0","AVONDALE","NEWFOUNDLAND","NF","709","N","3.5","Y","47.416880","-53.19755"

"A0A 1C0","BAY BULLS","NEWFOUNDLAND","NF","709","N","3.5","Y","47.321210","-52.81743"

"A0A 1E0","BAY DE VERDE","NEWFOUNDLAND","NF","709","N","3.5","Y","48.086930","-52.89581"

--- postalcode.csv ---



--- zipcode.csv ---

"ZIP_CODE","CITY","STATE","AREA_CODE","CITY_ALIAS_NAME","CITY_ALIAS_ABBR","CITY_TYPE","COUNTY_NAME","COUNTY_FIPS","TIME_ZONE","DAY_LIGHT_SAVING","LATITUDE","LONGITUDE","ELEVATION"

"00501","HOLTSVILLE","NY","516","I R S SERVICE CENTER","","N","SUFFOLK","103","5","Y","40.81518","-73.0455","25"

"00501","HOLTSVILLE","NY","516","HOLTSVILLE","","P","SUFFOLK","103","5","Y","40.81518","-73.0455","25"

--- zipcode.csv ---



dadsadasd
GeneralRe: Database Load COmmand Pin
Chris Meech10-Jun-04 9:07
Chris Meech10-Jun-04 9:07 
GeneralRe: Database Load COmmand Pin
Anonymous11-Jun-04 9:51
Anonymous11-Jun-04 9:51 
GeneralDefault name Pin
Small Rat10-Jun-04 7:33
Small Rat10-Jun-04 7:33 
GeneralTransferring data from dbaseIII+ to SQLSvr2000/Access Pin
sanjaysagrawal10-Jun-04 1:51
sanjaysagrawal10-Jun-04 1:51 
GeneralRecord No. Pin
Tuwing.Sabado9-Jun-04 20:56
Tuwing.Sabado9-Jun-04 20:56 
GeneralRe: Record No. Pin
Hesham Amin9-Jun-04 21:30
Hesham Amin9-Jun-04 21:30 
Generalupdate sql server table with dataset from excel Pin
Anonymous9-Jun-04 4:00
Anonymous9-Jun-04 4:00 
Generaldelete/modify stored procedure Pin
sharonz9-Jun-04 2:44
sharonz9-Jun-04 2:44 
GeneralRe: delete/modify stored procedure Pin
Michael Potter9-Jun-04 6:13
Michael Potter9-Jun-04 6:13 
GeneralRe: delete/modify stored procedure Pin
Edbert P9-Jun-04 20:02
Edbert P9-Jun-04 20:02 
GeneralRe: delete/modify stored procedure Pin
sharonz9-Jun-04 20:22
sharonz9-Jun-04 20:22 
GeneralRe: delete/modify stored procedure Pin
Edbert P9-Jun-04 20:32
Edbert P9-Jun-04 20:32 
GeneralRe: delete/modify stored procedure Pin
sharonz9-Jun-04 20:50
sharonz9-Jun-04 20:50 
GeneralT-SQL for backing up database with current Datetime Pin
Raybot8-Jun-04 23:55
Raybot8-Jun-04 23:55 
GeneralRe: T-SQL for backing up database with current Datetime Pin
RichardGrimmer9-Jun-04 1:30
RichardGrimmer9-Jun-04 1:30 
GeneralRe: T-SQL for backing up database with current Datetime Pin
Michael Potter9-Jun-04 6:17
Michael Potter9-Jun-04 6:17 
GeneralRe: T-SQL for backing up database with current Datetime Pin
Grimolfr9-Jun-04 9:39
Grimolfr9-Jun-04 9:39 

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.