Comments (10)
@simonhdickson one for you sir?
@snorehorse, you may need to give some more details such as the exact DSN details and perhaps a schema for us to replicate.
out of interest though, as you are using sql server, why not just use the sql server provider and a normal connection string instead of ODBC? The ODBC support is necessarily a lot less thorough - although this should still work and give you basic access to the database. I'm guessing you have a need to use the DSN.
from sqlprovider.
I pasted the sql I used to create the database at: http://pastebin.com/5W3PPVaD
which is from Query Expressions (F#) http://msdn.microsoft.com/en-us/library/vstudio/hh225374(v=vs.120).aspx
from sqlprovider.
Cool, thanks, we'll look into it. Just so you know, the link to Query Expressions there uses the original Microsoft SQL provider, we don't support everything that is listed in those examples yet.
from sqlprovider.
If i change foo to foo1, which doesn't exist, I get "Data source name not found and no default driver specified" which shows that something is partially working behind the scenes :)
from sqlprovider.
great, I assume the DSN is just a normal SQL Server connection string, using integrated security or a standard sql login / password ?
from sqlprovider.
It's probably something silly, we should be able to address fairly easily (I hope!)
from sqlprovider.
@pezipink No prob "we don't support everything", I'm just interested in the most basic read features for my project. Thanks for what you've done so far anyway!
My situation is I'm building a desktop application and I'm thinking what would be the easiest for user configuration. It's my first application in F#. In previous projects I've used the ConnectionDialog source that was available from MS for a short time, to build a connection string. But I'm thinking, why try to build a connection string inside my program? Have the end user's IT guy use Data Sources (ODBC)... install whatever driver they choose... and then give them a dropdown list of the DSNs in my app. This way I don't have to worry about drivers if they change database providers in the future (as long as they aren't using something so esoteric that it breaks the functionality in the SQLProvider).
from sqlprovider.
Microsoft SQL Server Native Client Version 11.00.3000
Data Source Name: foo
Data Source Description: it whips the llamas foo
Server: SEAHORSE-PC\fooz
Use Integrated Security: Yes
Database: MyDatabase
Language: (Default)
Data Encryption: No
Trust Server Certificate: No
Multiple Active Result Sets(MARS): No
Mirror Server:
Translate Character Data: Yes
Log Long Running Queries: No
Log Driver Statistics: No
Use Regional Settings: No
Use ANSI Quoted Identifiers: Yes
Use ANSI Null, Paddings and Warnings: Yes
Application Intent: READONLY
from sqlprovider.
@pezipink Yep I'll take a look at this one
from sqlprovider.
I've started working on a fix for this. This ticket finally gave me a reason to install MSSQL on my local machine. :)
from sqlprovider.
Related Issues (20)
- Unable to compile using Visual Studio but works with dotnet HOT 4
- [Microsoft,System].Data.SqlClient is not supported on this platform HOT 17
- Issue with connecting to PostgreSQL database HOT 1
- MSSQL stored procedures does not correctly works with schemas
- SQLProvider + PostgreSql works with Rider and VSCode but not visual studio 2022
- Incorrect FROM statement is produced when a table name contains periods HOT 2
- [Question] How to use Pragma with SQLITE? HOT 6
- Simple group by query with postgresql causes doubling up of double quotes when using double quoted declared fields HOT 3
- OnConflict implementation for SQLite provider uses wrong feature of SQLite HOT 3
- `SqlRuntime.DataContext.addCache` timeout on first query when application starts HOT 8
- Auto-generate types by `dotnet publish` time HOT 3
- dotnet 8.0.100-preview.6.23330.14 error. HOT 12
- Performance in SQL Server when comparing `varchar` column against `string` parameter HOT 23
- Is it possible to pull down a partial row and then update it? HOT 1
- Migration guide to 1.3.x HOT 3
- Typeprovider not working when compiled with dotnet build HOT 11
- Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0 HOT 24
- OnConflict.Update ignores None/ValueNone values when using DatabaseProviderTypes.POSTGRESQL
- SQLite Provider using Microsoft.Data.Sqlite library does not perform updates transactionally HOT 7
- SQLite provider ResolutionPath fail HOT 8
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 sqlprovider.