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


ADVERTISEMENT

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

Problem Connecting To SQL Server 2006 Express

Mar 18, 2007

I have been trying literally for months to get SQL Server 2005 Express to work on my Dell Dimension WinXPPro machine. I have installed and reinstalled both the server and the 'Management System'. I have shut down and restarted all of the related Local Component Services on my machine (with the exception of the SQL Server Active Directory Helper which will not start ??).

I have reviewed much of what is in this Forum related to SQL Server 2005 Express and I find that many have had similar problems. When a connection is attempted, the following message or some minor variation appears:


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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)


In desparation, and at the suggestion of one of this forum's moderators, I went to try to download the SQL Server 2005 Express, Service Pack 2. I threaded my way through what I felt was an unecessarily complex set of links and finally reached a download site - but it was unclear whether or not the service pack was for SQL Server 2005 or the Express version. Giving up in dispair, it turn to you (once again BTW, I received no real help with this same question about a month ago).

Even though I seriously doubt if anyone will help me, I am willing to give it another try - mainly because I am home sick with the flu and having nothing better to do on a Sunday afternoon.

Thanks

View 6 Replies View Related

Format Date From 2/25/2006 To 02/25/2006

Mar 21, 2007

in footer of my report i show a current date by this

=Format(Today(), "d")

as a result i gave those

3/21/2007

but wont date like this 03/21/2007

How ?

View 1 Replies View Related

Cannot Connect W/ Java App But Can Connect W/ .Net App - SQL Server Express 2005

Dec 12, 2006

I'm having a problem connecting with a Java application but I CAN connect using my .Net application - the user name and password are the same for both (using the same database on SQL Server Express 2005).

The error I get is: "com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "CORNERS" requested by the login. The login failed." An interesing note - I get the same message if the database is not running.

SQL Server Express 2005 is installed in mixed mode.

Here is my connection string in the .Net appplication: <add key="connectString" value="Server=(local);UID=sa;PWD=myPasswd;Database=CORNERS" />.

These are my values in my Java app web.xml -

<init-param>
<param-name>DBDriver</param-name>
<param-value>com.microsoft.sqlserver.jdbc.SQLServerDriver</param-value>
</init-param>
<init-param>
<param-name>DBURL</param-name> <param-value>jdbc:sqlserver://localhostsqlexpress:1055;databaseName=CORNERS</param-value>
</init-param>
<init-param>
<param-name>DBUser</param-name>
<param-value>sa</param-value>
</init-param>
<init-param>
<param-name>DBPwd</param-name>
<param-value>myPasswd</param-value>
</init-param>.

And yes, the port is 1055 - I checked to find it.

I am using Microsoft SQL Server 2005 JDBC Driver 1.0 (sqljdbc_1.0.809.102).

Does anyone have any idea what is wrong so that the login fails in the Java application but works in the .Net application?

View 7 Replies View Related

If All What I Used Is The Express Version - Is It Possible To Connect And Use The Sql.s Express Form The Vs. Express

Apr 14, 2008


Hello
I got a sql server express that i am trying to connect form win or web forms(2.0) €“ express as well.

My problem:
Can not connect to the server in any way!
Even the designer cont find any sql server on my machine; for example "the data source configuration manager" (gui) in enyn way its can not find the sql server express (2005)

So my question is:
if all what i used is the express version - is it possible to connect and use the sql.s express form the vs. express

View 10 Replies View Related

I Can No Longer Connect To My SQL Server Express 2005 From Manager Studio Express

Sep 28, 2006

Everything was working fine. I have been able to connect using windows authentication. Then, I went into the ODBC manager to add a data source and it failed to connect so I went back into the Server management studio to modify users. After doing this I now get an error when I try to conenct the management studio to the SQL server.

I wasn't modifying the login for my windows account that I normally use, I was modifying a different one, however I now get the message "An error has occured while establishing a connection to the SQL server. This kind of problem can ocure because the default behavior of the server does not support all connection methods" blah blah.

Does anyone know how I can attach to the server? Or, do I need to somehow remove the server and create a new one? How would I do that?

Thanks in advance for any input.

View 1 Replies View Related

Can't Connect To SQL 2005 Express With SQL Server Management Studio Express

Mar 10, 2006

I've seen the following error posted when people try to connect to their server via their applications but didn't see anyone having problems when trying to connect with SQL Server Management Studio Express. Am I missing something here? This is the error:<<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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)>>The server is not remote so I don't see why I need to enable remote connection. I am also using the default connection settings.

View 3 Replies View Related

Cannot Connect To SQL Server 2005 Express With Management Studio Express

Feb 24, 2007

On my home machine without permanent network connections enabled, I cannot get the Management Studio connect to the database server. Always get this error:



Cannot connect ot MPLIAMSQLEXPRESS

Additional Information:

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: SQL Network Interfaces, erro: 26 - Error Locating Server/Instance Specified)(Microsoft SQL Server)



I have used the SQL Surface Area Configuration Tool to reset the defaults to allow remote connections, stopped and restarted the server, but still get the same message.

Please help.

View 12 Replies View Related

Not Able To Connect To SQL Server Express From VWD 2005 Express

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 when i am trying to degug it gives me the error that 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 VWD 2005 Express 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 1 Replies View Related

Can't Connect To The Database Using C# Express And SQL 2005 Express

Jul 4, 2007

Hi

I'm trying to connect to the northwind database thats available online using c# and SQL 2005, both express editions. i used the following command



sqlcmd -S yourServerSQLExpress -E -iinstnwnd.sql



and it connects to the northwind database. but when it comes to the part where i have to select the data source, there are only 2 available - microsoft access database file, microsoft SQL server database file. but according to the microsoft books that i'm following, there should also be a "micosoft SQL server" in the data source list. because of this i cant connect to the database.

Please help...



thank you

View 3 Replies View Related

Can't Connect To SQL Server Express W/ Management Express?

May 27, 2008

I have everything enabled and I still can't connect to the server. Everytime I try to connect to MS SQL Express from home I get this error:

TITLE: Connect to Server
------------------------------

Cannot connect to 67.159.*.*SQLEXPRESS.

------------------------------
ADDITIONAL INFORMATION:

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


I have Remote Connections enabled (I think). Any advise is greatly appreciated.

View 13 Replies View Related

Sql Server Express And VB.net Express - Unable To Connect...

May 31, 2007

Hi!

I'm trying to connect a DB in SQL express with a program in VB.NET Express. I'm using the Data Source Configuration Wizzard. When I select the file (.mdf), the following message appears:



Unable to open the physical file "path to my file". Operating system error 5: "5(error not found)".

An attempt to attach an auto-named database for file 'myFile' failed. A database with the same name exists, or secified file cannot be opened, or it is located in UNC share.



I'm using the Windows authentication for this, but if I try with the sa user, I get the following message:



Failed to generate a user instance of SQL Server. Only an integrated connection can generate a user instance. The connection will be closed.



Any ideas to solve this?



Thanks

Jose Israel

View 1 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

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 View Related

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

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

2006-07-26 00:00:00

Jul 28, 2005

This is the result I get in Word as I handle a document that merges datafrom the database. The field «Date_Fin_Membre» returns me this resulteven if the query stipulatesWHERE (dbo.Membre.Date_Fin_Membre = CONVERT(Char(10),dbo.Membre.Date_Fin_Membre, 101)). I have also tried other types ofconversion without any success.thanks

View 6 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

01012006 Or 01/01/2006

Jan 1, 2006

hello

I store date like 01012006 for 01/01/2006

I store them as type varchar

and I have to use them in query (where date='01012006')

do you think I should store date as normal format as datetype?

View 6 Replies View Related

SQL 2000 And ISA 2006

Apr 11, 2007

Hi,



Does SQL 2000 support mutiple IPs in a proxy server (ISA2006) senario? i.e. can SQL 2000 serve both intranet and extranet, with extranet being separated by firewall?



Extra info: SQL 2005 can clearly listen to mutiple IPs, but SQL 2000 does not seem to have such feature.



Thanks in advance.



Kevin

View 1 Replies View Related

200611 To String 'Nov 2006'

Nov 13, 2006

Hihow to conert (number) 200611 to string 'Nov 2006' ?thanks

View 4 Replies View Related

Issues Using SQL CE 3.5 With MapPoint 2006?

Mar 4, 2008

Has anyone else had difficulties using SQL CE with MapPoint 2006?
I had assumed that since they both 'talked' OLEDB, they should be compatible with one another.

I have approx 15,000 rows in a SQL CE Table with Lat and Long columns that I'd like to import or link with MapPoint.

I've created a .udl file with the OLEDB connection string and sdf filename like so:

[oledb]
; Everything after this line is an OLE DB initstring
Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=c: estsqlcompactdb estdata.sdf;

Which I can select from the MapPoint Import/Link wizard and it lets me choose a table to import.
It shows a preview of the data in the table, lets me choose column mappings, and if I'm attempting to link data it asks me to choose a column to use as the primary key.

If I attempt to import data it essentially spins forever importing row

'15588 of -1 records mapped; 0 not mapped', (ie. it cycles through all the rows that exist in the table but never completes, then only thing I can do is press 'Cancel') and if I attempt to link data I just get an error message. "Failed to link data"
My workaround for this behaviour is potentially to write small process using System.Data.SqlServerCe or ADO to import the data into MapPoint by calling the MapPoint DataSet APIs directly, but I think you ought to be able to link the data right in using the udl datalink method.

View 1 Replies View Related

How To Find List Of All Mondays In 2006

Jul 3, 2006

I have a one problem in my sql server. I would like to find out the list of all Monday's dates in the year 2006. Can anybody help me out?.

View 14 Replies View Related

Write To Text Destination Only The 2006-03-13

Mar 4, 2008

Hi,

I want to convert/write from my source to my text file: the date column.

I have a date column of : 2006-03-13 00:00:00.000

but when it writes to flat destination i only want to write: 2006-03-13

Any ideas, Please assist!

Regards

View 4 Replies View Related







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