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)
Show older comments
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);
2 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!