Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2001, 02:07 AM
ramyav ramyav is offline
Junior Member
 
Join Date: Apr 2001
Posts: 14
Default Connecting to SQL Server...

Hi,
Im trying to connect to an SQL Server database. I've set the databasename property, drivername property and the params property for the TDatabase. But Im unable to connect. The help manual says that if I provide these, I needn't provide an aliasname. But this isn't working. Any ideas??? Im using Delphi 3.0 Client/Server Suite.

Thanx.
Reply With Quote
  #2  
Old 04-23-2001, 11:49 PM
ramyav ramyav is offline
Junior Member
 
Join Date: Apr 2001
Posts: 14
Default RE: Connecting to SQL Server...

anyone???
Reply With Quote
  #3  
Old 04-24-2001, 03:06 AM
selma selma is offline
Member
 
Join Date: Feb 2001
Posts: 39
Default RE: RE: Connecting to SQL Server...

create an alias with BDE and write SQL SErver database name as databasebame,SQL Server name as Servername,SQLserver username as username.
username is generally "sa" if you didnt change it

so apply updates and open alias, if it opens, it meams it is connected to the server

selma
Reply With Quote
  #4  
Old 04-24-2001, 07:01 PM
ramyav ramyav is offline
Junior Member
 
Join Date: Apr 2001
Posts: 14
Default RE: RE: RE: Connecting to SQL Server...

I dont have a problem connecting to SQL Server from the BDE administrator...its when I try to connect via my code when I have the problem. Im using Delphi 3. Is it compulsory that I use a BDE alias to connect???
Reply With Quote
  #5  
Old 04-24-2001, 08:46 PM
selma selma is offline
Member
 
Join Date: Feb 2001
Posts: 39
Default RE: Connecting to SQL Server...

I dont know any way apart from using BDE or ADO Components to connect SQL Server.
Standart ADO components are in Delphi5.
I use BDE and standart TTable,TQuery not ADO components.

Maybe its useful you try to connect via BDE

take it easy


selma
Reply With Quote
  #6  
Old 04-24-2001, 09:22 PM
ramyav ramyav is offline
Junior Member
 
Join Date: Apr 2001
Posts: 14
Default RE: RE: Connecting to SQL Server...

thanx selma
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 11:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.