SQL Connectivity Test?
May 1, 2006
Hi -
I'm having a problem with a VB6 program I'm writing that posts data to a SQL server. The problem occurs when the SQL server is unavailable. When this happens it causes the program to hang for at least 30 seconds before releasing. The hang happens at the code that connects to the SQL server, because the server isn't there. I've added code found on this site to test the connectivity prior to making my actual data connection, but this causes the same hang. Is there any way to verify connectivity to an SQL server without actually trying to make the connection? I'm really trying to eliminate the hang that occurs when the server is unavailable.
Thanks
View 13 Replies
ADVERTISEMENT
Mar 24, 2005
Hello Everyone,
What is the best way to test connectivity with the database from the application on a frequest basis?
Thanks.
View 6 Replies
View Related
Oct 12, 2015
We are setting up a test lab environment with 100 machines. We want one master testing db that gets replicated to each to run scripted application tests nightly.
My goal is to minimize the amount of work to move this thing to each of the 100 test machines. I am wondering if we need to even have the sql local and invest in a monster db server with 100 copies of the db we restore and each test machine point to their own db on that server, or if I should use db mirroring or something to get the master test db to each of those machines instead.
View 6 Replies
View Related
Oct 17, 2006
Now that we have a good programming model in SSIS - the question is whether to write automated unit tests for your packages, and would it generally be a good idea for packages?
Also - if yes to write tests - then where to find more informations regarding How to accomplish that?
View 1 Replies
View Related
Nov 27, 2007
hi every one,
i need to test SSIS pacakge which will import data from different database where record count is around 5 millions.
iam planning to test it through c# code as well as manually also.
SSIS source : consist of 7 tables
SSIS destination :consist of 7 tables
Using c# code iam trying to run ssis package through batch file.
i am putting expected rowcount, column count in an excel file and comparing same with destination tables by writing query implementing ADO.Net concept.
am i going right way ,can any one suggest best and productive way to test the ssis package .
what are the other things i need to test it.
do any one can add test cases to it.
S.No
Test Case
1
Verify all the tables have been imported.
2
Verify all the rows in each table have been imported.
3
Verify all the columns specified in source query for each table have been imported
4
Verify all the data has been received without any truncation for each column.
5
Verify the schema at source and destination
6
Verify the time taken /speed for data transfer
7
Fields truncated due to difference in length of the field at destination.
Regards
Arif shareef
View 9 Replies
View Related
Jun 25, 2015
I need to restore test DB from production backup but once it is restored I would need all the permissions of sql logins and windows AD account intact in test Db as it was before.
View 4 Replies
View Related
Apr 24, 2008
how should i change my comnnetion string when i host the website in the server. i am having errors? but in local host its working fine?
View 3 Replies
View Related
Sep 3, 2001
Hi,
I am responsible for an application that uses the Borland Database Engine to connect clients to the database server - it's called SalesLogix. I am in the process of upgrading the databases in the working environment to SQL 7 from SQL 6.5 and on the whole it has been (relatively) successful, however I have a majorly inconvenient issue with a few client machines. Occasionally, after upgrading the SQL client and having upgraded the database server I cannot make a connection any longer and instead when I try through the BDE I am presented with the message 'General SQL Error' and the BDE error code for a general SQL error, and nothing more. It has only happened on a couple of machines, but with no apparent pattern. The clients can still connect to SQL 6.5 databases as long as the SQL 6.5 client utilities are still installed so I don't know what to think. Any ideas?
Cheers,
Anthony
View 1 Replies
View Related
Sep 8, 2003
Please Help.
I can ping my sql server using the IP address but not using the host name.
I run win XP desktop and SQL 2k sp 3 on WIN 2k SP3 two nodes active/passive cluster configuration.
Urgent
View 1 Replies
View Related
Sep 7, 1999
i have a server in US and the other at india iam trying to connect both the sql servers but iam unable to do it. Please tell me how to connect them
regards
aafreen
View 1 Replies
View Related
Jul 13, 2006
Hello everybody.
I am connecting my computer to the internet and when i see the ip address of my computer i try:
telnet ipaddress 1433 but it says 'connection failed'.
this happens even when i try to access my sql server from another computer through the internet.
I have installed service pack 4,configured the server connectivity by adding the tcp/ip protocol and checked the port:it is 1433.
Also checked the firewalls ,but no results.
please help
View 4 Replies
View Related
Nov 22, 2007
We are trying to setup a role based security access within our client software so that users have read only access to the database. Right now we are not able to connect to the database. This is a blocking issue for us on the project right now
Please let us know how to proceed now ?
Thanks in advance
Kishore
View 4 Replies
View Related
Jul 20, 2005
Is it possible to approach a MS SQL Server using TCP/IP? I have lookedeverywhere but have not found any documentation about the protocol toconnect to MS SQL Server.I wish to connect to MS SQL Server directly through TCP/IP, without using MSlibraries (since i am not doing this on a windows system).Thanks in advance,Eddie Gieze
View 2 Replies
View Related
May 31, 2006
I am building a C# Windows app. I have a form and have also create a db. I tested the db connectivity in Server Explorer and the test came back successfully. According to my manual, I just need to drag the db item from the server explorer to my form designer to creation the connection. When I do this nothing happens... what am I doing wrong?
If I do the same thing in VS2003 the sqlConnection1 shows up, how do I accomplish the same thing with 2005?
View 1 Replies
View Related
Nov 6, 2006
hi friends,
i am developing a dictionary for pocket device
i am using sql ce database .
i have included and copied that file in the project but every time exception occurs saying check the directory . file can not be found.....
may be this a little one but help me......
its urgent..........
View 5 Replies
View Related
Jan 21, 2008
hi,
how to connect the database for first time
iam working for a website in that i have a form. how to connect the form to the database.
throw enterprice managment
thanks
View 1 Replies
View Related
Dec 27, 2004
Hi:
I m in new in ASP.net and can't connect sql server db with ASP.net.I write exact code.but it give error in connection string and server error some time.I found that error is in web.config file.can any one have running project of asp.net with sqlserver db..
if any one have then mail the project at this mail address..
ray_boby@hotmail.com
View 1 Replies
View Related
Jul 26, 2005
Hi im new to ASP.NET.. can anyopne pelase tell me how to make database connectivity with sql server 2000.i need to insert data into sqlserver2000 database from an ASP.NET Web form. please provide me with a asample code.thank you
View 1 Replies
View Related
Dec 13, 2005
I am using webforms for ASP .NET which has code in C#. My database is running on SQL Server 7. Whats the best way to connect to database. I have tried ODBC connection through myConnection=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]);but it gives me an error that can not connect to the SQL Server 2005 or it does not allow remote connections though it is running SQL Server 7 and not SQL Server 2005. Thanks in advance.
View 1 Replies
View Related
Jan 11, 2006
I am using SQL SERVER 2000 and asp.net How shoul i connect using OLEDB provider?.
In connection string, i am giving Provider=SQLOLEDB.1,datasource .
It's giving error in conn.open() that login failed for database. i am also poroving username and password in connection string, so i want code for the same.
awaiting for reply...
View 2 Replies
View Related
Apr 2, 2001
Hi,
I have a sql server that I cannot connect to in Enterprise Manager. I can connect no problem with Query Analyzer, but EM always gives me a "timeout expired" error. I am using tcp/ip, and my network card is configured exactly the same as another server that i can connect to fine. Any ideas? I really need to figure this out. this has nothing to do with timeout intervals, or anything like that, as it's all default settings, same as the other database...thanks.
View 1 Replies
View Related
Apr 2, 2001
Here's my post from a few minutes ago, thanks for the answer but that's not a fix, and trying to reconnect doesn't help. it never connects. I'm posting again, as otherwise people wouldn't read the older thread once it's replied too
I have a sql server that I cannot connect to in Enterprise Manager. I can connect no problem with Query Analyzer, but EM always gives me a "timeout expired" error. I am using tcp/ip, and my network card is configured exactly the same as another server that i can connect to fine. Any ideas? I really need to figure this out. this has nothing to do with timeout intervals, or anything like that, as it's all default settings, same as the other database...thanks.
View 1 Replies
View Related
Jul 2, 2001
I have a few ASPs that were written to pull from an Access 97 database. Now that we have converted the data over to a SQL database, the ASPs have been changed accordingly. My problem is that I have two ASPs which use an Inner Join between three tables where the main field (in this case it is called "INDEX") is what the pull is based on. When I try to run the ASPs I recieve this error .
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'INDEX'.
The line that it identifies is where the connection is actually opened.
This is only occuring on the ASPs that use the column INDEX and an inner join. The straight style number pulls (which have the same connection string)
are working fine. Any ideas?
View 1 Replies
View Related
Feb 17, 2000
hello , i have a small problem , an associate want to connect to a micrsoft sql server under nt from a pc with only dos! can such a thing be done?
View 1 Replies
View Related
Mar 17, 1999
What do I need to do to enable a client PC to See a SQL server database? I keep getting ODBC timeout errors.
Help
View 2 Replies
View Related
Jan 5, 2003
Hi all,
I'm currently trying to connect my ASP page with an SQL server 2000 DB. I already know, how to connect with Access, through the the cobnnection object...
examlpe:
---------------------------
Dim objConn
Set objConn = Server.CreateObject ("ADODB.Connection")
objConn.ConnectionString = "DSN=cb_access_db"
'objConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=F:dbCB_database.mdb"
objConn.Open
---------------------------
Now, i have SQL 2000 running on my local syste, and i'v ecreated a DSN..
How would i connec to it???
any input, or exampkles would help.Thanks!
DAve
View 2 Replies
View Related
Aug 6, 2003
Hi,
We have a client machine that has Win98. From that they are running VB app that connects SQL 2000 Server.
Here is the code in the registry under
HKEY_CURRENT_USERSOFTWAREVB and VBA Program SettingsAppname folder
for running that application.
Provider=SQLOLEDB.1;Initial Catalog=dbname;Data Source=xxxx;Integrated Security=SSPI
From ODBC the system can connect to the database.
But from SQLOLEDB
It comes back with error:
-2147467259
Unable to connect.
Any ideas?
Thanks,
Anu
View 4 Replies
View Related
Aug 5, 1999
I cannot (most of the time!!) get ODBC to make a connection to SQL Server 6.5 over the network. I get the following error:
Connection failed:SQLState: '01000' SQL server Error: 1326 [Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen[CreateFile()]. Connection failed:SQLState:'08001' SQLServer Error 1326 [Microsoft][ODBC SQL Server Driver][Client unable to establish connection.
I've looked in the SQL Server log and I've found:
"Error 17826, Severity:18, State:0 Unable to set up ListenOn Connection 'My Server Name'; OS Error: 10047"
I can get ODBC to connect from the same machine as SQL Server so it seems to be a network problem. I've tried using TCP/IP, Named Pipes, Multiprotocol, no joy. The network is ok i.e. I can ping and can otherwise find the server on the network. What's wierd is that on occassion I can get ODBC to connect!
Does anyone know what's going on???
Thanks.
View 1 Replies
View Related
Mar 12, 1999
This problem occurs in a Visual Basic 5 application which accesses the SQL Server 6.5 database through Jet Engine(DAO).
If a user starts a transaction and then his application terminates abnormally (before rolling back or committing), say due to power failure or if the user kills the application with Ctrl+Alt+Delete, then the transaction started by him is not terminated (rolled back) by SQL Server. Even the process cannot be killed using the "Kill" command and the user keeps holding all the locks that he has already acquired. Also nobody can use Enterprise Manager. This happens when you have lock on more than 8 tables including tables in tempdb. The only way to solve this problem is to restart the server which is never expected in a multiuser system.
One can know the threadID of the process that needs to be killed using "Sysprocesses" system table. Is it possible to kill the thread in Windows NT?
Is there any setting due to which SQL SERVER will automatically kill a process or rollback a transaction started by a disconnected client ?
Is it possible that a process or transaction will have to release lock after the specified time ?
Is there any other way to tackle this problem?
-Gunvant Patil
gunvantp@mail.usa.com
View 2 Replies
View Related
Aug 7, 2001
Is there anything (other than the JDBC / ODBC) to get access to SQL Server from UNIX?
View 1 Replies
View Related
Oct 17, 2006
Hi Folks,
Im a bit stuck with this one.
Have a SQL 2000 Instance that we require a load of clients to connect to.
It seems that as soon as we get the MSSQL$Service to run under a domain account we can only authenticate to SQL Server if we set up a client alias.
Under a local system account it seems to authenticate without any issues.
This is a real pain as I don't want to have to set client ailas up on every one of my clients.
Anybody seen this sort of issue before.
Thanks in advance
View 4 Replies
View Related
Feb 24, 2004
hi
I could nt create a Sql Server ODBC with Norton autoprotect ON
when i disable Norton Autoprotect, the DSN Creation is successful.
why is this so?
View 1 Replies
View Related
Feb 19, 2007
I am trying to connect to my dev Sql server instance remotely from my developer edition and I get the following 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
i Made sure that the following are complete
# [Link] Enable the TCP/IP protocol using the Surface Area Configuration Utility
# [Link] Make sure the TCP/IP protocol is enabled in the SQL Server Configuration Utility
# [Link] Make sure the SQL Server browser is started
View 3 Replies
View Related