Connecting To Sql From Delphi 5

Sep 20, 2006

I try to connect (locally) to SQLServer Express from Delphi5. On my developer computer, which has Windows XP, SQLServer 2000, VisualStudio2005 (and with that, SQLExpress 2005), it is no problem. However, when I transfer my program and the database to other computers with Windows 2000/WindowsServer2003 and a more recent standalone-version of SQLExpress, I get error messages like:

'Db-Library error 10004: No connection possible: SQL Server not available or not existing'

It does not matter which protocols I activate at the Server or whether the Server Browser service is running or not.

Does anybody have an idea how this might be fixed? Or whether it is a problem of the operating system?

View 3 Replies


ADVERTISEMENT

Connecting SQL Server With Delphi 7

Dec 6, 2004

Hi,
How can i connect to an sql server db file. I have the server's ip number.
I'm using Delphi 7.
Thanks...
:)

View 2 Replies View Related

Delphi And SQL7

Nov 18, 1998

Can anyone please help me on how to access SQL7 through Delphi 2 or greater?

Any help at all is appreciated

View 1 Replies View Related

SQL + File Storage + Delphi

May 19, 2008

I am using Delphi 7 and need to save mulitple documents that range from 2K KB to 200K KB. These need to be stored in the database for inclusion in the database backup.

When i am working on the 200K KB file i continusely run out of memory, how can i resolve this.

View 1 Replies View Related

SQL 6.5 With Delphi 1.0 On Win95 Problem.

Jul 20, 2005

Hello,I have a situation where I have to run a Delphi 1.0 application onWin95 via ODBC to MS-SQL 6.5 server. This is working for me onseveral workstations.I always install 16-bit BDE and make appropriate changes to odbc*.INIfiles, etc.I have a machine which has just now been setup for this situation -and at the same time converted to a wireless network card.Everything works great as far as network connection, running querys,etc. But when get to the point of saving a transaction - I am gettingthe message:"Error - EDBEngineError(General SQL error. [Microsoft]{ODBC SQL ServerDriver][SQL Server]Line 2: Incorrect syntax near 'DATE_TIME')Here is the sql statement and partial source code:sql.Add('INSERT INTO INVOICES (INVOICE_NO, TOTAL, TAX, VOID_CODE,TYPE_CODE,');SQL.Add('invoices."DATE_TIME", TERM_NUMB, USER_NUMB, CUSTOMERID,BATCH)');SQL.Add('VALUES (:xINVOICE_NO, :xTOTAL, :xTAX, :xVOID_CODE,:xTYPE_CODE,');SQL.Add(':xDATE_TIME,'+':xTERM_NUMB, :xUSER_NUMB, :xCustomerID,:xBATCH)');ParamByName('xINVOICE_NO').AsString := InvoiceTotals.InvoiceNumber;ParamByName('xTOTAL').AsFloat := InvoiceTotals.Total;ParamByName('xTAX').AsFloat := InvoiceTotals.Tax;ParamByName('xVOID_CODE').AsString := vcFinalized;ParamByName('xTYPE_CODE').AsString := InvoiceTotals.TypeCode;ParamByName('xDATE_TIME').AsDateTime := InvoiceTotals.DateTime;ParamByName('xTERM_NUMB').AsInteger :=FUseStation;{InvoiceTotals.StationNumb;}ParamByName('xUSER_NUMB').AsInteger := InvoiceTotals.UserNumb;ParamByName('xCUSTOMERID').AsString := InvoiceTotals.CustomerID;ParamByName('xBATCH').AsString := DateToFieldStr(FUseBatch);ExecSQL;I realize DATE_TIME is some sort of reserved word but in this context(ie. table name and quotes) it works on all other stations. This isthe first part of a two part SQL transaction.What could be wrong?Thanks - Scott Murray.

View 3 Replies View Related

Using SQL Server CE In A NON .NET Delphi Application

Jan 23, 2007

Hi,

I'm looking at using SQL Server CE as a replacement for MS Access in a WIN32 Delphi Application. This limits my database options to Providers that is usable from ADO.

I see that the OLE DB Interfaces are implemented, but I can't connect to a SQL Server CE database from Delphi. I've cut and paste a sample connection string (replacing the data source bit) but no go??

I've installed the Runtime Environment, VS2005 bit, Connectivity Tools and the SDK :)

Any help? Anything that I might have missed?

Thanks,

Dawid

View 17 Replies View Related

SQL Server With Delphi - Multiple Tables

Jul 13, 1998

