Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the Vbscript to connect Database

Answer Posted / ravi_kanakam

Check this............

Function db_connect( byRef curSession ,connection_string)
dim connection
on error resume next
' Opening connection
set connection = CreateObject("ADODB.Connection")
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " &
Err.Description
err.clear
Exit Function
End If

connection.Open connection_string
If Err.Number <> 0 then
db_connect= "Error # " & CStr(Err.Number) & " " &
Err.Description
err.clear
Exit Function
End If
set curSession=connection
db_connect=0
End Function

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of recording modes in the qtp?

1143


why should we give deliver good quality software?

2160


How to add synchronisation points in qtp?

1138


how to know no.of mails in our g mail by using vb-script

2272


why you have standardized functions? plzzz guys with real time exp. do answer

1899


How will you report the bug and explain the defect tracking sheet you handled?

3148


How the exception handling can be done using quicktest professional?

1068


How to execute a winrunner script in quicktest professional?

1077


How does you test a weblink which is changing dynamically?

1056


How many types of recording facility are available in quicktest professional (qtp)?

1110


When Recovery scenario actually starts while testing the application?

2091


What are the views available in quicktest professional?

1069


Name the different types of recording modes?

1070


How many number of actions possible in qtp?

1093


How to get Traceability matrix from TD?

1268