Database query data to string in SQL Server 2008

<>

This question already has an answer here:

Answers


You can do something like this :

# DATA SOURCE NAME
$dsn = "dbi:mysql:$database:localhost:3306";

# PERL DBI CONNECT
$connect = DBI->connect($dsn, $user, $pw);

# PREPARE THE QUERY
$query = "SELECT EmployeeName FROM  Employee ORDER BY id";
$query_handle = $connect->prepare($query);

# EXECUTE THE QUERY
$query_handle->execute();

# BIND TABLE COLUMNS TO VARIABLES
 $query_handle->bind_columns(undef, \$id);

 # LOOP THROUGH RESULTS
 while($query_handle->fetch()) {
   print "$employeeName" ,;
} 

Need Your Help

XSL stylesheet active content being blocked by browser

javascript css xml internet-explorer xslt

Hi I have an XSL stylesheet I am using to transform an XML document see SO Question

ElasticSearch Index API SLOW

elasticsearch

public static void main(String[] args) {