I have a csv file and it contains 4 columns which contain ip address of world.
example :
the colms are :
starting ip, endip, country code and country name ,
starting ip contains ip address like 200.1.3.4 same in end ip also
now the coloums in sql are
id , startip_1, startip_2...... .startip_6 , endip_1, endip_2.....end ip_6, country code, country name .
now i want to select the 1 by 1 row from csv file and store data in sql , something like 200.1.2.3 should be send to sql like 200 to startip_1, 1to startip_2...... . and so ....hope u r getting what i want .
I am new to C# .. please give me the code and help me by providing solution step by step ..i m using sql server 2005 and C# 2005
startip_5, startip_6 and endip_5 and end_6 r null in sql rest all r not null .
please if anyone can give me solution to this on today itself ... it urgent...
thnk you.
example :
the colms are :
starting ip, endip, country code and country name ,
starting ip contains ip address like 200.1.3.4 same in end ip also
now the coloums in sql are
id , startip_1, startip_2...... .startip_6 , endip_1, endip_2.....end ip_6, country code, country name .
now i want to select the 1 by 1 row from csv file and store data in sql , something like 200.1.2.3 should be send to sql like 200 to startip_1, 1to startip_2...... . and so ....hope u r getting what i want .
I am new to C# .. please give me the code and help me by providing solution step by step ..i m using sql server 2005 and C# 2005
startip_5, startip_6 and endip_5 and end_6 r null in sql rest all r not null .
please if anyone can give me solution to this on today itself ... it urgent...
thnk you.
Comment