How to insert values into network server instead of local server. I have tried IP address instead of "localhost" but it didn't work out. All i need is a network connection supporting entry from multiple users

8 views (last 30 days)
conn = database('database_name','','','Vendor','Microsoft SQL Server','Server','localhost','AuthType','Windows','portnumber',1433);
query = sprintf( 'INSERT INTO table_Name (column_Name) VALUES (''%s'')', abc);
curs = exec(conn,query );
close(curs);
close(conn);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!