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.





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 Complete Forum Thread with Replies

Related Forum Messages:
Problem Using Access 2000 As A Front-end To SQL Server 2000 Tables
I've created a small company database where the tables reside in a SQLServer database. I'm using Access 2000 forms for a front end.I've got a System DSN set-up to SQL Server and am using links withinAccess 2000 to get to the SQL Server tables.My forms worked fine until I made a few minor changes to the databaseschema on SQL Server (e.g. added a foreign key, or added a column).After that, all the links break - I click on a table link and get anerror msg like "invalid object name."Deleting the links after a schema change and re-adding the links seemedto fix the problem. The forms I'd already created seemed to work fineafter re-creating the links.But then I got more advanced with my forms. I have it set up so thatfor certain entry fields, the combobox gets populated with values froma table (the description appears in the drop-down and the correspondingprimary key value gets populated in the table). I created a number offorms using this technique, entered data, and everything worked fine.Made a small schema change and it broke everything -- not the actualtable links, but the functionality for the drop-downs. My values nolonger appeared, and this was true for forms that accessed tables whoseschemas did not change.This is driving me nuts. Is there any way to keep my forms frombreaking each time I make a small schema change?Thanks.- Dana

View Replies !
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 Server2000 database?The users would access via the internet using a netgear vpn setup.Thanks,Paul S

View Replies !
SQL 2000 Linking Tables To Access
Hi, I need to link an Access 97 database to sql server 2000. I can't use Enterprise Manager so I have created a simple asp.net page using sp_addlinkedserver and sp_addlinkedsrvlogin.

The mdb file is on a network share, then I have permissions problems: here is a sample

sp_addlinkedserver 'test', 'Access 97', 'Microsoft.Jet.OLEDB.4.0',
'\SVKNFS080Pshareaccess97db1.mdb', 'efco'

sp_addlinkedsrvlogin 'test', false, 'sa', 'Admin', NULL

I have no problems executing these stored procedures (the linked server is added in sysservers table), but when I try to query the access database

SELECT * FROM test...profile

I get this error

Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned message:
The Microsoft Jet database engine cannot open the file '\SVKNFS080Pshareaccess97dboutlet.mdb'. It is already opened exclusively by another user, or you need permission to view its data.]

The mdb file is not locked, I think is a permission's problem.

Can anyone help me ?

Thanks in advance

View Replies !
MS Access 2000 Link SQL 2K Tables
Anyone has any idea why I havethis problem?

I have a SQL 2K database on a named instance with tables populated with data and they have no relations between them.
I have a MS Access 2000 database.
I have a system ODBC connection on the client computer to the SQL 2K using trusted connection.
I linked the tables into MS Access 2000 to SQL 2K and I can read the data without any problem.
When I try to update the data on the table, I get the message : The recordset is not updatable.
I am the DBO. So I am supposed to have all rights. All the select, update, insert and DRI rights are enabled.
I tried it with another user and it does not work either.

Anyone has an idea?

Thanks

View Replies !
Exporting Tables To Access 2000
Hi,
I have noticed that when exporting tables and data to an Access 2000 database I do not have a check box that allows me to keep primary keys.

I have seen this check box before and am confused as to why I can't see it now.

Appreciate any pointers from someone.

Steve

View Replies !
Access 2000 Linking SQL Server Tables
Hello all,

We have an Access front end to our SQL Server and we just upgraded to Office 2000. As we converted our Access frontend we did a relink of the linked tables using the Linked Table Manager and all of our linked tables are read-only now!!!

When we delete the readonly tables and link them up again individually, they work just fine. But, anytime we relink with the Linked Table Manager they become readonly.

Does anyone know or are aware of this phenomenon? And what do I do to correct this time consuming problem?

Thanks for all the help

Kevin Kraus

