Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

$
0
0

 

I have a app created using VS 2005 with SQL 2005.  I upgrade to VS 2008 but didn't deploy because there were no changes requested.  I got a request last week and made the changes. On my development machine everything worked fine.  I did the release of all the pages and the .dlls so all the upgraded code was there.  Now the user can log in and get to a reporting section but when they go to export the report into excel we get this error

 

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

 

It seems to error using the same connection that the user used to get into the app so I don't know why now its being denied.  I'm using adodb.dll to connect this time.

 

Thank you for any help.  Let me know if I didn't put enough information.

 

 

 


Data access from CSV file

$
0
0

I am to integrate data having in CSV format which is generated through device .

Can you assist me to do ?

[Microsoft][ODBC SQL Server Driver]Communication link failure - During snapshots removal in VMware ESX

$
0
0

Hi, I got a problem that occurs during backups (snapshot removal) of our virtual SQL 2014 server in VMware. 

01:00:51     Operating System   : Windows Server 2012(6.2 build 9200) 
01:00:51     RDBMS              : Microsoft SQL Server 12.00.4416
01:00:51     ODBC Driver        : SQLSRV32.DLL ver 06.03.9600

01:06:15 ERROR : Error (0) Error in AGRFetchCur: SQL Error (0): 08S01 [Microsoft][ODBC SQL Server Driver]Communication link failure
01:06:25 ERROR : Error (0) 0(08S01):[Microsoft][ODBC SQL Server Driver]Communication link failure
01:06:25 ERROR : Error (1) ERROR 1: Fetching with cursor
01:06:25 ERROR : Error (0) 0(08S01):[Microsoft][ODBC SQL Server Driver]Communication link failure
01:06:25 ERROR : Error (1) ERROR 1: ODBC: Performing ROLLBACK
01:06:25 Transaction aborted.

Probably the SQL server are freezing a couple of seconds during this time because of high IO on storage. Is it possible to tune the timeout values to get this more stable?


Windows 2012 Firewall is Blocking SQL Server 2012

$
0
0

I installed SQL Server on a Windows 2012, turned-on the Firewall and mad sure that the rule is active and points to all ports and Domain. I then tried to access my SQL Server from My desktop windows 10 and not able to connect with the Management Tool. If I turn-off the Firewall on the Server I can access the SQL Server Default. I am not sure how to get this fix. I tried to manually create the rule as well as using the GUI wizard to allow an APP; neither provided proper access.

Any ideas on how to troubleshoot this issue?

SSL Client Based Authentication

$
0
0

Hi,

Query  towards client authentication. By client authentication , I mean a way in which instead of providing the username/password  provide a digital certificate which theserver can validate and map it to some database user.

If there is an option, Please enlighten me with the steps or KB on above said request.

Thanks 

Passing a table valued parameter with identity to a stored procedure

$
0
0

Hi,

We use table valued parameters to pass data from .net to stored procedures, which works great.

But when we define such a parameter as a table type with an idenity field, we fail to get this working.
=> Is this possible, can someone provide me an example how to fill that table valued parameter from within .net

Thx

Entity framework can't make updates in db (missing entry point SetClrFeatureSwitchMap in SqlServerSpatial110.dll)

$
0
0

Hello,

our company develops application working with SQL server using entity framework. Yesterday I noticed, that application is unable to update records in database with this exception detail:

System.TypeInitializationException: The type initializer for 'ExtentPlaceholderCreator' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'SetClrFeatureSwitchMap' in DLL 'SqlServerSpatial110.dll'.

I suspect it was caused by installation of SQL2012 SP3 (KB3072779), but uninstalling this update didn't help. I've also tried to uninstall whole SQL server and install it again - also no success.

Application uses EF 4 (EntityFramework.dll has version 4.4.0.0), SQL server is:

Microsoft SQL Server 2012 - 11.0.2100.60 (X64)
    Feb 10 2012 19:39:15
    Copyright (c) Microsoft Corporation
    Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )

SqlServerSpatial110.dll is version 2011.110.5058.0 from May 15th, 2014

Apparently it is problem of Entity framework, as another application using EF6 + SQL2014 works correctly. Seems there was some update, which didn't updated SqlServerSpatial110.dll to correct version.

The only solution found at Google was uninstall everything related to SQL server - what is problem when SQL server runs locally. Has someone any working solution of this problem?

Thank you in advance,

Radovan

License Question - multiplexing question for SQL

$
0
0

I have a multiplexing question for SQL.

Question 1: Lets say I have three sql servers. First one is where data is entered from internal users covered with cals. That server automatically pushes that data to server 2 (nobody accesses server 2). Then server 2 automatically pushes that data to server 3 (nobody accesses server 3) – then that same data is pushed out to a web store which 20,000 customers access that data. Can I license server 2 and 3 with device cals since they are accessing server 1 and license server 1 with cores? Or would this be multiplexing and require all three to have core licensing?

Question 2: what about SSIS --- if the data is never stored in the database on the SSIS server – can SSIS be licensed with server/cal…. Or does multiplexing apply even with SSIS with no data stored in a DB?

There is also an attached scenario with a similar layout. Could you show how the attached diagram would need to be licensed?

Just trying to understand how all the “middle” sql servers would need to be licensed.


error 15151, state 1, severity 16

$
0
0

Script level upgrade for database 'master' failed because upgrade step 'SSIS_hotfix_install.sql' encountered error 15151, state 1, severity 16. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.


Ron Sweatland

JDBC error on SLES server using integrated security

$
0
0

I am getting this error on our SLES linux server:

INFO   | jvm 1    | 2015/12/16 14:18:01 | Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule not found from bundle [com.hp.exstream.cc.dao.hibernate]

Any thoughts or ideas of what to look at? We are connecting from a SLES 11 version to a Microsoft 2012 R2 server running Microsoft SQL Server 2012.

The semaphore timeout period has expired after windows application run for a long time

$
0
0

I developed a Windows Forms Application using c#. After the program run for a long time overnight, Sometimes I found that the program stopped and generated the following error message:

System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.)

Any suggestion to solve the problem? Is it related to Connection timeout/ command timeout in application config file or SQL server error?

Thanks,

Tony

can i get some help with a sql query

$
0
0

here is a query that works, it returns 3 columns from 1 table and 1 from another table.

it returns all line items for each invoice, but it returns every line item and all I want is 1 entry for every invoice with the sum of the line items. I tried using sum( INDETL.INEAMT ) AS tot but the query won't even run.

can someone help me out?

thanks

gary

SELECT INMAST.[INMIN#] AS INMIN_, INMAST.INDTIN, INMAST.INSLMN, INDETL.INEAMT AS tot

FROM INMAST INMAST

          INNER JOIN INDETL INDETL

                   ON  INMAST.[INMIN#] = INDETL.[INDIN#] 

WHERE INMAST.indtin > 1141231


Gary

Licencing Question; moving licences off a cluster

$
0
0
Good Afternoon Forum

Currently I have two SQL Server instances running on the same pair of Cluster nodes, one is for live and one is for test.

Each node has 4 core licences allocated to them.

I was wondering if it is legal to: -

  • Remove the test Cluster SQL Server.
  • Build two new Servers one for Development and one for test.
  • Allocate 2 core licences to Development and Test
  • Leave the Live Cluster where it is; effectively sharing the 4 core licences between the 2 nodes as only one node will be active at any time.

Please click "Mark As Answer" if my post helped. Tony C.

connectionstring login failed for user

$
0
0

I'm trying to make a program to connect to a remote ms sql database to test and learn how to connect with databases in java eclipse mars using the following code.

// Create a variable for the connection string.
      String connectionUrl = "jdbc:sqlserver://my.server.com;Initial" +
      "Catalog=test2;Persist Security Info=True;User ID=rsmobile;Password=xxxx";

      // Declare the JDBC objects.
      Connection con = null;
      Statement stmt = null;
      ResultSet rs = null;

      try {
         // Establish the connection.
         Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
         con = DriverManager.getConnection(connectionUrl);

I may have something wrong in my connectionstring syntax. I copied the connectionstring from a VS c# program that is able to connect to the database data table. I can also connect to the table from ms ssms. The database name is test2 and the table name is TestTable2. I get the following error.
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''. ClientConnectionId:

I've added sqljdbc.jar, sqljdbc4.jar, sqljdbc41.jar, and sqljdbc42.jar to the project libraries.

Thanks


why767

Creating Admin Login Page

$
0
0

I am receiving the following errors:

Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in/home4/dreediv45/public_html/storeadmin/admin_login.php on line 14

Warning: mysql_query(): A link to the server could not be established in/home4/dreediv45/public_html/storeadmin/admin_login.php on line 14

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in/home4/dreediv45/public_html/storeadmin/admin_login.php on line 15

Here is my code:

<?php
session_start();
if (isset($_SESSION["manager"])) {
    header("location: index.php");
    exit();
}
?>
<?php
if (isset($_POST["username"]) && isset($_POST["password"])) {

    $manager = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["username"]);
    $password = preg_replace('#[^A-Za-z0-9]#i', '', $_POST["password"]);
    include "../storescripts/connect_to_mysql.php";
    $sql = mysql_query("SELECT id FROM admin WHERE username='$manager' AND password='$password' LIMIT 1");
    $existCount = mysql_num_rows($sql);
    if ($existCount == 1) {
             while($row = mysql_fetch_array($sql)){
             $id = $row["id"];
         }
         $_SESSION["id"] = $id;
         $_SESSION["manager"] = $manager;
         $_SESSION["password"] = $password;
         header("location: index.php");
         exit();
    } else {
        echo 'That information is incorrect, try again <a href="index.php">Click Here</a>';
        exit();
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Log In </title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
</head>

<body>
<div align="center" id="mainWrapper">
  <?php include_once("../template_header.php");?>
  <div id="pageContent"><br />
    <div align="left" style="margin-left:24px;">
      <h2>Log In to experience awesomeness!</h2>
      <form id="form1" name="form1" method="post" action="admin_login.php">
        User Name:<br />
          <input name="username" type="text" id="username" size="40" />
        <br /><br />
        Password:<br />
       <input name="password" type="password" id="password" size="40" />
       <br />
       <br />
       <br />
       
         <input type="submit" name="button" id="button" value="Log In" />
       
      </form>
      <p>&nbsp; </p>
    </div>
    <br />
  <br />
  <br />
  </div>
  <?php include_once("../template_footer.php");?>
</div>
</body>
</html>

Thank you guys so much in advance! I really need the help.


sql server to excel

$
0
0
I need to run a particular set of  select queries on sql server and copy results to an excel sheet. I repeat the same thing in every 15 minutes. Is there any way it can be done automatically??

JDBC Driver for SQL server

$
0
0

Hello,

I have a Java application that exposes the following fields: URL,Driver,UserName and password and I am trying to set a connection to SQL Server. in the driver field i wrote: "com.microsoft.sqlserver.jdbc.SQLServerDriver" but I get an error "No suitable driver found for [URL]"

I also made a new system variable called classpath  with the value : "C:\Program Files\Microsoft JDBC Driver 6.0 for SQL Server\sqljdbc_6.0\enu\sqljdbc41.jar". 

How can I fix this?

Thank you


ODBC errors

$
0
0

Hi 

I have a client with a SQL server 2008R2 SP3 which houses about 5 Databases. They use an application from Terminal server which is build with VBS to access data from one of the databases. From time to time they tend to get ODBC run time error. We have contacted MS support regarding this and we have got it to a point where now this error is not daily but once every couple of weeks. I have recreated the DSN and instead of using FQDN i am using an IP address. SQL server and Terminal server are on same subnet and no packet drops in between. I have also made sure to give both server plenty of resources. SQL server currently has 30GB of RAM and Terminal Server is at 24GB. We have about maybe around 16 users that use this application at any given time. 

I am just trying to figure out if there is anything else on SQL server side that I can troubleshoot. Since i have limited knowledge of VB i don't think i can even try to figure out what is happening. 

Does anyone have any idea. 

thank you. 

deleteing row

$
0
0

Hello everyone

im making a website in asp.net and i need to be able to delete promatically in some situation, i understand gridview has a built in edit feature which is working fine but like i said i need to be able to do it promatically

please help and thank you

sql 2000 to sql 2008 problem

$
0
0

Hi everyone,

I have a desktop application which connect to sql 2000 to get data into a DataGrid. I'm using union all to search the data I want. The SQL statement as below shows.

select a1, b1 from a union all select c1, b1 from b.

After I bind the result on DataGrid, I can modify the record in DataGrid.

But when I connect to sql 2008, I can't modify the data in DataGrid. The data I want to modify in DataGrid can't input. The only thing I changed is modify the sql version. How can I fix this problem? Or can anyone explain this problem?

Common select statement works fine, just the union all statement result can't be modified in DataGrid. Are there any difference between sql2000 and sql2008 for union all statement?

Thanks for your help.

Viewing all 4164 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>