Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.delegate = self
- client.connect("172.29.XX.XX:1433", username: "XX", password: "XXXX", database: "XXX", completion: {(success:Bool) -> Void in
- if success
- {
- client.execute("SELECT * FROM Users" , completion: {(results:NSArray) -> Void in
- for (table:NSArray in results)
- for (row:NSDictionary in table)
- for (column:NSString in row)
- NSLog(@"%@=%@", column, row[column])
- client.disconnect
- // how to execute second query?
- //query cannot enter inner query
- } )
- }
- })
Add Comment
Please, Sign In to add comment