View Replies !
Linked Server From Sql 7 To Ms Access 2000 ... Some Tables Not Available - Solved
Hi,I have a linked server in sql 7 that connects to a ms access 2000database. It has been working for a while, however lately, after weimported a large amount of new data, the database fails to query acertain (large number of records) table.I can query and get responses for every other table except the largesttable.select top 5 * from linkeddatabase...tableI get this error message.[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData(CheckforData()).[Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error.Check your network documentation.Connection BrokenI called a collegue and he suggested removing the primary key index(which was multi field), creating an autonumber field and making it theprimary key, and then building a unique index on the two fields thatwere formerly the primary key to insure the data stayed unique.This index restructing fixed the problem.(Thanks Joe!)Justin

View Replies !
IDENTITY Column In SQL 2000 And Linked Tables In MS Access
Please help

We have an application written in MS Access. The tables are linked to a SQL 2000 database.
The problem is that sometimes insert a new record in a table freezes and times out after a while without anything has happened.
When installing the application the *mdb file is copied over to the C drive and an ODBC connection is written to the registry.
The application is used by many in the company.
We have problems on tables defined with IDENTITY columns. Can this be our problem and how can we solve it?

Regards Anna-Lena

View Replies !
Problem Linking To Tables In SQL Server 2003 Using MS-Access 2000
Hi,

 

I have an MS-Access database on a shared drive.The Access database has tables linked to a SQL server database.When I try to query the tables in MS-Access database by accessing the share drive,I get the ODBC--call failed error.So I tried creating an ODBC driver for the SQL Server and when I try to link the tables,no tables are displayed.Can anyone help me out with this problem?

 

-Ruth

View Replies !
MS Access Linked Tables To SQL Server 2000 Slow On Vista
I am using two almost idential laptops, one with XP and one with Vista, the only differences is that the XP laptop has 1G of RAM and running Office XP and the Vista has 2G RAM and is running Office 2007.

I have a MS Access database that has linked tables to a SQL Server 2000 database.  The performance of the Access database on Vista is 5-10 times slower on the Vista machine.  Just flipping through records or opening forms can take 5 - 15 seconds on the Vista machine while the XP machine takes 1 sec or less.

What gives?  I looked at the CPU performance and the network performance while the Access database was busy flipping through records, the network traffic was < 2% and the CPU would spike to 40% on one of the CPUs (dual core) but would remain under 5% most of the time.

 I also previously had Office XP installed on the Vista machine and it had the same performance issue so bought and install Office 2007 on the Vista machine and it did not solve the problem. 

It seems that Vista is doing something that is slowing down Access with linked tables.  Is this a issue between Vista and using an ODBC connection to SQL Server?

Thanks in advance for any help on this

View Replies !
Can I Access SQL Server 2000 Tables Via SSIS/SQL Server 2005
Can I access SQL Server 2000 tables via SSIS/SQL Server 2005?

View Replies !
Why Would Tables Pulled In From ODBC In Access Be Different Than Tables In SQL 2005 Tables?
I'm new to my company, although not new to SQL 2005 and I found something interesting.  I don't have an ERD yet, and so I was asking a co-worker what table some data was in, they told me a table that is NOT in SQL Server 2005's list of tables, views or synonyms.

I thought that was strange, and so I searched over and over again and still I couldn't find it.  Then I did a select statement the table that Access thinks exists and SQL Server does not show and to my shock, the select statement pulled in data!

So how did this happen?  How can I find the object in SSMS folder listing of tables/views or whatever and what am I overlooking?

Thanks,
Keith

View Replies !
Solution!-Create Access/Jet DB, Tables, Delete Tables, Compact Database
From Newbie to Newbie,

 

Add reference to:

'Microsoft ActiveX Data Objects 2.8 Library

'Microsoft ADO Ext.2.8 for DDL and Security

'Microsoft Jet and Replication Objects 2.6 Library

 --------------------------------------------------------

Imports System.IO

Imports System.IO.File


      


Code Snippet

 'BACKUP DATABASE

Public Shared Sub Restart()

End Sub

 

'You have to have a BackUps folder included into your release! 

Private Sub BackUpDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackUpDB.Click
        Dim addtimestamp As String
        Dim f As String
        Dim z As String
        Dim g As String
        Dim Dialogbox1 As New Backupinfo


        addtimestamp = Format(Now(), "_MMddyy_HHmm")
        z = "C:Program FilesVSoftAppMissNewAppDB.mdb"
        g = addtimestamp + ".mdb"


        'Add timestamp and .mdb endging to NewAppDB
        f = "C:Program FilesVSoftAppMissBackUpsNewAppDB" & g & ""

 

      Try

           File.Copy(z, f)

      Catch ex As System.Exception

           System.Windows.Forms.MessageBox.Show(ex.Message)

      End Try

     

      MsgBox("Backup completed succesfully.")
        If Dialogbox1.ShowDialog = Windows.Forms.DialogResult.OK Then
        End If
        End Sub

 

 


Code Snippet

'RESTORE DATABASE

    Private Sub RestoreDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

    RestoreDB.Click
        Dim Filename As String
        Dim Restart1 As New RestoreRestart
        Dim overwrite As Boolean
        overwrite = True
        Dim xi As String


        With OpenFileDialog1
            .Filter = "Database files (*.mdb)|*.mdb|" & "All files|*.*"
            If .ShowDialog() = Windows.Forms.DialogResult.OK Then
                Filename = .FileName

 

              'Strips restored database from the timestamp
                xi = "C:Program FilesVSoftAppMissNewAppDB.mdb"
                File.Copy(Filename, xi, overwrite)
            End If
        End With


        'Notify user 
        MsgBox("Data restored successfully")
  

      Restart()
        If Restart1.ShowDialog = Windows.Forms.DialogResult.OK Then
            Application.Restart()
        End If
        End Sub

 

 




Code Snippet

'CREATE NEW DATABASE

    Private Sub CreateNewDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

    CreateNewDB.Click
        Dim L As New DatabaseEraseWarning
        Dim Cat As ADOX.Catalog
        Cat = New ADOX.Catalog
        Dim Restart2 As New NewDBRestart
        If File.Exists("C:Program FilesVSoftAppMissNewAppDB.mdb") Then
            If L.ShowDialog() = Windows.Forms.DialogResult.Cancel Then
                Exit Sub
            Else
                File.Delete("C:Program FilesVSoftAppMissNewAppDB.mdb")
            End If
        End If
        Cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Program FilesVSoftAppMissNewAppDB.mdb;

       Jet OLEDB:Engine Type=5")

        Dim Cn As ADODB.Connection
        'Dim Cat As ADOX.Catalog
        Dim Tablename As ADOX.Table
        'Taylor these according to your need - add so many column as you need.
        Dim col As ADOX.Column = New ADOX.Column
        Dim col1 As ADOX.Column = New ADOX.Column
        Dim col2 As ADOX.Column = New ADOX.Column
        Dim col3 As ADOX.Column = New ADOX.Column
        Dim col4 As ADOX.Column = New ADOX.Column
        Dim col5 As ADOX.Column = New ADOX.Column
        Dim col6 As ADOX.Column = New ADOX.Column
        Dim col7 As ADOX.Column = New ADOX.Column
        Dim col8 As ADOX.Column = New ADOX.Column

        Cn = New ADODB.Connection
        Cat = New ADOX.Catalog
        Tablename = New ADOX.Table

 

      'Open the connection
        Cn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Program FilesVSoftAppMissNewAppDB.mdb;Jet

      OLEDB:Engine Type=5")


        'Open the Catalog
        Cat.ActiveConnection = Cn

 

      'Create the table (you can name it anyway you want)
        Tablename.Name = "Table1"


        'Taylor according to your need - add so many column as you need. Watch for the DataType!
        col.Name = "ID"
        col.Type = ADOX.DataTypeEnum.adInteger
        col1.Name = "MA"
        col1.Type = ADOX.DataTypeEnum.adInteger
        col1.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col2.Name = "FName"
        col2.Type = ADOX.DataTypeEnum.adVarWChar
        col2.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col3.Name = "LName"
        col3.Type = ADOX.DataTypeEnum.adVarWChar
        col3.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col4.Name = "DOB"
        col4.Type = ADOX.DataTypeEnum.adDate
        col4.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col5.Name = "Gender"
        col5.Type = ADOX.DataTypeEnum.adVarWChar
        col5.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col6.Name = "Phone1"
        col6.Type = ADOX.DataTypeEnum.adVarWChar
        col6.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col7.Name = "Phone2"
        col7.Type = ADOX.DataTypeEnum.adVarWChar
        col7.Attributes = ADOX.ColumnAttributesEnum.adColNullable
        col8.Name = "Notes"
        col8.Type = ADOX.DataTypeEnum.adVarWChar
        col8.Attributes = ADOX.ColumnAttributesEnum.adColNullable

 

       Tablename.Keys.Append("PrimaryKey", ADOX.KeyTypeEnum.adKeyPrimary, "ID")
  

      'You have to append all your columns you have created above
        Tablename.Columns.Append(col)
        Tablename.Columns.Append(col1)
        Tablename.Columns.Append(col2)
        Tablename.Columns.Append(col3)
        Tablename.Columns.Append(col4)
        Tablename.Columns.Append(col5)
        Tablename.Columns.Append(col6)
        Tablename.Columns.Append(col7)
        Tablename.Columns.Append(col8)

 

      'Append the newly created table to the Tables Collection
        Cat.Tables.Append(Tablename)

 

      'User notification )
        MsgBox("A new empty database was created successfully")


        'clean up objects
        Tablename = Nothing
        Cat = Nothing
        Cn.Close()
        Cn = Nothing


        'Restart application
        If Restart2.ShowDialog() = Windows.Forms.DialogResult.OK Then
            Application.Restart()
        End If

    End Sub

 






Code Snippet

 

'COMPACT DATABASE

    Private Sub CompactDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

    CompactDB.Click
        Dim JRO As JRO.JetEngine
        JRO = New JRO.JetEngine


        'The first source is the original, the second is the compacted database under an other name.
        JRO.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Program

      FilesVSoftAppMissNewAppDB.mdb; Jet OLEDB:Engine Type=5", "Provider=Microsoft.Jet.OLEDB.4.0;

      Data Source=C:Program FilesVSoftAppMissNewAppDBComp.mdb; JetOLEDB:Engine Type=5")


        'Original (not compacted database is deleted)
        File.Delete("C:Program FilesVSoftAppMissNewAppDB.mdb")


        'Compacted database is renamed to the original databas's neme.
        Rename("C:Program FilesVSoftAppMissNewAppDBComp.mdb", "C:Program FilesVSoftAppMissNewAppDB.mdb")


        'User notification
         MsgBox("The database was compacted successfully")

     End Sub

    End Class

 

View Replies !
Import Access Tables (set Up As Pass-through Table Types To Oracle )--OLE DB Connection To Access Cannot See Them
Access Connection

create a new Connection Manager by right-clicking in the Connection Managers section of the design area of the screen. Select New OLE DB Connection to bring up the Configure OLE DB Connection Manager dialog box. Click New to open the Connection Manager. In the Provider drop-down list, choose the Microsoft Jet 4.0 OLE DB Provider and click OK.
Browse to the Access database file and connection set up---all good!!!
 
Dataflow task
Add an OLE DB Source component
Double-click the icon to open the OLE DB Source Editor. Set the OLE DB Connection Manager property to the Connection Manager that I  created . Select Table from the Data Access Mode drop-down list.
I cannot see the tables set up as set up as pass-through table types to a Oracle 9i db

Any ideas please help
 
thanks in advance
Dave

View Replies !
Problems With SQL 2000 And 2005 On Same Machine - Can't Connect On 2000
Hi,i have SQL 2000 and 2005 on same machine(with different intance names,of course), my laptop - XP with SP2. The 2005 works fine but i can'tconnect on SQL 2000. All the the SQL services are started.Any idea? Have i to reinstall 2000?Tks,Lourival

View Replies !
Updating Tables In SQL Server 7 Based On Access 97 Tables
Let me start by saying I'm very new to SQL Server... I've upsized my Access Database to SQL Server successfully, but need to keep updating my SQL Server Database with data in my Access 97 database. For example, a table in my Access Database is updated on a regular basis and at certain times, we want to upload that information to our SQL Server database. How can I easily overwrite data in a SQL Server table with data imported from Access 97? I keep getting error messages about the primary/foreign keys...

Any help would be greatly appreciated.

Glenn

View Replies !
Access 2007 Linked Tables (vs Access 2003)
We migrated a MS Access 2003 mdb into MS Access 2007.  The mdb has linked tables to SQL Server via a DSN and utilizes a mdw file.  In 2003, the username/password is "passed" to SQL Server, so the UID/PWD that is used for opening the mdb, is used in SQL Server.

 

Opening the same file in 2007 using the same mdw, gives a secondary login on SQL Server.

 

Is there a way to have MS Access 2007 pass the UID/PWD to SQL Server on linked tables, the same way that 2003 does?

 

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 !
Cannot Get Access To My Access 2003 Database Tables
 I developed a database with Access 2003 and everything was working good until my tech came in and reformated my hard drive and install a new Ghost image that met our company standards.

Now I cannot go in and make any changes to any of the tables, queries and forms. All of this started when a new Ghost image was installed on my pc.

The message I get when I try to open my database is "You do not have permission to run "tblSwitchboard." I get the same error message when I try to do anything at all on the database.

I am at a loss as to what to do. Please help.

 

 

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 !
How Can I Connect Tables.
Hi,How do i connect tables so they are interrelated to each other. like the asp.net 2.0 membership tables have the "id"  and how can i use that? i have multiple tables that are all connected.like i have a table for profile. and images profile with include their profile, while images will include there avatar.now when i display there profile on page, i need to grab the data from both the profile table and avatar. right now i've been using the "JOIN" statement. but is tehre any other way 

View Replies !
Upgrading Access 2003 To Access Project And SQL 2000 Backend.
Hi,
 
I am upgrading an Access 2003 database to an Access Project with a SQL 2000 backend.
 
I am trying to develope a type of framework to communicate with the backend.  I have read some about linked tables, pass through queries ect.  My initial instinct would be to use sprocs and ADO from VBA modules like a .NET application.
 
My database has reports, forms that update and insert data, and forms the call data proccessing procedures.
 
Is ADO from VBA modules calling sprocs the best method to manipulate my data.
 
The DB could have up to a million or 2 records in my biggest table, their are only two end users.
 
Any suggestions or links or books would be appreciated.
 
Thanks,
 
Mike

View Replies !
Connecting To SQL 2000 From Access 2003 Data Access Project
I have an Access project that is under Terminal Services (TS) on a Windows 2003 server. When I create a project I can setup a connection and see the SQL table in the 'Tables' tab in Access. I can use Design mode to view the table setup but when I try to view the data in the table I get an error saying 'Data Provider could not be initialized'. SQL server is on Windows server 2000.

When I access data using a connection in VB everthing is fine, no error.

I have 5 TS servers and managed to get the situation resolved on one of them about a year ago but cannot recall what was done. I seem to remember that it was something like changing one of the DLLs to a slightly older version.

Does anyone know the answer to this one?

 

View Replies !
Cannot Connect To SQL From Access
I can connect to SQL from some Access forms that are in SQL test server.

But when I try and connect to the same forms on a development server I cannot insert records. Even though I have changed the connection in the script.

Can someone please tell me what I am doing wrong????? I do have full permissions both boxes.


Thanks,
Dianne

View Replies !
ADO Connect - Access Project
Hi,

I'm using Access project as FE and SQL Server as BE. Connection from FE to SQL server is via NT login authentication and in my codes, I simply used "currentproject.baseconnectionstring" as my ADO connection string to connect to the server.

This worked fine until I realised that I might want to use SQL logins instead of NT logins to access the sql db. But with this, baseconnectionstring will not work (it will not provide the password required). To solve this, just have to make sure the user 'save the password' while logging in. But this is unsafe.

If I am not asking for too much, is there any other ways to establish a valid connection with SQL (via ADO) which having the user to save the password while logging into the Access Project file during launch?

Any advise would be grateful..

Cyherus

View Replies !
Can't Connect With Full Access!
i have a database that i am trying 2 convert from access to SQL Server...

but when i try to read the SQL Server tables through MSAccess i can't enter or edit data... the database properties, and the user permissions are NOT readonly in both access and SQL Server - so whycan't i write data?

Thanks Kris

View Replies !
Using Access To Connect To Sql Database
Can someone explain how to use Access to connect to and use a sql database?
thanks

jarnone@bellsouth.net

View Replies !
Prevent MS Access To Connect
Hello
 
I'm facing a dilemma. I have quite a lot of users who need read access to data for analysis purposes. By granting them read access you also give them the option to connect to the database using MS Access which puts locks on the data.
 
First I thought of generating stored procedures for all tables within a database those users need to query but when users execute a stored procedure with the name of the table, they get a resultset of all the data. They cannot filter the data by for example using select top 100* from usp_table where name like '%worf%'
 
I'm sure I'm not the only one here but I don't see any alternative then grant them those rights.
 
Thanks!
Best Regards,
Worf

View Replies !
Cannot Connect To Access Database
I have followed the instructions to the letter and still cannot connect to the Access database on the desktop. I am running XP Pro with Office 2003. I am using MaAfee virus scan and I disabled Access Protection, buffer Overflow protection. On-Delivery E-mail scanner and On-Access Scanner iare still enabled. . The error log on my device reads "Failure to open SQL Server with given command" and Error connecting to Access Database.
 
Also is there a VB equivelent to the Visual studio application avaiable for download?
 
Thanks in advance
 
 

View Replies !
Stored Procodure To Connect 4 Tables
I have 4 tables connected with one particular Id.
I will explain the table with sample data to make it more clear.
table 1                                                             Table 2
Id(PK)       Firstname   Lastname                   T2Id(PK)   Id(FK)           Pfirstname     Plastname
65                   a                  b                                 22             65                     AA                        BB
                                                                              
Table 3                                                                                    Table 4
 T3Id(PK)     Id(FK)     Firstname Lastname                     T4Id(PK)  Id(FK)   T3Id(FK)  Pfirstname   Plastname
45                  65               c                 d                                       33            65            45            CC                     DD
46                  65               e                 f                                         44            65            46            EE                     FF
I want the output to be
               Firstname          Lastname      Pfirstname       PlastName
                  a                               b               AA                           BB
                  c                              d               CC                              DD
                  e                                f               EE                              FF
I am able to join table3 and table 4 to get the last 2 rows of output but not able to get all three rows by inner join of 4 tables.
 
pls help me
 
 

View Replies !
How To Connect To SQL Database, Create Tables
Hi All, 1st of all happy New Year to all asp.net forum members
    I am new at asp.net. I want to design a website
using asp.net as frontend and sql database as backend. I am able to
connect and add,update as well delete records when I use MsAcess and
Asp.net using the following connection strings...
**********
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("/database/northwind.mdb"))
dbconn.Open()
sql="SELECT * FROM customers where city LIKE 'Berlin' order by city ASC"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
customers.DataSource=dbread
customers.DataBind()
dbread.Close()
dbconn.Close()
end sub
**********

But when I try to connect to sql database using the following connection strings I am unable to do so...

**************
SqlConnection myConnection = new SqlConnection("server=PLATINUMVSdotNET;database=pubs;Trusted_Connection=yes");
        SqlDataAdapter myCommand = new SqlDataAdapter(" * from Authors", myConnection);

        DataSet ds = new DataSet();
        myCommand.Fill(ds, "Authors");

        MyDataGrid.DataSource=ds.Tables["Authors"].DefaultView;
        MyDataGrid.DataBind();

**************
I have written the servername as "PLATINUMVSdotNET" because when I
installed SQL SERVER 2000 I found a tray icon where the server name was
displaying the same (my computer name is PLATINUM).
When I used webmatrix I enterd the same server name and  windows
authentication I was able to create a database but How to create
table...

Please help me out
Thanks in advance...

View Replies !
Connect Remotely To Sql Express Using MS Access
I want another PC (not local) to connect to SQL Express database using MS Access, I cannot find anything on how to start, is there a tutorial or guide somewhere.
The location is in another city and I want someone just to view the tables on their PC using Access.
I have set everything up my end with ports and TCP connections etc..
Many thanks
Regards
Richard
 
 
 
 

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 !
Ssis, How To Connect To Access Database?
MS Access database was one of the standard data connections in DTS.  Excel is listed as a scourc/destination, but access is not.  Question:

What is the best connection to use for MS-Access databases for output of data?

We generally process the ETL in SQL server then, export to Access database.

THANKS!!

Dave

View Replies !
Connection Manager To Connect Ot Access Mdb
How do you setup a conntection in ssis to connect to an access mdb? I have used DTS to upload access tables to sql and want to do the same in the new ssis services. I migrated the DTS package but the connection in created for the access mdb does not work in ssis and is shown to be be illegal. The migration did not post any errors when it migrated the package.

View Replies !
How To Connect To A SQL Database From Access 2002
Currently i have a SQL database on our server and an adp file that allows the end user to open the database to play with the data.
 
On the client side the user navigates to the adp file from above and opens it which allows them to do their work.
 
I need the same database but for another department, so i copied the SQL and adp file to another folder and renamed it. I then open the adp file from the new folder created using Access 2002 on Win XP Pro SP2, click File navigate to connection and refresh the data source and server name but i cant see the new database i copied over.
 
I then stop/start the Sql server but same issue. I now think i might need an ODBC connection but when going into ODBC the other database has no connection setup in there therefore i guess i dont need to for the new database. I type the name of the new database in connection (Access 2002) and comes back with an error (Cant find it)
 
Any idea about this one? all im trying to do is have the same database with a different name and allowing clients to connect to it?
 
Thanks

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 !
Maximum Capacity Specifications Comparison Table For Access, SQL Server 7, 2000 And MSDE 2000
 









Parameter
Access 2000/XP
SQL Server 7.0
SQL Server 2000
MSDE 2000

Number of instances per server
n/a
n/a
16
16

Number of databases per instance / server
n/a
32,767
32,767
32,767

Number of objects per database
32,768
2,147,483,647
2,147,483,647
2,147,483,647

Number of users per database
n/a
16,379
16,379
16,379

Number of roles per database
n/a
16,367
16,367
16,367

Overall size of database (excluding logs)
2 GB
1,048,516 TB
1,048,516 TB
2 GB

Number of columns per table
255
1024
1024
1024

Number of rows per table
limited by storage
limited by storage
limited by storage
limited by storage

Number of bytes per row





(Excluding TEXT/MEMO/IMAGE/OLE)
2 KB
8 KB
8 KB
8 KB

Number of columns per query
255
4,096
4,096
4,096

Number of tables per query
32
256
256
256

Size of procedure / query
64 KB
250 MB
250 MB
250 MB

Number of input params per procedure / query
199
1,024
2,100
2,100

Size of SQL statement / batch
64 KB
64 KB
64 KB
64 KB

Depth of subquery nesting
50
32
32
32

Number of indexes per table
32
250 (1 clustered)
250 (1 clustered)
250 (1 clustered)

Number of columns per index
10
16
16
16

Number of characters per object name
64
128
128
128

Number of concurrent user connections
255
32,767
32,767
5

View Replies !
Problem By Design - MS-SQL Server 2000 And MS-Access 2000 Project.
Hi.Sorry for cross posting!After I've installed MS-SQL Server 2000, I've got a problem each time I opena table, view or diagram in design, in a MS-Access project.Something like a table is popping up, but only the headline of the table,there is no name in the headline. The (ghost) table is automatic gettingfocus, (like a dialog box), and I can't do anything.I can close the (ghost) table using ALT-F4 combination, but it is veryannoying me.I've tried to uninstall both the MS-SQL Server 2000 and MS-Access 2000, I'vealso tried to compact and repair the database without luck.If I connect to MS-SQL Server 7 on another computer, (same database),everything is fine.My OS is Windows XP Home edition; the MS-SQL Server 7 is running on Windows98.Does anyone here have had the same experiences?TIAJřrn

View Replies !
Reconnecting Access 2000 Front End To New Instance Of SQLServer 2000
I recently had to reinstall a new instance of SQLServer 2000, but was unable to use the previous server name. As a result, my Access2000 front end is not happy with it's linked tables. I can't seem to find anyplace within Access to universally change the address of the SQLServer used as the back-end for all linked tables.

When I do try to access the linked tables through Access, I get an error, and the option to change the server location. When I try to type-in the new SQLServer location, there is an attempt to reconnect to SQLServer, but a whole lot of errors are generated, and none of the data is transferred into the Access table.

I really don't want to have to re-do my Access front end, so it seems it would be easiest to somehow reinstall SQLServer to have the same server location it used to. Is there a good way to completely erase all traces of SQLServer so that I can have better luck reinstalling it to the same location it used to be in? Just using the uninstall program from SQLServer doesn't seem to be cutting it.

Thanks!

View Replies !
Access 2000 Frontend MS SQL 2000 Backend - Locking Problems
We are using an Access 2000 project to view our SQL Tables and using Access 2000 Runtime to Access the forms in the project. We have written in a locking system in VB and removed the video controls to prevent users from accessing the same records. But of course now we need to make the video controls available. This has now thrown up the problem of multiple users accessing the same records. We have tried to write code to lock records when then video controls are used but this is not working as well as we hoped. Can anyone please suggest any way of setting up locking on SQL using triggers from the Access frontend? or any other types of locking systems that could be written in the Access front end.

View Replies !
How Do I Connect To Tables Within Another Database Via View Designer/gui
I'm using the gui to create a view which requires my connecting to another database on the same server.   I've tried to create synonyms; however, I can not access them (they do not display) on the synonym tab when I try to add them to the view.
 
I'm a novice so any suggestions to get me on my way is greatly appreciated.
 
Thank you in advance,
Steve
 

View Replies !
Connect To Microsoft Access Via Stored Procedure
Hi,

I'm new to SQL server, still in the beginning stage of learning SQL Server. I'm here would like know, besides using the Connectivity from the DTS Designer to connect to different databases, is it possible to connect the database, i.e: Access via stored procedure? and how? Pls advise...

I'm have been trying to look for the solution via a lot of SQL Server site, but fail to get what I want.

What I'm trying to do is something like :
First connect to the Database and Query the data, after that insert it into another database....

View Replies !
DTS Connect To Access 97 Secure Database Trouble...
Ok, I need to give some details. I have a secure Access Database using WorkGroup Security logon. It is an Access 97 database (yes I know it is "old").

I tried to create a DTS package in SQL Server 2000 to connect to it, but I am getting the same error that I got before I "joined" the workgroup when attempting to access the DB. So I changed the Service logon identites to mimic <me> as the logon, and still I can't get it to connect. The user name and password I put in the connection are correct.

It seems like nothing is working and I am all out of ideas. Does anyone have any recommendations? Has anyone done anything like this successfully?

PS: I can manually logon to the database, and extract the data 1 table at a time, but I don't want to export 40 tables each time I have to load this data. Any help would be appreciated. Thanks in advance.

Frank

View Replies !
Access Denied-Connect &#34;REMOTE&#34; Via VB6 Script
When attempting to connect to SQL Server database installed at
Windows 98 PC using a different workstation "REMOTE", always
having ACCESS DENIED response. However, when using the same PC
where the SQL Server database is installed "LOCAL" using the same
script the query/connection was successful.

Thanks

View Replies !
Using A Windows Application To Connect To An Online Access DB.
Hi all,

I'm working on a project where I have to create a password protected form for teachers to submit reports about students.
Originally I was going to use asp.net to create the form, but unfortunately the server I'm working with will not be granted asp functionality in the allotted timeframe.

To solve this issue I have another idea. So I will ask a few questions to help with research before I begin coding.

Is it possible to create a windows application that can connect to an access database hosted online? The windows app will need to be be able to update, insert, and select information from the database.

There is only going to be about 30-40 people using this windows application once or twice a week.

Thus I envision taking a password protected access database and dropping it onto a server.
The windows application will have the online location of the database embeded into the code. (connection string)
From there on out coding for the windows application should be the exact same as if the database was hosted locally on the computer, correct?

Also,
1. What is a good way to check and make sure the computer is connected to the internet before my application tries to access the database?

2. Are there any drastic security issues with this process that I should think about. The database will only be password proected, and the windows application will take a username/password from the user and check it against a table before they are able to submit info to the database.

I just need to be pointed in the right direction for this project.
Thanks.

View Replies !
Converting Data From Access 2000 To SQL Server 2000
Hi,
I worked on a project in ASP.NET using SQL server 2000 as the back end. Its a conversion application that I rewrote in ASP.NET using C#. I need to import the old data in Access db into SQL server 2000 and I have very little knowledge about doing it. The data in not a direct one -one transformation. There are considerable changes to the Database design and data types. Any help and suggestions wud be really helpful. Also, any article links wud be great.

Thanks

View Replies !
Generic Help On A Few Issues (Access 2000, MSDE 2000)
Hi, my first post :) I've been reading this forum for a little while now, there's some excellent information within. I have a few issues that possibly someone, if they're willing, could give me a few pointers on.