I have a Client/Server app built with SQL Server + Delphi as Front-end.
I have maybe 15 TTable components (active tables in the app.) and when runnning the app, each table uses 1 connection to the server. I had to boost the # of user connections from 15 to 25 just to run 1 instance of the app.
If i try running another instance of the prog. the server needs 15 x 2 connections. I`m wondering if this is NORMAL? Would it be possible to have only one connection per instance instead of 15 !?!

Thanks in advance

View 5 Replies View Related

Importing Tables By A Delphi Application

Oct 29, 2001

Hi everyone,

I'm making an application in Delphi that use an SQL database, i want the user can import a table in DBF format (that its located in another computer) to the SQL Server (in the database that i want) by one click of a button.

I try with the import wizard but its not what i want because it requiere to do the process manually.
Its there anyway of achive this (Stored Procedure or something?)

Ernesto Cisneros Sanchez
Senior Software Engineer
Credit and Trade Bank
Havana, Cuba

View 1 Replies View Related

Can SQL Server DTS Package Be Access Thru Delphi?

Mar 23, 2004

I have defined a Data Transformation Services (DTS) package in MS SQL Server. In VB I know that the DTS execution can be done thru VB codings. But what about Delphi?

Can anybody suggest any Delphi components or codings for this purpose.

Thannks in advance.

View 3 Replies View Related

Delphi 2007 And SQL 2005 Triggers

Feb 6, 2008

Hi, I would really appreciate some help on this one as I know nothing about triggers to be quite honest.

I'm trying to add a feature to my Delphi 2007 application to start a SQL package whenever a load button on my Delphi form is clicked. Assume I'll need SQL code to perform this.

Can anyone please assist in this matter - sample code will also be much appreciated. Thanks a million!

View 1 Replies View Related

MSSQLServer Express And Delphi Application

Jan 25, 2007

Dear friends I have a problem with the use of DELPHI and MSSQLServer!


I have installed in a PC a MSSQLServer Express. The PC is connected
with a other via a small network. I have developed an application in DELPHI
which runs also in the two computers. I have regulated SQLServer so as
to is accessible via TCP/IP, make that I tryed after in the other PC I
installed SQL Server Management Studio Express and had access in the
database via the network. While in the beginning both applications
worked normaly and were connected regularly in the base suddenly
one day they couldn't be connected giving as message the following
"DataBase Server Error: SQL State: 08001, SQL Error Code: 17 ", as there was no server. That is to say without I have teased the
properties the access to DataBase was impossible via the application but possible via the SQL
Server Management Studio Express and the environment of Borland Delphi
2005 from both PC's. That is to say
suddenly only the application simply could not be connected. I tryed
a lot of solutions but no one it did not work. When I installed the
MSSQLServer Express in the other PC the application could be connected
from this but no from the other via network always giving the same
message. Has anyone any idea why I am in impasse from solutions!!!!

Thak you in advance!

View 2 Replies View Related

Connect Delphi 2006 To MS SQL Express

Mar 23, 2006

I use Delphi 2006 to connect MS SQL Express 2005. When I save record, it shows the following error message:

Database Server Error : Cannot create new transaction because capacity was exceeded.

Does anyone know what happen and how to solve?

Thanks!

View 1 Replies View Related

Import Data From A Text File With DELPHI Toward Sql Server

Aug 10, 2004

Hello,

Is there a way to import data from a text file with DELPHI toward a SQL Server table.

I heard about BCP ...?

Does someone know?


THANKS.

View 5 Replies View Related

How To Fetch Or Store A BIGINT Using DbExpress And Delphi 2005

Jul 23, 2005

Since there is no native support for 64bit integers in dbExpress, itis not trivial to fetch a BIGINT from SQL 2k.If it is possible, how can a BIGINT be fetched using TParam or TField?Any help appriciated

View 2 Replies View Related

Problems With MOD-Function By Accessing MS-Access Database Via SQL In Delphi

Aug 23, 2005

Hello,the following problem:I use Delphi 6 to access a MS Access Database.In short, the Delphi Code looks like this:ADOConnection1.Open;ADOQuery1.Close;ADOQuery1.SQL.Text := 'SELECT * FROM database1 WHEREvalue1=1 AND value2= ' + inttostr(array[3]);ADOQuery1.Open;Label5.Caption:=ADOQuery1.Fiel*dByName('value4').A sString;Now I only want to select these rows, where the Integer value3 ends on1. So I need the Modulo-Function. I found in the Internet these twofunctions:MOD(x,y) und x % yBut I get an error if I want to use one.For example, If I changeADOQuery1.SQL.Text := 'SELECT * FROM database1 WHEREvalue1=1 AND value2= ' + inttostr(array[3])+' AND MOD(value3,10) = 1;Delphi shows me a Syntax Error in this statement.Thx for help!

View 2 Replies View Related

SQL Server 7.0 And Delphi 4.0 Client/Server

Jul 27, 1998

Can you let me know whether the performance of SQL Server 7.0 and Delphi 4.0 Client/Server is better or SQL Server 7.0 and Paradox?
What testing procedures have you done on this issue?

View 1 Replies View Related

Connecting To SQL In ASP.net 20

Aug 6, 2006

I have a database that is currently connected and working properly in My SQL Server Management Studio. The problem I am havings is when I open My ASP.net 20 and Look in my Server Solutions I can not  find the database to connect to it . It seems to be trying to use SLQ Express and not my SLQ Server Management Studio. How do I get my database to connect in my application? All I can see from within the Server solutions in ASP is the database .bak file which is the backup of the database. I thank you in advance.

View 5 Replies View Related

Connecting To SQL 6.5 With VB.NET

Apr 5, 2004

Hi,

I am trying to connect to a SQL 6.5 database with VB.NET.

Is this possible, and if so, what kind of connection string is used and what mode of data access (OleDB, ODBC, etc.)

I have had several problems doing this and I am starting to wonder if there is anything special that needs to be done or if it is even possible. Thanks in advance!

View 3 Replies View Related

Connecting To SQL 6.5

Oct 28, 1999

Has anybody experienced SQL 6.5 to stop responding to new connections to the server but still letting the existing connections run?

View 1 Replies View Related

Connecting To DB

Sep 21, 2004

is ther a system stored procedure to connect to a database passing the username and password as parameters.. ??

View 6 Replies View Related

Connecting To 6.5 Over TCP/IP

Dec 8, 1999

I am trying to connect through a wan over TCP/IP to a SQL Server v.6.5 sp5a.
I am not logging into the domain, I am just trying to connect via ODBC. I keep getting an error 1326
which when I look in TechNet or MSDN refers to problems with Named Pipes. I have
TCP/IP configured for port 1433, Named Pipes, and Multiprotocol support all configured on the server.
Should I remove the Named Pipes support, or is that not the problem?

View 1 Replies View Related

Connecting To SQL DB

Jan 13, 2005

Hi,

I have a server (Server A) and would like to retrieve a query from a SQL DB which is held on another server (Server B), if I created a VPN or opened a port from one server to another could I acheive this?


BTW I do not have SQL running on the Server A


Am I asking for trouble?

Thanks,

Sanj

View 1 Replies View Related

Connecting To MS SQL

Mar 2, 2004

Hey everyone. I'm having some serious problems connecting to my database. I've pretty much bugged my server admin to death and I still can't connect to it. I've tried almost all the programs out there as well as http://www.aspenterprisemanager.com. I've probably spent a good 12 hours on this task (im trying to put MaxWebPortal on my site) and I'm going to ask for help. This is what my admin gave me for the SQL db:

Database Name: S5464_sehs
SQL Server: mssql4.uplinkearth.com
ODBC DSN: S5464_sehs
Username: sehs.us
Password: **********

Would anyone be able to help me to connect to this?

View 4 Replies View Related

Connecting To Sql 2k Thru Sql 7 EM

May 17, 2004

Can I connect to SQL server using sql 7 EM? currently it is not allowing me
to connect, but some one told me that there is a work around.Anyone heard/aware of it?

Regards,
Harshal.

View 3 Replies View Related

Connecting To Dbf

Aug 21, 2006

Hi,

I am having trouble connecting to a dbf file inside an SSIS package. How do I connect to a dbf file in SSIS.



Thanks

Brian

View 1 Replies View Related

Connecting From VS.net

Jan 16, 2008

Hey all! I am new in this form and also new with the SQL serve. I have installed that free express edition of SQL server 2005 and when i am trying to connect to server from my C#.net application i am not able to do it and the error i am getting is the user is not SQL thrusted user. I am able to connect directly thru SQL server using this userid and password but not thru C#.net application.

I have read online that so many people are having that problem. so is it the problem of swl server Express edition or do i have to make some setting to connect to the application.

Please please please please someone guide me . I am stuck here in the beginning only. I would really appreciate it.

the code that i wrote is here:----

using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page

{



protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

}

}
protected void Submit_Click(object sender, EventArgs e)

{

String querry;

SqlDataReader dbread;

try

{

SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings["Conn1"]);

SqlCommand comm = new SqlCommand();

conn.Open();

querry = " Select password from login where userId='" + TxtUser.Text + "'";

comm.CommandText = querry;

comm.Connection = conn;

dbread = comm.ExecuteReader();

dbread = null;

if (dbread.HasRows)

{

while (dbread.Read())

{

if (dbread["password"].ToString() == Txtpwd.Text)

{

Response.Redirect("home.aspx");

}

}

Response.Write("Your Password Doesn't Match");

}

else

{

Response.Write("Your User Name Is Wrong");

}

conn.Close();

}

catch (Exception ex)

{

Response.Write(" This is an Error - " + ex.Message );

Response.End();

}



Thanks,
Komal

View 3 Replies View Related

Connecting To IBM DB2

Jul 18, 2007

We need to connect to an DB2 server using ODBC provider, so we tried witht he folowing:



Driver={IBM DB2 ODBC DRIVER};database=FirstDB; hostname=IP address; port=50000;protocol=TCPIP;



But when we try to connect using the above connection string we get teh following error:



"Test Connection failed because of an error in initializing provider. ERROR [IM004][Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed"



we are not getting wat is the problem. we are able to connect to this DB2 database from the same DB2 server but we are not able to connect to the server from a remote machine.



Thanks in advance.

View 1 Replies View Related

Connecting Through C#

Jan 23, 2007

When I look at the connection string it's:



Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ProcBuilder.mdf;Integrated Security=True;User Instance=True



This works fine on my machine, but when I try to run it on another computer it tells me:



"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."






It should not be trying to connect remotely, it's a local DB. Do I
have to install SQL Express on the machine I'm installing this on for
it to work?

View 1 Replies View Related

Connecting .mdf Through RDA

Feb 8, 2008

Dear All,

We have Database in local system and another database in remote system.
We have to connect to the database in the remote system through RDA.
How can we achieve this?
Kindly help.
Thanks in advance.

Regards,
Sasi.

View 6 Replies View Related

Connecting To Sqlserver In Asp.net

Jul 15, 2006

hi , I want to connect to sqlserver2000 with VS.Net2003 in Asp.net I
've added a new user in security section in enterprise manager and
wrote my code , but there is no output from database , codes are
correct and I think there is something wrong with sqlserver or IIS or
sqlconnectin setting , plz help me to fix my problem , tnx .

View 2 Replies View Related

Connecting To SQL Issue

Aug 2, 2006

I have a mdf file and log file from msde. I have successfully connected to it in my Visual Studios ASP.net 2.0 Desktop. I am having a problem where it connects. fine but it does not list the tables , diagrams etc. I am trying to build the intake screen with this data but have no tables. Can some one give me a couple of suggestions of why? I am very new to ASP.net and would appreciate any help .

View 4 Replies View Related

Error While Connecting

Sep 18, 2006

Hey all,I am new to ASP.NET. While executing a simple  code , i got the error: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.Whats wrong? RegardsYasir

View 1 Replies View Related

Connecting Instructions?

Dec 19, 2006

My host sent these instructions, think they will work?
To access your SQL Server you can use your choice of database management software, including Microsoft Access, Visual InterDev, or the SQL Enterprise Manager.
If you are using Microsoft Access or Visual InterDev you will be connecting to the SQL Server via an ODBC connection, which requires you to make a Data Source Name (DSN) on your local computer.
If you have a Microsoft Access database, and you use the Microsoft SQL Upsizing Wizard to export your database into SQL, the Upsizing Wizard will assist you in the process of creating your ODBC connection.
To create a SQL DSN:
 
1. Log on to your hosting account's control panel at http://sahcinfo.org/admin 2. Click "Database Connectivity."
3. Choose "Create DSN."
4. Choose "Microsoft SQL Driver" from the Type drop-down list.
5. Enter a name for your DSN in the DSN field. It can be anything you want it to be, such as "Orders" or "MyDatabase." The Filename field is not required for SQL.
6. In the SQL IP Address field, enter the SQL Server name.
7. Enter your SQL user name in the SQL User Name field.
8. Click Submit.
To access the SQL Server using the SQL Enterprise Manager:
1. Open your SQL Enterprise Manager software. This is not supplied by Web.com.
2. Right-click on "SQL Server Group", then select "New SQL Server Registration"
3. Once the dialog box is open, fill in the fields. In the server field, type in your SQL Server name.
4. Type in the login information with your username and password.
5. Once all the information is entered click "Register." This will make contact with our SQL Server, and you will be able to add tables, manipulate your information and work on your database as you wish.
Please note that Web.com Technical Support will only troubleshoot connectivity to the SQL database, and cannot support issues with third-party software.
Web.com has also created a SQL 2000 User Guide to walk you through the process of setting up your account and database connections. To view or print it, go to http://64.226.3.32/article.asp?article=14689&p=1001
 
 
 
 

View 2 Replies View Related







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