While insert the data excel to database

Hi,

i want to update the data excel into sql Server as per the format.

Excel File Heading:

Sql Server Table Details: (we have have permission to change the columns Name)

I try to insert one column value into the sql server.

image
Parameter also passed.

Thanks
Shyam

Hi @Shyam_Pragash ,

Are you facing an issue/error when performing this step ?

Could you share the error message if present ?

Also, Try providing Square Brackets to Column Names which contain spaces like [Ticket ID].

Hi @Shyam_Pragash

Have you tried with Update query syntax

"UPDATE HF_master_1 SET Ticket ID = ('"+Ticket_ID+"') WHERE id = ('"+UserID+"')"

UserID -> Unique reference number

Regards
Gokul

HI @Shyam_Pragash

Try with this expression

 INSERT INTO HF_DB.HF_master_1 ("Column Name") VALUES ('"+Ticket_ID+"')

Regards
Gokul

@Shyam_Pragash ,

As mentioned already, Did you try with Square Brackets ?

Hi @Gokul001 @supermanPunch

i will check the update u…

Thanks
Shyam

Hi @Shyam_Pragash

Please try like this

Insert into tablename ([ticket id]) ….

Alternately try including the parameter between songle quotes

(‘@ticket_id’)

Cheers

Have you tried like this ? @Shyam_Pragash

Hi @supermanPunch @Anil_G @Gokul001

Thank You all

“INSERT INTO HF_master_1 (”“Ticket ID”“) VALUES ('”+Ticket_ID+“')”

This is working.

Thanks
Shyam

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.