Firstly, I moved a backup of a database (that is located on a server running SQL Server 2000, I was not able to just simply copy the .mbf file to my workstation since its in use, and I cannot detatch it (its the backend db for the entire accounting system)) to my workstation, and I attemped to restore this DB using osql and MSDEManager2000, so I can develope a solution that connects to accounting data on my workstation.

This is the error I recieve in osql:
1> RESTORE DATABASE master FROM DISK ='C:filesdataCDTData_db_200404130100.BAK'
2> go
Msg 3108, Level 16, State 1, Server CODERBLUELINK, Line 1
RESTORE DATABASE must be used in single user mode when trying to restore the master database.
Msg 3013, Level 16, State 1, Server CODERBLUELINK, Line 1
RESTORE DATABASE is terminating abnormally.

I tried to research on how I could either restart MSDE in Single User mode or login to MSDE (in osql) in single user mode (if possible), but no luck.

The other problem I'm having is: I created a new database in MSDEManager2000, then connected to it successfully in Access as an access project, and attempted to create a table, but the table creation window disappears immediately. The other operations work ok, such a create a view, form, etc. When I try to start a new Access Project w/ new database, and connect to MSDE to create the DB, I get an overflow. strange.

Anyhow, thanks a lot, I'll continue researching to find solutions, but no luck as of now at all. (and not sure where to continue to search)

Update: (5mins later) My download of SQL Server Books Online has completed, and I have installed it. WHAT AN ABSOLUTE GOLD MINE OF INFORMATION! First search query, I was able to find the command line parameters for starting sqlserver in single user! I am about to try this moment. If someone could please post a solution/information about my other issue I would greatly appreciate that. :)

Update 2.0:
"The backup of the system database on device
C:filesdataWFIData_db_200404130100.BAK cannot be restored because it was
created by a different version of the server (134217922) than this server
(134218262)."
damn.

View Replies !
Problem Importing From Access 2000 To SqlServer 2000
When I try to make a connection to an Access .mdb I get the following error:
"Unable to open application. The workgroup information file is missing or opened exclusively by another user"

Yet, I am able to open the file through Access and have necessary permissions and I know no one else has it opened. The mdb is password protected and I have provided the correct login information in the DTS connection.

View Replies !
Access 2000 On Windows 2000 Can&#39;t Interact With SQL Server 7.0
We have a SQL Server 7.0 system in NT 4.0 environment. We upgraded our users to Access 2000 and started to work with this. Now we installed a new
server which is Windows 2000 based and the domain is different from
the SQL servers domain. We then installed Access 2000 on Windows 2000
to use with terminal server. But I noticed that there was a problem
with the program. I then looked at the program which was written on Access 2000 and saw that the tables and views can't be seen. The program runs but
I can't see the views and tables. Another thing is access disconects from SQL Server when I want to see the tables. So what can be the problem.

In one part there is an Access 2000 on Windows 2000 server. On the other part SQL Server 7.0 on Windows NT 4.0. And Access can't see the tables in SQL server.

View Replies !

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