Comments (5)
I'm quite surprised about this. It should just work. Some of the integration tests use temporary stored procedures, which should be connection-scoped in the same way.
Thanks for the code. I'll look in to this.
from tedious.
I sure appreciate your work on Tedious and this issue. I hope I'm not sending you down a rabbit trail, but it's not working on my machine.
In case this matters, I wasn't able to use NPM to install it, so I downloaded the source as a .zip from github and copied it to my node_modules directory... a few days after you release v4.
Thanks,
Jeremy
-----Original Message-----
From: Mike D Pilsbury [mailto:[email protected]]
Sent: Monday, April 23, 2012 10:52 PM
To: Jeremy R. Sellars
Subject: Re: [tedious] Support for #temp tables across requests with same connection (#24)
I'm quite surprised about this. It should just work. Some of the integration tests use temporary stored procedures, which should be connection-scoped in the same way.
Thanks for the code. I'll look in to this.
Reply to this email directly or view it on GitHub:
#24 (comment)
from tedious.
The problem relates to the scoping rules used for temporary tables (http://weblogs.sqlteam.com/mladenp/archive/2006/11/03/17197.aspx). Starting with tedious v0.0.4, the execSql
function executes sp_executesql
to execute the sql. This is to provide support for parameters.
If execSql
is replaced with execSqlBatch
then your code works. Because of the scoping rules, only the table creation needs to be changed, although it would do no harm if both calls were changed.
I need to make the documentation for these two function clearer. I also wonder whether the function names are appropriate.
from tedious.
Great that works in my 'real' code, as well. Thanks for your help with this.
- Jeremy
from tedious.
Documentation updated.
from tedious.
Related Issues (20)
- [QUESTION] Expected behavior of parallel Strategy for MultiSubnetFailover option HOT 5
- Minor addition to exception information on failed bulk-load data due to type validation: Mention the failed column and errorneous value HOT 1
- Network socket not correctly cleaned up when connection timeout fires during TDS8.0 TLS negotiation HOT 2
- Unable to connect to Azure SQL using azure directory password authentication. HOT 2
- not able to connect to Microsoft Fabric HOT 6
- [QUESTION] How do I check the status of a connection? HOT 3
- Dead Links in documentation HOT 3
- [FEATURE REQUEST] Cloudflare Workers support HOT 3
- unsupported type "BitN" from querying a BIT column HOT 5
- connection error: SSL routines:ssl_choose_client_version:unsupported HOT 2
- [perf] Performance loss on `<instance_members_initializer>` during token parsing HOT 3
- `MessageIO.prototype.startTls` should follow `tls.connect` semantics HOT 1
- Always Encrypted Roadmap
- Need to update @azure/msal-node to 2.0 for NodeJs 20 compatability HOT 9
- Login failure with caret (^) in password HOT 2
- [FEATURE REQUEST] HOT 3
- README Getting Started Links Out-of-Date HOT 1
- [FEATURE REQUEST] Connection socket ref/unref HOT 1
- Getting RangeError [ERR_OUT_OF_RANGE] for "smalldatetime" type column while using bulk insert HOT 10
- https://salla.sa//bero-2030.com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tedious.