Hi All
I have used the below method to connect my DB server. This is desktop application. Now the same script needs to be installed in another location. The perl script called in .Net windows application. Rightnow we have created webservices for .net but i don't know how to change these perl code to webservice methods. Can anyone guide me on this?
my $dbh = DBI->connect('DBI:ODBC:Driver={SQL Server};server={170.10.10 +.10};database={Copyediting};','username','password') or die "Can't connect to $data_source: $DBI::errstr"; my ($sql,$sth); $sql = "Select * from varianceDB where StyleName='".$Style_Name. +"' and PatternName='"."DEFAULT"."' and VarianceName='"."DEFAULT"."' a +nd Title='".$Pattern_Name."'"; $sth = $dbh->prepare($sql) or die "Can't prepare statement: $DBI:: +errstr"; # Execute the statement. $sth->execute(); my $ref = $sth->fetchall_arrayref({});
In reply to Webservice Method by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |