Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





ODBC Connect From MS Access To SQL Server 2000-Viable?


How viable is it to use MS Access as a front end (via ODBC) to a SQL Server
2000 database?

The users would access via the internet using a netgear vpn setup.

Thanks,

Paul S




View Complete Forum Thread with Replies

Related Forum Messages:
MS SQL Server 2000 / MS Access - ODBC Connection Question
Hello all!I have such question to all of you.I have some tables linked from MS SQL Server 2000. Is time of processingquerybased on these linked tables from MS SQL Server 2000, faster or slower thanthe time of processing the same query based on tables, which are not linkedbutimported to MS Access?Can you answer this question?Thank you in advance for postsMarcin from Poland.

View Replies !
Steps To Set Up An ODBC Connection From Access To SQL Server 2000
I just want the simple steps.  I think this is linking through get external db?  Is it different from SQL Server 2005?

Is this an Access question or a SQL server question.

thanks,

View Replies !
Driver Not Capable (-26) When Exporting The Data From Odbc Access Using Sql Server Managare 2000
 

Hi,
 
I am getting the error message as "DIAG [00000] [ODBC Access Driver 52.1.150.0] -26 Driver not capable (-26)" at the time of retrieving the catalog infromation by SqlTables methode. it is shown "?" as catalogname but this not supported by odbc access driver. can you please help out how can i resolve using C++ code in SqlTables methode.
 
Error message:
 
dtswiz          1390-e20 EXIT  SQLTablesW  with return code -1 (SQL_ERROR)
  HSTMT               003C3108
  WCHAR *             0x00D27EB8 [      -3] "? 0"
  SWORD                       -3
  WCHAR *             0x00000000 [      -3] <empty string>
  SWORD                       -3
  WCHAR *             0x00000000 [      -3] <empty string>
  SWORD                       -3
  WCHAR *             0x00164804 [      -3] "TABLE 0"
  SWORD                       -3
  DIAG [00000] [ODBC Access Driver 52.1.150.0] -26 Driver not capable (-26)

 
 
Best Regards,
Murthy

View Replies !
Best Way To Connect MS Access To SQL 2000 Tables?
Hello All;

I've about read myself to death, and have yet to find the simple answer to the question of what is the best way to connect my MS Access 2003 front-end to an SQL 2000 back-end?

Can anyone answer that simple question?

Grarful for ANY resonse,

Larry.

View Replies !
Connect From ASP To SQL Server Through ODBC
Hi there,

I'm a new comer to this APS language and hope sombody out there can help me with this
I'm trying to find codes for me to connect from ASP to Sql Server using ODBC.
Can anyone help me
Thanx

View Replies !
I Can't Connect To Server Through ODBC....
Hi all
I have problem with making Connection between two computer through SQLServer and ODBC.

I have two computers which are members of a WorkGroup network with WindowsXP(sp2) installed.
on one computer i have installed SQL Server 2000 Enterprise edition with MIX Authentication mode enabled. Also i have created a LOGIN (Sql Server Authentication) with System Administrator ROLE (SYSADMIN).in that sql server environment .

But in another computer when i want to create an ODBC connection (ControlPanelAdministrative ToolsData Sources (ODBC)) to connect to mentioned Computer with Sql server,I receive the following Error:
Access Denied...Sql Server doesn't exist.

I have disabled Windows-XP firewall on both computers but still problem persists.
By the way these two computer have one Administrator Account with DEFFERENT Passwords.

Could anyone help me.? Any help greately would be appreciated.

Kind Regards.

View Replies !
Using ODBC To Connect To SQL Server Database
I am trying out a simple ASP.NET application which includes access to an SQL Server Database. It works fine on my local machine when I connect to the SQL Server and use SQL commands (via C#) to access it.
But my web hosting provider uses ODBC drivers for database access (they support the SQL database type). I would like to find out how I should connect to my SQL Server database and program the access in order for it to be ODBC compatible, so that I can deploy it to my web hosting server.  I should also mention that I am using Visual Web Developer 2005 Express Edition.
Thanks for any help or pointers.
Kumar

View Replies !
Query Analyzer Error Unable To Connect Server Local Msg17, Level 16,state 1/ODBC SQL Server Driver [DBNETLIB]SQL Server Does Not
I am getteing
need help
Query analyzer error Unable to connect server local Msg17, level 16,state 1
ODBC SQL server driver [DBNETLIB]SQL server does not exist

View Replies !
Cannot Connect To Sql Server 2005 From Xp Client When Trying To Create ODBC Dsn
Newbie here,

I am trying to link tables from an access 2003 frontend to sql server 2005 backend.

I am doing this in a vmware test environment. I am using vmware server and running sbs 2003 and xp sp2 client. Both virtaul machine can talk to each other(using local host connection).

I have tried to create a dsn to the sql server but i cannot connect. I can ping the sbs server through the command interface but the error i get when i try to connect is :

Connection failed:
Sql state: hyt00
sqlserver error: 0
microsoft odbc sql server driver timeout expired.

spent a day trying various combinations - still no joy.

Any help would be much appreciated

View Replies !
How To Avoid Web Users To Connect To SQL Server Trought ODBC
 

Hi everybody,

i'll try to explain the problem with my bad english, so sorry.

In my firm i have a server (W2003 Server) with IIS 6.0 and SQL Server 2005 EE an it is joined in the main domain as all users and their workstation (window XP) are joined too.

The main role for this server is to be a web server and with IIS Manager I configured to verify user identities with Windows Integrated authentication without any anonymous access to web pages (ASP scripts).

I made a group called "Web Users" with read right on ASP scripts and his only one member is "Domain Users".

"Web Users" has of course rights to access this server from network.

This group is also a SQL Server login because it has rights to wiew an modify data at least in one db table trought ASP pages using ADO, but the problem is that they can also connect using ODBC.

Configuring SQL to accept only local connection i can avoid this, but as SQL Admin i can't connect too. So how is possible for web users interact with SQL only trought web pages ?
Thank you very much

View Replies !
Is It Possible To Use A Simple ODBC Config On A Unix Client To Connect To MS-SQL Server?
Anyone support a config where you have an unix/linux (AIX here) ODBCclient connection to SQL Server database? I am looking for a simple,supportable configuration that does not require me to learn perl orinstal a bunch of crap gnu shareware on enterprise class machines.Please help!

View Replies !
HowTo:Connect ODBC From 32bit To Sql Server 2005 (IA64)
Dear,

I have application create by MsAccess
and connect with Sql Server 2000 in x86

and now we transfer system to
HP rx3600 Intel Itanium
- Install Windows 2003 Server Enterprise (for Itanium)
- Install Sql Server 2005 Standard Edition (IA64)

and now we try to create ODBC connection
from client for testing.

But we can't not done it.

Anybody can tell us
how to create connection to sqlserver 2005 (ia64)

Regards,
Tee+

View Replies !
Vista Business ODBC/DSN To Remote Windows 2000 Server / SQL 2000
Hi,
Just upgraded some development desktops to Vista Business. However we need
to still connect to some older remote windows 2000/SQL 2000 servers.

Trying to setup an ODBC system DSN on our Vista Business local desktop we get the
following errors -

-START ERROR WINDOW-
Connection Failed:
SQLState: '01000'
SQL Server Error: 772
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen
(SECDoClientHandshake()0.
Connection failed:
SQLState: '08001'
SQL Server Error: 18
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SSL Security Error
-END ERROR WINDOW-

Any help greatly appreciated as this is stopping us from making
database/table connections etc. We've checked the firewall setup and all is well there.

PS - we can still connect fine using XP or windows 2000 desktops and their
local DSNs.

View Replies !
Connect SQL Server 2005 With ODBC Drive “SQL Native Client&&"
 

Hi,

 

When I'm using SQL server 2005, and ODBC drive €œSQL Native Client€? I get an error when executing the below given code. Error Message: €œTransaction cannot start because more than one ODBC connection is in use.€? 

 

But this works well with SQL Server 2000 with ODBC drive "SQL Native Client" and in SQL server 2005 also when I used ODBC drive €œSQL  Server€?.

 

I used aTrgConn.Execute(€œBegin Transaction€?) and it's working properly. But unfortunately I cannot use this method, because I want to run the same code with Oracle ODBC as well.
 Is this a known issue in SQL Native client drive with SQL server 2005? Do you know a solution for this?
 

Please Help..............

 

Thanks in advance.

 
 
 
Code:

Dim aTrgConn As New ADODB.connection
Dim aCmdIns As New ADODB.Command
Dim aCmdUpd As New ADODB.Command

 

aTrgConn.Open sConnStr

 

Set aCmdIns.ActiveConnection = aTrgConn
Set aCmdUpd.ActiveConnection  = aTrgConn

aTrgConn.BeginTrans

View Replies !
How Can I Use Create Or Alter Statements With ODBC And Microsoft Access ODBC Driver (*mdb)?
 

Hi,

 

I am using VB.NET 2005 and set up an ODBC connection via ODBC.ODBCConnection to a MDB database. Therefor, I use the "Microsoft Access ODBC Driver (*.mdb)".

 

When I set up a ODBCCommand like "ALTER DATABASE..." or "CREATE TABLE..." and issue it with the com.ExecuteNonQuery() command, I get an error from ODBC driver, that a SQL statement has to begin with SELECT, INSERT, UPDATE or DELETE.

 

How can I use DDL statements via ODBC?

 

I would appreciate if you could help me to use ODBC for that - no OLE, no ADO.

 

Thanks for help!

 

Regards,

Stefan D.

View Replies !
Server: MSg 17, Level 16, State 1 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Denied
Hi,

When I am trying to access SQL Server 2000 database from another machine i got this error

Server: MSg 17, Level 16, State 1 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied

but I could access the database on same server and in that server i could access other databases in different server.

 

 

View Replies !
Access 97 ODBC Error With SQL Server
We have further defined our Access 97 to SQL Server ODBC problem. The problem is specific to Access 97, and occurs on both SQL Server 7 and SQL Server 2000.

For testing, we created a blank SQL database and created in it a single table with three fields:

TestID,Int, Identity, primary key.
ShortMsg, Char(10).
LongMsg, ntext

We then create a blank Access 97 database and link it to the SQL table via ODBC.

Unless the first field is set to not be an identity field, Access cannot update the table. attempting to do so results in the error:

"[Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, and image data types cannot be used in the WHERE, HAVING, or ON clause, except with the LIKE or IS NULL predicates. (#306)"

Furthermore, any attempt to add a new record results in Access reporting that the record has been deleted as soon as another record is moved to. However, the record has in fact been sucessfully added to the SQL Server table.

All the latest service packs that I know of have been applied. We are at Access 97 (SP2b), MDAC 2.6 (ODBC Driver 2000.80.194.00), SQL Server 7.0 (SP3).

Upgrading to SQL Server 2000 does not resolve the problem.

Upgrading to Access 2000 (and staying on SQL Server 7) does resolve the problem, but is unfortunately not viable at this time due to issues with other existing applications.

I have worked on other sites where this problem does not occur, so I believe that there is a setting somewhere that needs to be changed, or a patch or service pack that still needs to be applied. Can anyone tell me what we are doing wrong?

Thanks in advance,

David L.

View Replies !
ODBC For MS SQL Server To Access Stored Procedure
I have a stored procedure written in MS SQL Server2000 which takes argument(OUTPUT) as a cursor, and fills in the cursor with the record from the table.

I have to run this stored procedure from my C application program running in SUN OS2.9 with the help of ODBC calls.

Can anyone guide me through steps as to how to run the store procedure from my C program and receive records with the help of the cursor.

The store procedure is as follows

CREATE PROCEDURE testCursor @xyzCursor cursor varying OUT AS
DECLARE temp CURSOR
LOCAL
FOR SELECT * FROM table
OPEN temp
SET @xyzCursor=temp
RETURN(0)
GO

View Replies !
ODBC And Error -7776 From Access And SQL Server.
I have a weird problem.

I have an SQL Server running my database, I connect to it through a VPN, I'm linking tables with it using ODBC from my Access database. I can see the data without problems. But when I attempt to run a query in my Access which basically creates a local copy of a table I sometimes get the following error: -7776.

After having searched a bit for the error, I found out that it is an ODBC error that is concerning date/time conversion.

-7776  SQLGetData(SQL_C_TIMESTAMP)
          Illegal date/time value returned.

I do not have any timestamp datatypes in my SQL server table, they are all datetime datatypes. I have checked the data, all of the dates seem legal dates, no NULL values.

The problem is not consistent, it does not occur at every attempt, it appears about every third time but not consistently. And not at the same location each time. If I stop importing my datetime column, I avoid the error.

From my home location I do not get the error, and neither if I run without my company firewall. However from within the company firewall the error occurs at random times, and at random locations (always the datetime column though).

I find this extremely weird, and even though the problem could seem to be my firewall I somewhat doubt that, since I'm able to see the data if I use a SELECT query, but not when making a Make table one. And since it is always concerning my datetime column (which is not called datetime, datetime is simply the datatype).

I am using Access 2003 and SQL Server 2005.

If you need any further details, please do not hesitate to write.

View Replies !
Odbc Sql Server Does Not Exist Or Access Denied
I just installed SQL 2005 on a backup/test server. When I connected with ODBC to the new server I lost all of my ODBC connections, even to the working server (SQL 2000). I did a full repair on XP and got the ODBC to connect. Why would connecting to SQL 2005 cause my ODBC to crash ?. I tried using SQL Native as well, with no joy to either server. My ODBC isn't working again. The problem began as being intermittent, i.e. connected one minute, lost connection the next. Now it's permanently disconnected and I'm not even sure the reinstall was a solution.

View Replies !
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Deni
Hi..

when I use MSSQL in local ASP files , it is fine.

But If I try to connect another ASP file that is hosted by another machine, I get the following error!

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

in local I connect to my sql like below

Server=AAA*DDDDDDD

when I connect to mssql from another machine I try that

Server=IP/AAA*DDDDDDD
Server=IP

View Replies !
1[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server Does Not Exist Or Access Denied.
Hi,
 
when I was sending 50 simultaneous connections to the web services, I got these 2 errors:
- "1[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. "

- "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"
 

Everything worked fine if I ran 10 simultaneous connections. I am using Microsoft ACT to load test the web service. The database is SQL Server 2000. Any idea about why this is happening?
 
Appreciate your help! Thanks!
 
Jason Zhu

View Replies !
ODBC SQL Server Driver TCP/IP Sockets SQL Server Does Not Exist Or Access Denied
I am running Windows 2003 Standard edition with IIS and SQL 2000 SP3a installed on it.

The web clients use ASP pages which use DSN to connect to SQL 2000 database. It has been working fine since last 1.5 years except 2 days ago when I faced this error suddenly on server:

In accessing any ASP page, it said:

[Microsoft][ODBC_SQL_Server_Driver][TCP/IP_Sockets_SQL_Server_does_not_exist_or_access_den ied.

On SQL Server error log, this was the entry at that time which I found:

SQLServer Error: 17, SQL Server does not exist or access denied. [SQLSTATE 08001]

The server (including SQL Server and agent service) were last stopped atleast a couple of days before, so it was not the problem about startup.

To troubleshoot, I restarted SQL Server and it worked for some time.

Then again on ASP pages, I found this error:

|80004005|[Microsoft][ODBC_SQL_Server_Driver][TCP/IP_Sockets]General_network_error._Check_your_network_document ation.

I checked the error logs of SQL server and didn't find anything.
Only entries were that the SQL is starting database, ports and IPs on which it is listening etc. The usual stuff. No errors in starting.

The SQL Agent log showed following errors:

2004-11-30 04:45:33 - ! [298] SQLServer Error: 2, ConnectionOpen (Connect()). [SQLSTATE 01000]
2004-11-30 04:45:33 - ! [382] Logon to server '(local)' failed (JobManager)
2004-11-30 04:45:36 - ! [298] SQLServer Error: 17, SQL Server does not exist or access denied. [SQLSTATE

I don't understand what was the problem. It first occured when nothing on server was changed, next it occured 30-32 hours later, and still now it hasn't happened again.

Does anyone know what can be wrong?

Thanks.

View Replies !
Connect Exchange 2000 Server To SQL 2000
I need to populate a Public Contacts Folder on an Exchange Server with data in a SQL 2000 Table. What would be the best way to do this?

Thanks

View Replies !
Viable Question
Why this always returning 'AAA'declare @ss char(20)set @ss='AAA'set @ss=@ss+'BBB'print @ss

View Replies !
Creating A Shared ODBC Dsn For Access To SQL Server Connection
I have a Microsoft Access application which uses linked SQL Server tables. I would like to create an ODBC DSN which would be available to all users so that I don't have to create a DSN on each machine. Can this be done?  The Access application resides on a shared drive (Windows). Thanks for your help.

 

 

View Replies !
Help Setting Up An ODBC Link To SQL Server From Access 2003
PLEASE HELP ME

 

I'm a pretty smart guy, but sometimes I end up feeling left behind with all of the terminology I don't recognize.

 

I am running XP Pro, Access 2003, and SQL Server 2005 express.

I want to set up a ODBC connection in Access to a table that has been created in an SQL Server 2005 Express Database.

 

I keep getting the message connection failed, SQL Server does not exist or access denied.

 

Can somebody here please help me?

View Replies !
Access Front End And SQL Server 2000 Record Level Access Control
Hello,We are using Access ADP as a front end, SQL Server 2000 as a back end.We have a customer contact database. We would like to limit certainusers to only receive certain records based on Windows NT groupmembership.For example, Eastern Sales Group can see clients located in theirregion, but they cannot see clients located in the Northern Region.Is there an elegant way to do this? Below a two solutions which havebeen proposed, but none seem to fit. Access is required as a Front Endfor its ease of use.*********** 1 ***********Add an additional attribute (bit mask value) to tblCustomers, andquery appropriately based on the user's group membership.Problem:Access allows users direct access to the underlying table.*********** 2 ***********Create a separe table for each group (effectively splittingtblCustomers into smaller, separate tables based on group access).Then, apply SQL Server security on the objects to enforce the businessrules.Problem:Does this break Normal Form??? I've never seen a solution like this.I've googled and found similar questions, but not a good solution.Any suggestions would be appreciated.Thanks,JeffJeffrey Waltonnoloader.at.yahoo.com

View Replies !
Using Udl File To Connect From MS Access To SQL Server?
Hello everyone,

Does anyone know how to use udl file to connect to SQL Server from MS Access, instead of using a DSN? Is that possible?

Thanks,

View Replies !
Do I Need ADO 2.8 To Connect To SQL Server 2005 From Access?
We have just upgraded to SQL Server 2005 from 2000.  We have an MS Access application that connects and links tables from the new SQL Server database.  Users are getting errors when creating records for the first time on the subscriber databases.  We have reseeded the primary keys on all the tables to no avail.  The only thing we can think of that may be a problem is the version of ADO that we're using as a reference in the MS Access application.  We have a reference to ADO 2.5 and don't know whether we should be using 2.8.  Any suggestions?  Thank you.

View Replies !
ODBC And SQL Server 2000
I install SQL server 2000 on a computer.
I made a new database and table on it.

I wanna to use ODBC on another computer.
When I use ODBC on another computer,it can n't connect to the Computer that I install SQL server.

Please tell me what should I do?!Where is the Problem do you think?

Waiting to hear soon.

View Replies !
SQL Server 2000 ODBC DSN
I am a real newbie to SQL Server 2000 and databases in general.  I am on a WINXP box.  I am using an ODBC connection in a perl script.  My problem is this.  I get this error in my perl script when I try to execute a query against an existing table in my database:

DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'wrk_taxonomic_unit'. (SQL-42S02)
[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL-42000)(DBD: st_execute/SQLExecute err=-1) at validate.pl line 89.
DBD::ODBC::st fetchrow_array failed: (DBD: no select statement currently executing err=-1) at validate.pl line 90.
The problem seems to be the table name.  if I append the owner of the database to the front of the table name, it works.  I don't really like this solution.  Is there something I can specify in my DSN to avoid this dilemma?  Any help is appreciated.

View Replies !
Help With SQL Server 2000 SP4 And ODBC
SQL Server and the service pack seemed to install fine on a Windows 2003 Standard box.  I configured the ODBC connection and got a "connection successful".  However, when the next application tries to install, i am getting the "data source name not found and no driver specified".  My client and db box are the same.  Is my client not configured correctly?

Any help would be greatly appreciated.

Thanks.

View Replies !
ODBC Link From Access To SQL Server 2005 Stored Function
If I define a table-valued function in a SQL Server 2005 database, can I link to it from Access 2003 using ODBC?

I've defined the function successfully, and I can link from Access to tables in the database (so my ODBC link is basically functioning), but I can't see the table-valued function in the Linked Table Manager in Access.

I can define a pass-through query to grab the table, but with a pass-through query I have to provide the ODBC password every time.

What am I missing?

Suggestions?

View Replies !
Connecting To SQL Server 2000 With ODBC
Hi

I have an app in VB 6. It works fine with Windows 2000 Profesional OS and Windows 2000 Server. But if client machine is Windows XP and try to connect to SQL server 2000 on Win2003 Server with DomaiUser name it gives me an error that connection cannot be establish with current username. When I make Login account on SQL Server with that Domainusername than it works. Also my app call reports made in Crystal Report 7.0 and it works fine with administrators username but if Domainusers try to use it it gives me an error something like that some DLL is mising. Anybody have experience with it? Please help

View Replies !
ODBC And SQL Server Drivers For 2000
Hello,

We're upgrading to SQL Server 2000 and need to update all our clients with the latest version of the ODBC and SQL Server Drivers. Can someone tell
after updating the ODBC driver to SQL 2000 would it support SQL Server 7.0 ?

Thanks

Sejal

View Replies !
Paradox 7 To SQL Server 2000 - ODBC
Where can I get the ODBC drivers so that I can connect SQL Server 2000
to legacy app's in Paradox 7 tables ? TIA

View Replies !
ODBC And SQL Server Drivers For 2000
Hello,
We're upgrading to SQL Server 2000 and need to update all our clients with the latest version of the ODBC and SQL Server Drivers. Can someone tell
How do I upgrade the ODBC driver so that they can connected to SQL 2000.
The client pc's have an older version of ODBC drivers which supports Sql 7.0 Which dll do I need ? ? Where do I get it? Does it have on sql 2000 cd?

Thanks

Priti

View Replies !
Report Footer - Need Viable Workaround
After digging for some time now into the "guts" of SSRS, I am wondering if anyone out there has any ideas which might help me at this point.
 
I am trying to write an Invoice report.
 
Each report can have 1 to n invoices on it.
Each invoice can have 1 to n line items (spanning several pages for the larger ones)
Each page must have a fixed header and footer with account and payment information on it (the page header and page footer work OK for this).
 
And here is the problem.  Each invoice must also include 1 to n images at the end of the report.  2 on a page and take up an entire 8.5 by 11 inch page. (spanning many pages when many line items exist)
 
Since the report already has a page header and footer with the report detail stuffed in a table in the middle of the page (report body), I am stuck. 
 
I have read several posts which talk about having a can-grow container  with a subreport in the existing footer, but I can't even come close to getting this to work. My footer would have to take up the entire page and having nothing but a subreport in it.
 
I can not provide a link to the images in the report, as each report must print in its entirety without user involvement (no drilling down).
 
I am thinking that my report is too complex for SSRS at this time.  I would love to be proven wrong by someone on this forum.
 
Thanks for any and all replies.
 
John

View Replies !
Is My Database Connection Alive And Viable?
 

Currently, our application is issuing a 'select count(*) from systypes' command to check to see if the database connection is live (has not been reaped by the firewall.)  This is somewhat inefficient.  Perhaps a less expensive way to implement this functionality is to issue a ping statement to the instance?  At least a more simple SQL query is needed.

I'm sure this function is typical in application architecture.  What recommendations do you have for confirming that a database connection is alive and viable from the application?

 

Stephanie

 

View Replies !
[Microsoft][ODBC SQL Server Driver]Syntax Error Or Access Violation'
Where i try to create stored procedure in sql server 2000 using query analyzer i'm getting an error

'[Microsoft][ODBC SQL Server Driver]Syntax error or access violation'

and the same stored procedure if i try after some time without any changes it gets created..

how is wrong?

View Replies !
[Microsoft][ODBC SQL Server Driver]Syntax Error Or Access Violation
 

Hi guys! I am using SQL 2005 and I wonder why I am encountering the error "[Microsoft][ODBC SQL Server Driver]Syntax error or access violation" everytime I am trying to create stored procedure with temp table and table variable.
See my code below with temp table.

 
Any thoughts will be appreciated!
 
CREATE PROCEDURE DBO.SAMPLESP
 (@DETAILS AS VARCHAR(8000),
  @ID AS VARCHAR(15))

 
AS
 
BEGIN TRANSACTION

CREATE TABLE DBO.#TEMPTABLE
{
 ASSET VARCHAR(50)
}

DECLARE @INSTINSERT AS NVARCHAR(4000) 
SET @INSTINSERT= 'INSERT INTO #TEMPTABLE(ASSET)'
SET @INSTINSERT= @INSTINSERT+ @DETAILS
 
EXEC sp_ExecuteSQL @INSTINSERT
 
INSERT INTO InstDetail
(TrackNum, ASSETID)
SELECT @ID, A.ASSE
FROM  #TEMPTABLE A
 
DROP TABLE #TEMPTABLE


IF @@ERROR != 0
BEGIN
    ROLLBACK TRANSACTION
    RAISERROR('There was an error in here', 11, 1)
    RETURN
END
ELSE
    COMMIT TRANSACTION

View Replies !
SQL Server Express, ODBC, Microsoft Access Sees Data Read-Only
Hi there,

I have successfully installed SQL Server Express.

I have copied NorthWind to SQL Server.

I have created an ODBC to the SQL NorthWind.

But my problem is, I open the data but I cannot edit or insert records

to the Customer table.

I have gone into SQL Management Studio and modified Permissions

on NorthWind and the Customer table with Alter, Insert, Update.

But no luck.

Has anyone experienced this?

Email me at justintoronto@hotmail.com if you have a solution.

I will try to check back here also.

Thanks,

Justin

 

View Replies !
LIB][ConnectionOpen (Connect()).]SQL Server Does Not Exist Or Access Denied.
Okay Ive managed to confuse myself pretty good.I have an aspx page that attempts to connect to an SQLEXPRESS instance and add data to a table.Code as follows:beginning of page<%@ page aspcompat=true enablesessionstate=false language=javascript %><!--#include file="adojavas.inc"--><%@ Import Namespace="System.Data.OleDb" %>I have a toolfunction that when called upon runs this:if (xco >= -180 && xco <= 180 && yco >= -90 && yco <= 90) {                        status = "Can't connect to database.";                        // create connection to database                        var connection;                        connection = Server.CreateObject("ADODB.Connection");                        connection.Open("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=OutdoorsExp;Data Source=\.pipeMSSQL$SQLEXPRESSsqlquery;");                        status = "Can't access table.";                        // create recordset                        var recordset;                        recordset = Server.CreateObject("ADODB.Recordset");                                        recordset.Open("dbo.FishType", connection, adOpenDynamic);                        status = "Can't append new record, record set does not support AddNew.";                        // append record for clicked location                        if (recordset.Supports(0x01000400)) {                          status = "Can't append new record.";                          recordset.AddNew();                          recordset.Fields("LongitudeI").Value = xco;                          recordset.Fields("LatitudeI").Value = yco;                          recordset.Update();                        }                        recordset.Close();                                            // release the file                        connection.Close();                        status = "Can't propagate changes to drawing.";                        // refresh drawing                        var document = mapserver.Document;                        var componentIndex = document.ComponentSet.ItemByName("FishTable Data Points Drawing");                        if (componentIndex >= 0) {                            document.ComponentSet.Item(componentIndex).Refresh();                        }                        status = xco.toString() + ", " + yco.toString();                                             }Unfortunately this gives me an error instead of transferring the value xco,yco to the SQL Tables LatitudeI/LongitudeI column.Ive tried many different connections strings, and have played myself into a state of confusion now :(.I get this error:[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.[COMException (0x80004005): [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.]Ive tried named pipes and using IP to connect, and Im not 100% sure how to use SQL Server via
"System.Data / System.Data.SqlClient".Any insights would be greatly welcomed!

View Replies !
SQL Server Does Not Exist Or Access Denied. ConnectionOpen(Connect())
The server that needs to be moved: SERVER A.
The databases which need to be moved (present in SERVER A): DB-A, DB-B.
The SERVER A machine is in X domain

The target machines: Could be any of SERVER T1
This machine is in Y domain.

While we are trying to create a new server instance of the Server A in SERVER T1, we are getting an error message as shown below:

Reason: SQL server does not exist or access denied. (ConnectionOpen (Connect())

The server that needs to be moved SERVER A could not be mapped to SERVERT1.

Problem: The tables concerned present in the SERVER A and the production server are same. These could be extracted to SERVERT1 using the SQL Enterprise Manager utility.
Views and Stored Procedures concerned are only present in SERVER A. Problem lies in copying them. Manually doing so could pose great risks.
What is the plausible work around for this?

View Replies !
Sql Server Does Not Exist Or Access Denied ConnectionOpen(connect())
I am trying to link SQL SE 2000 (Local server at head office) to MSDE 2000 (remote server). After creating the server group in local server, I try to register SQL server Computers (MSDE 2000) to place in it.

But I received this error message.


"SQL server registration failed because of the connect failure displayed below. Do you wish to Register anyway

SQL Server does not exist or access denied connectionOpen(Connect()).'"

I checked the setup for client and server utilities.

Client Utility is TCP/IP
Server Utility is Named pipe

Please, help me. I don't know what went wrong here.

View Replies !
Unable To Connect To SQL Server Database CANNOT ACCESS THE OLD THREAD
The reason I had to start a new thread was that the old thread seems to be closed. There is no "Reply" button showing.

I still have the same problem. The last post asked if I was sure I was using SQLExpress.

I only have SQLEXPress and I have never had anything else. Therefore the question becomes - Why does the system seem to think I have another version?

 

Alan

View Replies !
Can't Connect To SQL Server Express - Error Access Denied
Hi,
 
I have been for years using the following code locally in native ASP (except different UID and PWD and file path for the msado15.dll) with SQL Server 2000 on XP to do my development and then I upload to the web site later (uses different objConn etc when live). I've now tried to use the same for SQL Server Express and Vista and always get the "does not exist or access denied" error ( 2147467259).
 
I only want to use SQL Server locally from the machine I'm developing on as I upload the tested "ASP" code to the server which runs it. The SQL Server Browser is running and I have checked the Firewall exclusions for sqlservr.exe. Also I installed it with out Windows Logon (same as I had for SQL Server 2000).
 
Any ideas, I tried using the Data Source=localhost instead of explicitly defing the path except that had no affect either, I also changed the rshstest_data.mbf to rshstest.mbf as well also to no affect as there appears a difference with this in 2000 and Express?
 
Any suggestions would be appreciated, thanks..
 
<!-- METADATA TYPE="typelib"
              FILE="e:Program FilesCommon FilesSystemadomsado15.dll" -->
<%
on Error resume next
objConn.Close
Set objConn = Nothing
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider=SQLOLEDB;Persist Security Info=False;" & _
  "User ID=xx;Password=xx;Initial Catalog=rshstest;" & _
  "Initial File Name=C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData
shstest_data.mdf"
'                "Data Source=localhost;"

 Dim strConnect
 strConnect = "Provider=SQLOLEDB;Persist Security Info=False;" & _
 "Provider=SQLOLEDB;Persist Security Info=False;" & _
  "User ID=xx;Password=xx;Initial Catalog=rshstest;" & _
  "Initial File Name=C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData
shstest_data.mdf"
'                "Data Source=localhost;"

View Replies !
Server Does Not Exist Or Access Denied ConnectionOpen[Connect]
Server Does Not Exist or Access Denied  ConnectionOpen[Connect]

View Replies !
Performance Issues - Access 2000 Frontend SQL Server 2000 Backend
Hi,Simple question: A customer has an application using Access 2000frontend and SQL Server 2000 backend. Data connection is over ODBC.There are almost 250 concurrent users and is growing. Have theysqueezed everything out of Access? Should the move to a VB.Net frontendtaken place ages ago?CheersMike

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved