Microsoft odbc driver manager function sequence error

I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).
  • Remove From My Forums
  • Question

  • I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).

    I am getting the following while trying to execute a SQL command

    Encountered ODBC error -1: S1010, 0, [Microsoft][ODBC Driver Manager] Function sequence error .

    Basically internal function call is SQLExecute() function call. This works perfectly for Windows 2003 Server 32bit. I tried the command execute at the background from the command prompt and it is working.

    Any help or suggestion would be very much appreciated.

    Thanks,

    -R

Answers

  • This looks reasonable.  I see what is happening now.  Your code is binding with Data-At-Execution.  The function sequence error must be in SQLFetch or the next API after SQLExecute.  SQL_NEED_DATA is returned when a parameter is bound
    with a StrLenOrInd value of SQL_LEN_DATA_AT_EXEC(x) or SQL_DATA_AT_EXEC.  If you are not explicitly setting this in the SQLBindParameter call, then it is likely an uninitialized variable that is occasionally being set to these values.  If you don’t
    want to stream input parameters, the best way to deal with it is to fix StrLen_or_IndPtr to the appropriate value for the type.  If you do want to send Data at exec, you need to call SQLParamData after SQLExecute.  It will return the value you passed
    in for «ParameterValuePtr» below.  You can then use this to key into the stream to send with SQLPutData.  You use SQLPutData to push the data up in chunks until you are done, then call SQLParamData again to get the next parameter to fill or to finish
    streaming.  The final SQLParamData will return the return code that would originally have been returned by SQLExecute.

    SQLRETURN SQLBindParameter(
          SQLHSTMT        StatementHandle,
          SQLUSMALLINT    ParameterNumber,
          SQLSMALLINT     InputOutputType,
          SQLSMALLINT     ValueType,
          SQLSMALLINT     ParameterType,
          SQLULEN         ColumnSize,
          SQLSMALLINT     DecimalDigits,
          SQLPOINTER      ParameterValuePtr,
          SQLLEN          BufferLength,
          SQLLEN *        StrLen_or_IndPtr); <— this is the value that is causing SQL_NEED_DATA to be returned

    http://msdn.microsoft.com/en-us/library/ms710963(VS.85).aspx

    http://msdn.microsoft.com/en-us/library/aa216573(SQL.80).aspx

    Hope that helps,

    John


    This post is provided ‘as is’ and confers no express or implied warranties or rights.

    • Marked as answer by

      Tuesday, April 27, 2010 11:35 PM

Problem

When trying to log into the catalog the following message is displayed: [

[Microsoft][ODBC Driver Manager] Function sequence error

Error number -49

DMS-E-DBACCESS, it was not possible to access the ‘OPEXPROD’ database.
[Microsoft][ODBC SQL Server Driver]Unable to load translation DLL
[Microsoft][ODBC SQL Server Driver]Changed language setting to us_english.
[Microsoft][ODBC SQL Server Driver]Changed database context to ‘OPEXPROD’.

]

Resolving The Problem

In this case version 3.60.03.19 of the SQL Server odbc
driver was being used. Reinstall the updated MDAC and test the catalog
again.

