Connectivity Through DSN

I have written few line codes but puzzling me lot giving errors.

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "wedding"
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from Group"
rs.open sql, Conn ' Gives error this statement
Set rs = Nothing
Conn.close
Set Conn = Nothing

Connection is established successfully and recordset is also created without any problem
but when it executes rs.open line it gives me error tht

"SYNTAX ERROR NEAR FROM CLAUSE"

View Replies


ADVERTISEMENT

Connectivity With Asp And SQL Server

I have a problem with internal websites written in ASP that connect to
SQL Server. Occassionally while trying to access these sites, the following error
is generated:

Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
/Mvp/admin_login.asp, line 0

I've looked on MS site and the solutions seem to be for problems that
are consistant. Sometimes the sites can be accessed other times they
cannot. Does anyone have any ideas what could be causing the server to
time out?

View Replies View Related

Database Connectivity

I somehow got my PWS installed and running after a few tuts online. But as they mentioned, I tried connecting to the database from an .asp page with a DSN connection, but it repeatedly gives me a blank page.

View Replies View Related

MS-ACCESS Connectivity

When I fetch record from MS-access using ASP. It is allowing me to print record from ASP.
but when I try to INSERT NEW RECORD/DELETE NEW RECORD into database it is giving me error. I m getting error like..

Error Property Contents
Number 0
NativeError 249761507
SQLState 3811
Source Microsoft JET Database Engine
Description
Help Context 5003811
Help File

I check all the Persmissions. I dont know what is that error means? I have a problme with my code or its Connectivity problme?

View Replies View Related

ASP To Oracle 9i Connectivity

i have created an ASP page and have to retrieve some values from oracle tables. Please help me with the connection syntax as weel as the code for retrieving some data from the tables .

View Replies View Related

ASP Database Connectivity Using SQL Server

I'm trying to add records from the ASP web page to the database using SQL Server..but i'm not able to do it..Can anyone send me the codes related to the database connectivity..

View Replies View Related

ASP Database Connectivity Problem

This problem is regarding the ASP Database connection, discussed in the book
Mastering VB6 by Evangelos Petrosus. on page 1222 (Allprods.asp) Code:

View Replies View Related

Access.mdb Data Connectivity

Does ACCESS or a server behave like ACCESS on a local machine? - in particular are there the same query performance advantages in applying indexes to certain table fields?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved