Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to do a script to insert a list of country and their corresponding account numbers to a table in SQL.
However the system admin does not allow me to link or import the file into a table directly hence I have to set up a procedure to manually import those data.

I am trying to do a

SQL
INSERT INTO Finance_APAC.dbo.testBreakAsean (Country, Account) VALUES ('Test1','Test2')
INSERT INTO Finance_APAC.dbo.testBreakAsean (Country, Account) VALUES ('Test3','Test4')
INSERT INTO Finance_APAC.dbo.testBreakAsean (Country, Account) VALUES ('Test5','Test6')


and use a formula to trap those country/account numbers from an excel sheet and do a paste of the insert command into my SQL server, however excel would report errors when I use a "','" which is neccessary for me to insert the Country or account

Is there anyway to sidestep this problem? This might be more of an excel question then SQL. Thanks for any expertise on this.
Posted

Hi thatraja,

Thanks for the help. :)
 
Share this answer
 
Comments
Member 10367131 29-Oct-13 5:32am    
wasteraja it wont work wasteraja

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900