[{«Product»:{«code»:»SSTQPQ»,»label»:»IBM Cognos Series 7 PowerPlay»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»Impromptu»,»Platform»:[{«code»:»PF025″,»label»:»Platform Independent»}],»Version»:»Impromptu 7.0;Planning — Analyst 7.3″,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}},{«Product»:{«code»:»SSPN2D»,»label»:»Cognos Planning»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»Analyst»,»Platform»:[{«code»:»»,»label»:»»}],»Version»:»»,»Edition»:»»,»Line of Business»:{«code»:»LOB10″,»label»:»Data and AI»}}]

Historical Number

1006175

Содержание

  1. Odbc driver manager function sequence error
  2. Answered by:
  3. Question
  4. Answers
  5. Odbc driver manager function sequence error
  6. Answered by:
  7. Question
  8. Answers
  9. Odbc driver manager function sequence error
  10. Answered by:
  11. Question
  12. Answers
  13. All replies
  14. HY010 [unixODBC][Driver Manager]Function sequence error when updating/deleting 0 rows #701
  15. Comments
  16. Driver version or file name
  17. SQL Server version
  18. Client operating system
  19. PHP version
  20. Problem description
  21. Expected behavior and actual behavior
  22. Repro code
  23. Driver version or file name
  24. SQL Server version
  25. Client operating system
  26. PHP version
  27. Problem description
  28. Expected behavior and actual behavior
  29. Repro code
  30. Odbc driver manager function sequence error
  31. Answered by:
  32. Question
  33. Answers

Odbc driver manager function sequence error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

While connecting to SQL Server from 64 bit OS and 64 bit version of my program and running the following statement i am getting ODBC Driver Manager throws function sequence Error

rc = SQLSetStmtAttr( *pStmtSQLHandle, SQL_ATTR_ROW_BIND_TYPE, SQL_BIND_BY_COLUMN, 0);

But the same functionality works fine when connected from 32 bit OS with 32 bit version of my program

I am connecting to SQL Server 2008

64 bit ODBC Driver gives this error where as 32 bit ODBC driver works fine

from
nayeem khan Khan

Answers

For setting SQL_ATTR_ROW_BIND_TYPE, please set the 4th argument as the constant SQL_IS_UINTEGER.

But I don’t think that this is the root cause of the issue. Since the error message is about «function sequence error», please pay special attention if you are using DAE parameter or ASYNC functionality. Please double-check the return code of previously-called functions carefully.

If the issue can be reproduced easily, please try to capture us a ODBC Trace log or BidTrace log. You can see the detail instruction on MSDN.
I wonder what the OS of the 32-bit OS is, and what is your new OS? Win7?

Thanks,
Ming.
WDAC Team, Microsoft.

Источник

Odbc driver manager function sequence error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

While connecting to SQL Server from 64 bit OS and 64 bit version of my program and running the following statement i am getting ODBC Driver Manager throws function sequence Error

rc = SQLSetStmtAttr( *pStmtSQLHandle, SQL_ATTR_ROW_BIND_TYPE, SQL_BIND_BY_COLUMN, 0);

But the same functionality works fine when connected from 32 bit OS with 32 bit version of my program

I am connecting to SQL Server 2008

64 bit ODBC Driver gives this error where as 32 bit ODBC driver works fine

from
nayeem khan Khan

Answers

For setting SQL_ATTR_ROW_BIND_TYPE, please set the 4th argument as the constant SQL_IS_UINTEGER.

But I don’t think that this is the root cause of the issue. Since the error message is about «function sequence error», please pay special attention if you are using DAE parameter or ASYNC functionality. Please double-check the return code of previously-called functions carefully.

If the issue can be reproduced easily, please try to capture us a ODBC Trace log or BidTrace log. You can see the detail instruction on MSDN.
I wonder what the OS of the 32-bit OS is, and what is your new OS? Win7?

Thanks,
Ming.
WDAC Team, Microsoft.

Источник

Odbc driver manager function sequence error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

*** exec dbo.spGetChangeNotifications $$ *** [HY010][0][Microsoft][ODBC Driver Manager] Function sequence error $$

What is this related to? I have problems in console not updating the collections when modifying them (have Direct Rules adding the systems) and I think this might be related to.

Then it retries every 5 minutes.

I changed the System DSN to sql authentication of an account with sa and directly to NT authentication. Same thing.

Any advice? even if not related to updating the collections I would like to know what is happening.

Thank you in advance for all advice.

Answers

I received a response from Microsoft and this is a known bug. They said it doesn’t affect SCCM functionality and is already being addressed by the Product Group.

I suggest you split the tempdb and distribute them in different partitions, best on different volumes. I assume your sql is heavily loaded and once the internal sms processes get a grip, it will go well. let me know what happened . since I modified the tempdb it works like a charm. touch wood. will see what happens.

Keep me in touch.

I am also open to other opinions. Thank you.

You split the tempdb and the *** [HY010][0][Microsoft][ODBC Driver Manager] Function sequence error went away?

Hi, I was tricked by the fact they did not appear so often after that.

I put here whey they appear, maybe you can put them too and compare:

Источник

HY010 [unixODBC][Driver Manager]Function sequence error when updating/deleting 0 rows #701

Driver version or file name

SQL Server version

SQL Server 10.50.6220 (2008r2)

Client operating system

PHP version

Problem description

It seems, that issue #336 has not been fixed, because I can reproduce the same behavior in the 4.3.0 version. When executing UPDATE or DELETE through PDO with WHERE condition filtering out 0 rows (thus not updating anything), HY010 [unixODBC][Driver Manager]Function sequence error is raised.

Expected behavior and actual behavior

Assume this table with only one row:

When running UPDATE test1 SET name = ‘updated’ WHERE >

HY010 [unixODBC][Driver Manager]Function sequence error is raised. No error should be raised.
Same error is raised, when trying to delete non existent row.

Repro code

); $result = $pdo->exec(«UPDATE test1 SET name = ‘updated’ WHERE // bool(false) var_dump($pdo->errorCode()); // string(5) «HY010» var_dump($pdo->errorInfo()); /* array(3) < | [0]=>| string(5) «HY010» | [1]=> | int(0) | [2]=> | string(49) «[unixODBC][Driver Manager]Function sequence error» | > */»>

The text was updated successfully, but these errors were encountered:

Unfortunately I can not reproduce this issue as shown in your repro. I tested with both v4.3.0 and our latest v5.2.0RC. Please double check your client info?

Hello @yitam,
the result of your code is as follows:

I guess that problem is in installation, where even though there is version 4.3.0 installed, the webserver still uses version 4.0.8.9215. Thank you for pointing me the correct direction.

Glad to hear that @hubipe!
Please let us know if you still have questions.

Closing issue due to inactivity. Please feel free to reopen.

I’m facing the same issue with 5.2.0 under Docker.

Do you have any idea ?

@younessadmi please provide more details to help us investigate, like what platform, SQL Server, etc.

Docker 3.6
PHP Version : 7.2.14
Distribution : Debian 9
SQLServer PHP extension : 5.2.0
SQLServer : 10.50 (2K12 R2)
Apache 2.4

I’m facing the same issue than @hubipe. I already checked what extension is used by the Apache and it’s the 5.2.0
It works like a charm on Windows 7 & PHP 5.6.

Nevertheless, if I check first the existence of the rows that I want to delete, it will work. but I do not want to add a query to check the rows to delete :/

@younessadmi please also provide details for the following questions (copied from a new issue template):

+## Microsoft ODBC Driver version
+
+## Table schema
+
+## Problem description
+
+## Expected behavior and actual behavior
+
+## Repro code or steps to reproduce

Driver version or file name

SQL Server version

SQL Server 10.50 (2012r2)

Client operating system

PHP version

Problem description

When executing UPDATE or DELETE through PDO with WHERE condition filtering out 0 rows (thus not updating anything), HY010 [unixODBC][Driver Manager]Function sequence error is raised.

Expected behavior and actual behavior

Assume this table with only one row:

When running UPDATE test1 SET name = ‘updated’ WHERE >

HY010 [unixODBC][Driver Manager]Function sequence error is raised. No error should be raised.
Same error is raised, when trying to delete non existent row.

Repro code

); $result = $pdo->exec(«UPDATE test1 SET name = ‘updated’ WHERE // bool(false) var_dump($pdo->errorCode()); // string(5) «HY010» var_dump($pdo->errorInfo()); /* array(3) < | [0]=>| string(5) «HY010» | [1]=> | int(0) | [2]=> | string(49) «[unixODBC][Driver Manager]Function sequence error» | > */»>

Источник

Odbc driver manager function sequence error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

While connecting to SQL Server from 64 bit OS and 64 bit version of my program and running the following statement i am getting ODBC Driver Manager throws function sequence Error

rc = SQLSetStmtAttr( *pStmtSQLHandle, SQL_ATTR_ROW_BIND_TYPE, SQL_BIND_BY_COLUMN, 0);

But the same functionality works fine when connected from 32 bit OS with 32 bit version of my program

I am connecting to SQL Server 2008

64 bit ODBC Driver gives this error where as 32 bit ODBC driver works fine

from
nayeem khan Khan

Answers

For setting SQL_ATTR_ROW_BIND_TYPE, please set the 4th argument as the constant SQL_IS_UINTEGER.

But I don’t think that this is the root cause of the issue. Since the error message is about «function sequence error», please pay special attention if you are using DAE parameter or ASYNC functionality. Please double-check the return code of previously-called functions carefully.

If the issue can be reproduced easily, please try to capture us a ODBC Trace log or BidTrace log. You can see the detail instruction on MSDN.
I wonder what the OS of the 32-bit OS is, and what is your new OS? Win7?

Thanks,
Ming.
WDAC Team, Microsoft.

Источник

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Comments

@david-garcia-garcia

I am close to getting buffered queries working in the Drupal database abstraction layer, with performance gains of ~30% (that’s huge) on a vanilla install.

But… I am seeing again the Function sequence error :(

It took me ages to isolate the issue this time into a sample script.

Download schema and sample script from this dropbox link:

https://www.dropbox.com/s/3nd8xdf32a7dmyz/sample_sqlsrv_may.zip?dl=0

For the error to go away, simply remove the transaction related statements:

$cnn->beginTransaction();
$cnn->commit();

So it looks like you cannot have a transaction nested in a loop while iterating on a client buffered result set.

@david-garcia-garcia

Not sure if directly related, but I am seeing the function sequence error appear randomly on different usage scenarios.

All of them when trying to iterate over a client buffered result set.

@meet-bhagdev

Hi david-garcia-garcia can you explain some of the usage scenarios that are causing the sequence error. I am with the team at Microsoft that own’s this driver. I might be able to help you out.

@david-garcia-garcia

The case was too complex and would need investigation to really isolate the steps to reproduce. But it did share something similar with the sample script I provided in the same comment:

  • The error came and go intermitently (one request with error, the next one without, and so on…)
  • The error appeared after previous operations on the same connection dealt with failing transactions and rollbacks.

If you could get to reproduce the error with the provided script there’s a chance that both of them are indeed the same bug.

@david-garcia-garcia

I am seeing this error consistently on Drupal 8 — MSSQL integration (and is preventing any further development because it breaks man automated tests…).

Unluckily, the circumstances that lead to the error are so complex that I was unsuccessfull at isolating a test script. I even tried to PROXY all operations on Drupal’s database abstraction layer to later reproduce every single operation done against the PDO driver without luck, the error simply won’t reproduce.

If you are interested in helping solve this out to get D8 working on MSSQL Server, I can provide the exact steps to reproduce on a clean D8 install. You will need the -dev version of the SQL Server driver for Drupal — that I can only share privately at the moment.

@Lfsantos

I’d love to take a look at this.

Can you share the repro steps and the dev version driver?

Thanks

From: Davvid [mailto:notifications@github.com]
Sent: Monday, July 20, 2015 6:36 AM
To: Azure/msphpsql
Subject: Re: [msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

I am seeing this error consistently on Drupal 8 — MSSQL integration (and is preventing any further development because it breaks man automated tests…).

Unluckily, the circumstances that lead to the error are so complex that I was unsuccessfull at isolating a test script. I even tried to PROXY all operations on Drupal’s database abstraction layer to later reproduce every single operation done against the PDO driver without luck, the error simply won’t reproduce.

If you are interested in helping solve this out to get D8 working on MSSQL Server, I can provide the exact steps to reproduce on a clean D8 install. You will need the -dev version of the SQL Server driver for Drupal — that I can only share privately at the moment.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-122886221.

@david-garcia-garcia

Steps to reproduce:

  • Download a fresh copy of D8: git clone —branch 8.0.x http://git.drupal.org/project/drupal.git
  • Setup the site on IIS (see attached phpinfo() for enabled extensions and overal configuration)
  • Unzip the SQL Server driver to the root of drupal, this will show you SQL Server as an available target during the install process.
  • Install on SQL Server
  • Go to /admin/modules and enable the «testing» module
  • Go to /admin/config/development/testing and enable the DrupalsearchTestsSearchNumbersTest inside the «Search» group.
  • Set a breakpoint in line 183 of coremodulesdblogsrcControllerDbLogController.php (this is the loop where the error happens)
  • Run Tests. When the breakpoint is hit use F10 (Visual Studio + PHP Tools to debug) to step through about 4 times, the exception is thrown.

I found out that completely removing transaction management from the Drupal driver prevents the error from happening.

https://drive.google.com/file/d/0B2bjxiZ1Bb4BZmxNWnd1YmFpdDg/view?usp=sharing

(zip with sqlsrv driver, phpinfo() dump and screenshot of the exception)

Good luck. At least the exception is consistently reproducible.

Greetings

@david-garcia-garcia

Any luck with this? D8 is to be released before the end of the year, it would be nice to have it working on MSSQL shortly before that happens.

@Lfsantos

I’m looking into it. I’ll,keep you posted on that. Give me a week, since I was out of town.

Thanks

Sent from my iPad

On Aug 4, 2015, at 11:03 PM, Davvid <notifications@github.commailto:notifications@github.com> wrote:

Any luck with this? D8 is to be released before the end of the year, it would be nice to have it working on MSSQL shortly before that happens.

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-127882620.

@david-garcia-garcia

Do not use the latest D8 HEAD, download something from the date of my original post. Recent changes in D8 have broken the MSSQL driver for Drupal.

@david-garcia-garcia

@Lfsantos

@Lfsantos

When I’m trying to create the SQL Server database in Drupal 8, I’m getting the following error in the PHP56 error_log file:

[11-Aug-2015 22:04:27 America/Los_Angeles] PHP Fatal error: Call to undefined function DrupalDriverDatabasesqlsrvwincache_ucache_get() in C:inetpubwwwrootdrupaldriverslibDrupalDriverDatabasesqlsrvConnection.php on line 607

Any clue?

From: Davvid [mailto:notifications@github.com]
Sent: Thursday, August 6, 2015 10:57 AM
To: Azure/msphpsql msphpsql@noreply.github.com
Cc: Luiz Fernando Santos lfsantos@microsoft.com
Subject: Re: [msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

Updated driver to fix compatiblity with latest head:

https://www.dropbox.com/s/j98z4fd8jh7wr0q/drivers2.rar?dl=0

Verified that the issue is still reproducible under the same conditions.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-128458978.

@Lfsantos

Hey Davvid,

I used the very first connector you sent me (used both versions in total) and the error below happens:

[13-Aug-2015 20:36:28 America/Los_Angeles] PHP Fatal error: Declaration of DrupalDriverDatabasesqlsrvSchema::addIndex() must be compatible with DrupalCoreDatabaseSchema::addIndex($table, $name, $fields, array $spec) in C:inetpubwwwrootdrupaldriverslibDrupalDriverDatabasesqlsrvSchema.php on line 41

From: Luiz Santos <lfsantos@microsoft.commailto:lfsantos@microsoft.com>
Date: Tuesday, August 11, 2015 at 10:09 PM
To: Azure/msphpsql <reply@reply.github.commailto:reply@reply.github.com>, Azure/msphpsql <msphpsql@noreply.github.commailto:msphpsql@noreply.github.com>
Subject: RE: [msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

When I’m trying to create the SQL Server database in Drupal 8, I’m getting the following error in the PHP56 error_log file:

[11-Aug-2015 22:04:27 America/Los_Angeles] PHP Fatal error: Call to undefined function DrupalDriverDatabasesqlsrvwincache_ucache_get() in C:inetpubwwwrootdrupaldriverslibDrupalDriverDatabasesqlsrvConnection.php on line 607

Any clue?

From: Davvid [mailto:notifications@github.com]
Sent: Thursday, August 6, 2015 10:57 AM
To: Azure/msphpsql <msphpsql@noreply.github.commailto:msphpsql@noreply.github.com>
Cc: Luiz Fernando Santos <lfsantos@microsoft.commailto:lfsantos@microsoft.com>
Subject: Re: [msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

Updated driver to fix compatiblity with latest head:

https://www.dropbox.com/s/j98z4fd8jh7wr0q/drivers2.rar?dl=0

Verified that the issue is still reproducible under the same conditions.

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-128458978.

@david-garcia-garcia

@david-garcia-garcia

@Lfsantos

@david-garcia-garcia

I verified that this is still reproducible on lateset dev of driver and core.

It just do not run

That is weird, at least you should be seeing an error of some sort. I’ve sometimes experienced the progress bar getting stuck forever, but those bugs were already fixed.

@Lfsantos

That was exactly the behavior I’ve got.

I’ll continue investigating on my end.

Thanks

From: Davvid [mailto:notifications@github.com]
Sent: Wednesday, September 2, 2015 7:06 PM
To: Azure/msphpsql msphpsql@noreply.github.com
Cc: Luiz Fernando Santos lfsantos@microsoft.com
Subject: Re: [msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

I verified that this is still reproducible on lateset dev of driver and core.

It just do not run

That is weird, at least you should be seeing an error of some sort. I’ve sometimes experienced the progress bar getting stuck forever, but those bugs were already fixed.


Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fAzure%2fmsphpsql%2fissues%2f49%23issuecomment-137301281&data=01%7c01%7clfsantos%40microsoft.com%7cebe800f891614c31d06508d2b4044817%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=uvwgyq5Qcho6vWQNwUmYo7BIzX6YT5onop7xVhDlFrY%3d.

@david-garcia-garcia

I just posted a repro script for another issue in #50.

I have the feeling that both #49 and #50 might be the same thing as they both seem to exhibit themselves when a PDO exception is thrown (and managed by the user!) while inside a transaction.

So it might be worth taking a look at #50 first given that it is an «easy» stand alone single file repro script.

@Lfsantos

@agrarian

I am also getting the [Microsoft][ODBC Driver Manager] Function sequence error.

$q = "SELECT * FROM ".TBL_USERS." WHERE username = '$username'"; $stmt = sqlsrv_query($this->connection, $q, array(),array( "Scrollable" => 'static' )); if(!$stmt || (sqlsrv_num_rows($stmt) < 1)){ error_log("getUserInfo failed for $username: $q",3,'error.log'); sqlsrv_free_stmt($stmt); return NULL; } else { /* Return result array */ sqlsrv_next_result($stmt); $dbrow = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC); if($dbrow === false) { error_log("dbrow is falsen",3,"error.log"); if( ($errors = sqlsrv_errors() ) != null) { foreach( $errors[0] as $key=>$error ) { error_log("$key -> $errorn",3,"error.log"); } } } elseif (is_null($dbrow)){ error_log("dbrow is NULLn",3,"error.log"); } else { error_log("dbrow is OKn",3,"error.log"); } }
It appears whenever I call the sqlsrv_fetch_array function.

@meet-bhagdev

@agrarian What version of driver are you using?

@agrarian

@yitam

Hi @agrarian, I’m trying to understand your script. Why did you call sqlsrv_next_result() before sqlsrv_fetch_array()? Did you want to test for errors? If you drop sqlsrv_next_result() then there shouldn’t be any problem.

Hi @david-garcia-garcia do you still have function sequence error problem? I looked at the other related issue #50 and your repro script is gone.

@rkevinburton

I am getting this error:

[unixODBC][Driver Manager]Function sequence error

On both the 4.3.0 release of sqlsrv and 5.1.0 preview. I am running a different framework that is mostly mentioned here (CodeIgniter rather than Drupal). I am afraid I don’t know where to look for the error. Is it an error in the framework, the driver, or unixOBDC? What is the bottom line as far as fixes or workarounds? Thank you.

@yitam

Hello @rkevinburton
Function sequence error can be caused by various factors, so more info is required in addition to telling us you get this error. Therefore, please create a new issue by providing repro script(s), the platform and/or version of the SQL Server, etc. The more you provide the closer we can get to help answer your questions.

@rkevinburton

I will try to put together a repro script. But it happens infrequently so it may take me some time to put together a relaiable repro. In the meantime I am connecting to

Microsoft SQL Server Developer (64-bit)
Microsoft Windows NT 6.1 (7601)
NT x64
11.0.6020.0
English (United States)
8192 MB
2 (processors)

I have tried the PHP sqlsrv driver version 4.3.0 and 5.1.0preview, and I get the error on both versions. Though, the error seems to occur less frequently with 5.1.0preview.

From: Jenny Tam [mailto:notifications@github.com]
Sent: Tuesday, October 10, 2017 10:26 AM
To: Microsoft/msphpsql <msphpsql@noreply.github.com>
Cc: Kevin (Ronald) Burton <rburton@agsource.com>; Mention <mention@noreply.github.com>
Subject: Re: [Microsoft/msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

Hello @rkevinburton<https://github.com/rkevinburton>
Function sequence error can be caused by various factors, so more info is required in addition to telling us you get this error. Therefore, please create a new issue by providing repro script(s), the platform and/or version of the SQL Server, etc. The more you provide the closer we can get to help answer your questions.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#49 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdmtTVpIWEm_hVPqAzkdDEAoYykj5Gilks5sq4yegaJpZM4EPo38>.

@yitam

Hello @rkevinburton regrettably it’s still a bit vague and we won’t be able to reproduce the problem without a concrete repro scenario. For example, when you encountered this error were you doing a simple select, or update, or insert, with or without using stored procedure, transactions, etc.?

@rkevinburton

I mostly get errors that look like this:

<body>
<div id=»content»>
<h1>A Database Error Occurred</h1>
<p>Error Number: HY010</p><p>[unixODBC][Driver Manager]Function sequence error</p><p>DELETE FROM users.dbo.users_groups WHERE group_id = 1 AND user_id = 685</p><p>Filename: models/ion_auth_parent_model.php</p><p>Line Number: 1222</p> </div>
</body>

I am using CodeIgniter so admittedly the database code is buried in the MVC handling and is specific to our application.

From: Jenny Tam [mailto:notifications@github.com]
Sent: Tuesday, October 10, 2017 12:07 PM
To: Microsoft/msphpsql <msphpsql@noreply.github.com>
Cc: Kevin (Ronald) Burton <rburton@agsource.com>; Mention <mention@noreply.github.com>
Subject: Re: [Microsoft/msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

Hello @rkevinburton<https://github.com/rkevinburton> regrettably it’s still a bit vague and we won’t be able to reproduce the problem without a concrete repro scenario. For example, when you encountered this error were you doing a simple select, or update, or insert, with or without using stored procedure, transactions, etc.?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#49 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdmtTYDLshjJzuGIHoxCnSN9amX9KhzXks5sq6Q4gaJpZM4EPo38>.

@yitam

Thanks @rkevinburton. The problem likely lies in the file models/ion_auth_parent_model.php, line 1222, as indicated in the error message. Looks like something went wrong when trying to delete a certain user? I’m guessing that the user with id 685 and group 1 doesn’t exist.

Please bring this problem to your application developers. FYI, function sequence error often occurs when ODBC functions are called out of the order required. You can check this page for different scenarios that caused HY010 error

@rkevinburton

If a record doesn’t exist then I get an error that the record doesn’t exist. I am not clear on what ‘function sequence error’ is?

This is the code that is an line 1222

$this->db->delete($this->tables[‘users_groups’], array($this->join[‘groups’] => (int)$group_id, $this->join[‘users’] => (int)$user_id));

From: Jenny Tam [mailto:notifications@github.com]
Sent: Tuesday, October 10, 2017 3:17 PM
To: Microsoft/msphpsql <msphpsql@noreply.github.com>
Cc: Kevin (Ronald) Burton <rburton@agsource.com>; Mention <mention@noreply.github.com>
Subject: Re: [Microsoft/msphpsql] SQLSTATE[HY010]: [Microsoft][ODBC Driver Manager] Function sequence error (again) (#49)

Thanks @rkevinburton<https://github.com/rkevinburton>. The problem likely lies in the file models/ion_auth_parent_model.php, line 1222, as indicated in the error message. Looks like something went wrong when trying to delete a certain user? I’m guessing that the user with id 685 and group 1 doesn’t exist.

Please bring this problem to your application developers. FYI, function sequence error often occurs when ODBC functions are called out of the order required. You can check this page <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlfetch-function> for different scenarios that caused HY010 error


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#49 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdmtTX9i40NUU3qG6TMqFZ50ApxZOcf3ks5sq9DTgaJpZM4EPo38>.

@yitam

@rkevinburton we cannot investigate further unless we have clear steps to reproduce the problems. I’d happily help when you can provide a repro. In your example above, the error is clearly specific to your application and how the class(es) work(s) underneath.

@david-puglielli

Closing due to inactivity. Please reopen if necessary.

Click here follow the steps to fix Microsoft Odbc Driver Manager Function Sequence Error and related errors.

Instructions

 

To Fix (Microsoft Odbc Driver Manager Function Sequence Error) error you need to
follow the steps below:

Step 1:

 
Download
(Microsoft Odbc Driver Manager Function Sequence Error) Repair Tool
   

Step 2:

 
Click the «Scan» button
   

Step 3:

 
Click ‘Fix All‘ and you’re done!
 

Compatibility:
Windows 7, 8, Vista, XP

Download Size: 6MB
Requirements: 300 MHz Processor, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. To unlock all features and tools, a purchase is required.

Microsoft Odbc Driver Manager Function Sequence Error Error Codes are caused in one way or another by misconfigured system files
in your windows operating system.

If you have Microsoft Odbc Driver Manager Function Sequence Error errors then we strongly recommend that you

Download (Microsoft Odbc Driver Manager Function Sequence Error) Repair Tool.

This article contains information that shows you how to fix
Microsoft Odbc Driver Manager Function Sequence Error
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Microsoft Odbc Driver Manager Function Sequence Error error code that you may receive.

Note:
This article was updated on 2023-02-03 and previously published under WIKI_Q210794

Contents

  •   1. What is Microsoft Odbc Driver Manager Function Sequence Error error?
  •   2. What causes Microsoft Odbc Driver Manager Function Sequence Error error?
  •   3. How to easily fix Microsoft Odbc Driver Manager Function Sequence Error errors

What is Microsoft Odbc Driver Manager Function Sequence Error error?

The Microsoft Odbc Driver Manager Function Sequence Error error is the Hexadecimal format of the error caused. This is common error code format used by windows and other windows compatible software and driver vendors.

This code is used by the vendor to identify the error caused. This Microsoft Odbc Driver Manager Function Sequence Error error code has a numeric error number and a technical description. In some cases the error may have more parameters in Microsoft Odbc Driver Manager Function Sequence Error format .This additional hexadecimal code are the address of the memory locations where the instruction(s) was loaded at the time of the error.

What causes Microsoft Odbc Driver Manager Function Sequence Error error?

The Microsoft Odbc Driver Manager Function Sequence Error error may be caused by windows system files damage. The corrupted system files entries can be a real threat to the well being of your computer.

There can be many events which may have resulted in the system files errors. An incomplete installation, an incomplete uninstall, improper deletion of applications or hardware. It can also be caused if your computer is recovered from a virus or adware/spyware
attack or by an improper shutdown of the computer. All the above actives
may result in the deletion or corruption of the entries in the windows
system files. This corrupted system file will lead to the missing and wrongly
linked information and files needed for the proper working of the
application.

How to easily fix Microsoft Odbc Driver Manager Function Sequence Error error?

There are two (2) ways to fix Microsoft Odbc Driver Manager Function Sequence Error Error:

Advanced Computer User Solution (manual update):

1) Start your computer and log on as an administrator.

2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore.

3) In the new window, select «Restore my computer to an earlier time» option and then click Next.

4) Select the most recent system restore point from the «On this list, click a restore point» list, and then click Next.

5) Click Next on the confirmation window.

6) Restarts the computer when the restoration is finished.

Novice Computer User Solution (completely automated):

1) Download (Microsoft Odbc Driver Manager Function Sequence Error) repair utility.

2) Install program and click Scan button.

3) Click the Fix Errors button when scan is completed.

4) Restart your computer.

How does it work?

This tool will scan and diagnose, then repairs, your PC with patent
pending technology that fix your windows operating system registry
structure.
basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.)

Понравилась статья? Поделить с друзьями:
  • Microsoft net error reporting shim что это
  • Microsoft net error reporting shim как исправить
  • Microsoft sql server error 1935
  • Microsoft sql server error 15138
  • Microsoft sql server error 1326